mirror of
https://github.com/Relintai/mourne_rcpp_fw.git
synced 2024-12-23 21:16:50 +01:00
18 lines
502 B
PHP
18 lines
502 B
PHP
|
<?php //needs event_name_helper or maybe logic of what to display ?>
|
||
|
<?php
|
||
|
$this->load->helper('date');
|
||
|
|
||
|
$dstring = '%Y-%m-%d - %H:%i:%s';
|
||
|
?>
|
||
|
<?php if ($event): ?>
|
||
|
<div class="event_container">
|
||
|
<div class="event">
|
||
|
Type: <?=$event['type']; ?> Vid: <?=$event['villageid']; ?> D1: <?=$event['data1']; ?>
|
||
|
Ends: <?=mdate($dstring, $event['end']); ?> Left: <?=timespan(time(), $event['end']); ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php else: ?>
|
||
|
<div class="event_container" style="display:none;">
|
||
|
</div>
|
||
|
<?php endif; ?>
|