OliverParoczai
4 years ago
3 changed files with 71 additions and 18 deletions
@ -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"; ?> |
Loading…
Reference in new issue