Created
March 6, 2010 07:11
-
-
Save slywalker/323564 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="users index"> | |
<h2><?php __('Users');?></h2> | |
<p> | |
<?php | |
echo $paginator->counter(array( | |
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true) | |
)); | |
?></p> | |
<table cellpadding="0" cellspacing="0"> | |
<tr> | |
<th><?php echo $paginator->sort('id');?></th> | |
<th><?php echo $paginator->sort('username');?></th> | |
<th><?php echo $paginator->sort('password');?></th> | |
<th><?php echo $paginator->sort('created');?></th> | |
<th class="actions"><?php __('Actions');?></th> | |
</tr> | |
<?php | |
$i = 0; | |
foreach ($users as $user): | |
$class = null; | |
if ($i++ % 2 == 0) { | |
$class = ' class="altrow"'; | |
} | |
?> | |
<tr<?php echo $class;?>> | |
<td> | |
<?php echo $user['User']['id']; ?> | |
</td> | |
<td> | |
<?php echo $user['User']['username']; ?> | |
</td> | |
<td> | |
<?php echo $user['User']['password']; ?> | |
</td> | |
<td> | |
<?php echo $user['User']['created']; ?> | |
</td> | |
<td class="actions"> | |
<?php echo $html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?> | |
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $user['User']['id'])); ?> | |
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?> | |
</td> | |
</tr> | |
<?php endforeach; ?> | |
</table> | |
</div> | |
<div class="paging"> | |
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?> | |
| <?php echo $paginator->numbers();?> | |
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?> | |
</div> | |
<div class="actions"> | |
<ul> | |
<li><?php echo $html->link(__('New User', true), array('action' => 'add')); ?></li> | |
<li><?php echo $html->link(__('List Posts', true), array('controller' => 'posts', 'action' => 'index')); ?> </li> | |
<li><?php echo $html->link(__('New Post', true), array('controller' => 'posts', 'action' => 'add')); ?> </li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment