Browse Source

Események elkezdése, konzisztencia

master
OliverParoczai 4 years ago
parent
commit
43e5989238
  1. 0
      admin/eventupload.php
  2. 47
      events.php
  3. 40
      header.php

0
admin/eventupload.php

47
events.php

@ -0,0 +1,47 @@
<?php ini_set("allow_url_fopen", 1); include "header.php"; ?>
<section class="content">
<div class="container-fluid">
<div class="block-header">
<h2>ESEMÉNYEK</h2>
</div>
<div class="row clearfix">
<div class="list-group">
<?php
$json = json_decode(file_get_contents($url."/API/request.php?type=events"), true);
for($i = 0; $i<count($json); $i++) {
if($json[$i]["name"] != ""){
echo '<a class="listitem list-group-item waves-effect" href="'.$curdir.'event.php?id='.$json[$i]["id"].'"><img class="listitemimg" src="'.$url.'/API/request.php?type=image&subtype=event&id='.$json[$i]["id"].'"><b>'.$json[$i]["name"].'</b><br>'.$json[$i]["location"].'<br>Second line</a>';
}
}
?>
</div>
</div>
</div>
</section>
<?php
for($i = 0; $i<count($json); $i++) { #data-toggle="modal" data-target="#schoolModal'.$i.'"
if($json[$i]["name"] == "223"){
echo '<div class="modal fade" id="schoolModal'.$i.'" tabindex="-1" role="dialog" style="display: none;">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="largeModalLabel">'.$json[$i]["name"].'</h4>
</div>
<div class="modal-body">
<div class="list-group">
<a class="list-group-item"><i class="material-icons" style="vertical-align: middle;">map</i>Elhelyezkedés</a>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link waves-effect">SAVE CHANGES</button>
<button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>
</div>
</div>
</div>
</div>';
}
} ?>
<?php include "footer.php"; ?>

40
header.php

@ -124,6 +124,9 @@ if(!isset($liteload) && !$loggedin && $isadmin){
<!-- Bootstrap Core Css -->
<link href="<?php echo $curdir; ?>plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Materialize Css -->
<link href="<?php echo $curdir; ?>css/materialize.css" rel="stylesheet">
<!-- Waves Effect Css -->
<link href="<?php echo $curdir; ?>plugins/node-waves/waves.css" rel="stylesheet" />
@ -342,16 +345,9 @@ if(!isset($liteload) && !$loggedin && $isadmin){
<!-- Menu -->
<div class="menu">
<ul class="list">
<li class="header">FŐNAVIGÁCIÓ</li>
<li <?php if($openpage == "index.php"){ echo 'class="active"'; } ?>>
<a href="index.php">
<i class="material-icons">home</i>
<span>Kezdőlap</span>
</a>
</li>
<?php if(!$isadmin){
if($type == 1){ ?>
<li class="header">ADMINISZTRÁTOR</li>
<li>
<a href="admin">
<i class="material-icons">admin_panel_settings</i>
@ -359,17 +355,27 @@ if(!isset($liteload) && !$loggedin && $isadmin){
<span class="badge bg-teal float-right">14 új</span>
</a>
</li>
<?php } ?>
<?php }} ?>
<li class="header">FŐNAVIGÁCIÓ</li>
<li <?php if($openpage == "index.php"){ echo 'class="active"'; } ?>>
<a href="index.php">
<i class="material-icons">home</i>
<span>Kezdőlap</span>
</a>
</li>
<?php if(!$isadmin){ ?>
<li <?php if($openpage == "schools.php"){ echo 'class="active"'; } ?>>
<a href="schools.php">
<i class="material-icons">school</i>
<span>Iskolák</span>
</a>
</li>
<li>
<a href="#">
<li <?php if($openpage == "events.php"){ echo 'class="active"'; }?>>
<a href="<?php echo $curdir; ?>events.php">
<i class="material-icons">event</i>
<span>Rendezvények (<b>10 új rendezvény</b>)</span>
<span>Események (<b>10 új esemény</b>)</span>
</a>
</li>
<?php if(!$loggedin){ ?>
@ -385,13 +391,13 @@ if(!isset($liteload) && !$loggedin && $isadmin){
<li <?php if($openpage == "dataupload.php"){ echo 'class="active"'; }?>>
<a href="dataupload.php">
<i class="material-icons">upload</i>
<span>Adatfeltöltés</span>
<span>Adatkezelés</span>
</a>
</li>
<li>
<a href="#">
<i class="material-icons">layers</i>
<span>Események</span>
<a href="eventupload.php">
<i class="material-icons">event</i>
<span>Eseménykezelés</span>
</a>
</li>
<li>
@ -400,7 +406,7 @@ if(!isset($liteload) && !$loggedin && $isadmin){
<span>Chat (<b>30 olvasatlan üzenet</b>)</span>
</a>
</li>
<li class="header">Műveletek</li>
<li class="header">MŰVELETEK</li>
<li>
<a href="<?php echo $curdir; ?>index.php">

Loading…
Cancel
Save