File: /var/www/vhosts/onlinedev.com/httpdocs/admin/templates/sites-backup.phtml
<div class="head">
<h1>Sites marchands recommandes</h1>
<a href="<?php echo App::getUrl('sites', 'edit') ?>" title="Button 4" class="but3">Ajouter</a>
</div>
<div class="items">
<table border="0" cellspacing="0" cellpadding="0" class="pages">
<tr>
<td>Page:</td>
<td><a href="<?php echo App::getUrl('sites', 'list', array('start' => ($page > 1) ? ($page - 1) * 20 : '0' )) ?>" title="Previous"><img src="images/icon_prew.gif" alt="Previous" /></a>
<input type="text" size="2" value="<?php echo $page; ?>" readonly="readonly" /> <a href="<?php echo App::getUrl('sites', 'list', array('start' => ($page < $totalpages) ? ($start + 20) : $start )) ?>" title="Next"><img src="images/icon_next.gif" alt="Next" /></a></td>
<td>de <span><?php echo $totalpages; ?></span> pages |</td>
<td>Total: <span><?php echo $totalitems; ?></span></td>
</tr>
</table>
</div>
<table border="0" cellspacing="0" cellpadding="0" class="list1">
<tr>
<th align="left">Titre</th>
<th width="130" align="left">Date de creation</th>
<th width="120">Action</th>
</tr>
<?php $i = 0; foreach ($items as $item): ?>
<tr class="<?php echo $i%2 == 0 ? 'r1' : 'r2'; ?>">
<td><?php echo $item['title'] ?></td>
<td><?php echo format_date($item['created_at']); ?></td>
<td align="center">
<a href="<?php echo App::getUrl('sites', 'edit', array('id' => $item['id'])) ?>" title="Editer"><img src="<?php echo App::getBaseUrl() ?>images/icon_edit.gif" alt="Editer" /></a>
<a href="#" onclick="del(<?php echo $item['id'] ?>)" title="Supprimer"><img src="<?php echo App::getBaseUrl() ?>images/icon_delete.gif" alt="Supprimer" /></a></td>
</tr>
<?php $i++; endforeach; ?>
<?php for($j = $i; $j < 20; $j++): ?>
<tr class="<?php echo $j%2 == 0 ? 'r1' : 'r2'; ?>">
<td> </td>
<td> </td>
<td> </td>
</tr>
<?php endfor; ?>
</table>
<script type="text/javascript">
function del(id)
{
if (confirm('Supprimer cette site ?'))
{
window.location = '<?php echo App::getUrl('sites', 'delete'); ?>&id=' + id;
}
}
</script>