Prepare view
This commit is contained in:
parent
ef497f71c1
commit
068dd67941
@ -0,0 +1 @@
|
||||
<?php
|
@ -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>
|
@ -0,0 +1 @@
|
||||
<?php
|
Loading…
Reference in New Issue
Block a user