Prepare view

This commit is contained in:
Michael RICOIS 2016-09-09 09:44:32 +02:00
parent ef497f71c1
commit 068dd67941
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1,40 @@
<div id="content">
<h1>Historique des connexions</h1>
<div class="paragraph">
<form action="<?=$this->url(array('module'=>'user', 'controller'=>'log', 'action'=>'auth'), 'default', true)?>">
<select name="y" >
<?php foreach($this->Years as $year) { ?>
<option value="<?=$year?>" <?php if($year==$this->year) echo 'selected';?>><?=$year?></option>
<?php } ?>
</select>
<select name="m">
<?php foreach($this->Months as $month) { ?>
<option value="<?=$month?>" <?php if($month==$this->month) echo 'selected';?>><?=$month?></option>
<?php } ?>
</select>
<input type="submit" value="OK"/>
</form>
</div>
<h2>Détail</h2>
<?php if (count($this->List) > 0) {?>
<table class="table table-hover">
<thead>
<tr>
<th>Date</th>
<th>IP</th>
</tr>
</thead>
<tbody>
<?php foreach($this->List as $item) {?>
<tr>
<td><?=$item->Date?></td>
<td><?=$item->IP?></td>
</tr>
<?php }?>
</tbody>
</table>
<?php }?>
</div>

View File

@ -0,0 +1 @@
<?php