pictcode / app / View / users / index.ctp @ b3a58ce1
履歴 | 表示 | アノテート | ダウンロード (2.456 KB)
1 |
<div class="users index"> |
---|---|
2 |
<h2><?php echo __('Users'); ?></h2> |
3 |
<table id="sortable" class="table table-striped" cellpadding="0" cellspacing="0"> |
4 |
<thead> |
5 |
<tr> |
6 |
<th><?php echo $this->Paginator->sort('id'); ?></th> |
7 |
<th><?php echo $this->Paginator->sort('login_id'); ?></th> |
8 |
<th><?php echo $this->Paginator->sort('password'); ?></th> |
9 |
<th><?php echo $this->Paginator->sort('user_flg'); ?></th> |
10 |
<th><?php echo $this->Paginator->sort('status'); ?></th> |
11 |
<th><?php echo $this->Paginator->sort('created'); ?></th> |
12 |
<th><?php echo $this->Paginator->sort('updated'); ?></th> |
13 |
<th class="actions"><?php echo __('Actions'); ?></th> |
14 |
</tr> |
15 |
</thead> |
16 |
<tbody> |
17 |
<?php foreach ($users as $user): ?> |
18 |
<tr> |
19 |
<td><?php echo h($user['User']['id']); ?> </td> |
20 |
<td><?php echo h($user['User']['login_id']); ?> </td> |
21 |
<td><?php echo h($user['User']['password']); ?> </td> |
22 |
<td><?php echo h($user['User']['user_flg']); ?> </td> |
23 |
<td><?php echo h($user['User']['status']); ?> </td> |
24 |
<td><?php echo h($user['User']['created']); ?> </td> |
25 |
<td><?php echo h($user['User']['updated']); ?> </td> |
26 |
<td class="actions"> |
27 |
<?php echo $this->Html->link(__('View'), array('action' => 'view', $user['User']['id'])); ?> |
28 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $user['User']['id'])); ?> |
29 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $user['User']['id']), array('confirm' => __('Are you sure you want to delete # %s?', $user['User']['id']))); ?> |
30 |
</td> |
31 |
</tr> |
32 |
<?php endforeach; ?> |
33 |
</tbody> |
34 |
</table> |
35 |
<p> |
36 |
<?php |
37 |
echo $this->Paginator->counter(array( |
38 |
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}') |
39 |
)); |
40 |
?> </p> |
41 |
<div class="paging"> |
42 |
<?php |
43 |
echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled')); |
44 |
echo $this->Paginator->numbers(array('separator' => '')); |
45 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled')); |
46 |
?> |
47 |
</div> |
48 |
</div> |
49 |
<div class="actions"> |
50 |
<h3><?php echo __('Actions'); ?></h3> |
51 |
<ul> |
52 |
<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?></li> |
53 |
<li><?php echo $this->Html->link(__('List Programs'), array('controller' => 'programs', 'action' => 'index')); ?> </li> |
54 |
<li><?php echo $this->Html->link(__('New Program'), array('controller' => 'programs', 'action' => 'add')); ?> </li> |
55 |
</ul> |
56 |
</div> |