0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www
/
arcaneoverseas.com
/
application
/
views
/
[
Home
]
File: event_list.php
<div class="cellSuite2" i style="width: 790px;"> <div class="box"> <div class="boxpadding"> <h1 class="bleu setmenuLeft">Actualités</h1> <?php foreach ($events as $event): ?> <?php if ($event['jshow'] == "oui") { date_default_timezone_set('Etc/GMT+1'); $datetime1 = new DateTime(date("y-m-d")); $datetime2 = new DateTime($event['date_start']); $datetime3 = new DateTime($event['date_end']); $interval = $datetime1->diff($datetime2); } // echo (int)$interval->format('%R%a'); if((int)$interval->format('%R%a') < 0){ $toshow = str_ireplace( "-","+",$interval->format('%R%a')) ; }elseif ((int)$interval->format('%R%a') == 0){ $toshow = "J"; }else{ $toshow = str_ireplace( "+","-",$interval->format('%R%a')) ; } ?> <div class="boxancre" style="padding-bottom: 52px;"> <h3 class="bleu"><?php if ($event['jshow'] == "oui") { ?> <span class="jshow">J<?php echo $toshow ; ?></span><?php } ?> <?php echo $event['titre']; ?></h3> <span class="gris"><?php echo $datetime2->format("d/m/Y"); ?> - <?php echo $datetime3->format("d/m/Y"); ?></span> <p><?php echo $event['description']; ?></p> </div> <?php endforeach; ?> </div> <br clear="all"> </div> <br clear="all"> </div> <br clear="all">
©
2018.