зеркало из https://github.com/mozilla/gecko-dev.git
47 строки
1.8 KiB
Plaintext
47 строки
1.8 KiB
Plaintext
<h1>Mirrors</h1>
|
|
|
|
<?php if($pagination->setPaging($paging)):?>
|
|
<div class="pagination">
|
|
<?php echo $pagination->result('Results: '); ?>
|
|
<?php echo $pagination->prevPage('Prev'); ?>
|
|
<?php echo $pagination->pageNumbers(); ?>
|
|
<?php echo $pagination->nextPage('Next'); ?>
|
|
</div>
|
|
<?php endif;?>
|
|
|
|
<table class="inav">
|
|
<tr>
|
|
<th><?php echo $html->link('ID',$paging['headers']['id']); ?></th>
|
|
<th><?php echo $html->link('Name',$paging['headers']['name']); ?></th>
|
|
<th><?php echo $html->link('URL',$paging['headers']['baseurl']); ?></th>
|
|
<th><?php echo $html->link('Rating',$paging['headers']['rating']); ?></th>
|
|
<th><?php echo $html->link('Active',$paging['headers']['active']); ?></th>
|
|
<th>Action</th>
|
|
</tr>
|
|
<?php foreach ($data as $mirror): ?>
|
|
<tr>
|
|
<td><?php echo $mirror['Mirror']['id']; ?></td>
|
|
<td><?php echo $mirror['Mirror']['name']; ?></td>
|
|
<td>
|
|
<?php echo $html->link( $mirror['Mirror']['baseurl'], "/mirrors/view/{$mirror['Mirror']['id']}" ); ?>
|
|
</td>
|
|
<td><?php echo $mirror['Mirror']['rating']; ?></td>
|
|
<td><?php echo ($mirror['Mirror']['active'])?'On':'Off'; ?></td>
|
|
<td>
|
|
<?=$html->link('Edit',"/mirrors/edit/{$mirror['Mirror']['id']}",'class="action"')?>
|
|
<?=$html->link('Delete',"/mirrors/destroy/{$mirror['Mirror']['id']}",'class="action"','Are you sure you want to delete?')?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
|
|
<?php if($pagination->setPaging($paging)):?>
|
|
<ul id="page-numbers">
|
|
<li><?php echo $pagination->show('Show '); ?></li>
|
|
<li><?php echo $pagination->result('Results: '); ?></li>
|
|
<li><?php echo $pagination->prevPage('Prev'); ?></li>
|
|
<li><?php echo $pagination->pageNumbers(); ?></li>
|
|
<li><?php echo $pagination->nextPage('Next'); ?></li>
|
|
</ul>
|
|
<?php endif;?>
|