Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15073 manas 1
<div class="agentRoles index">
2
	<h2><?php echo __('Agent Roles'); ?></h2>
3
	<table cellpadding="0" cellspacing="0">
4
	<tr>
5
			<th><?php echo $this->Paginator->sort('id'); ?></th>
6
			<th><?php echo $this->Paginator->sort('agent_id'); ?></th>
7
			<th><?php echo $this->Paginator->sort('role'); ?></th>
8
			<th><?php echo $this->Paginator->sort('created'); ?></th>
9
			<th class="actions"><?php echo __('Actions'); ?></th>
10
	</tr>
11
	<?php foreach ($agentRoles as $agentRole): ?>
12
	<tr>
13
		<td><?php echo h($agentRole['AgentRole']['id']); ?>&nbsp;</td>
14
		<td>
15
			<?php echo $this->Html->link($agentRole['Agent']['name'], array('controller' => 'agents', 'action' => 'view', $agentRole['Agent']['id'])); ?>
16
		</td>
17
		<td><?php echo h($agentRole['AgentRole']['role']); ?>&nbsp;</td>
18
		<td><?php echo h($agentRole['AgentRole']['created']); ?>&nbsp;</td>
19
		<td class="actions">
20
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $agentRole['AgentRole']['id'])); ?>
21
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $agentRole['AgentRole']['id'])); ?>
22
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $agentRole['AgentRole']['id']), null, __('Are you sure you want to delete # %s?', $agentRole['AgentRole']['id'])); ?>
23
		</td>
24
	</tr>
25
<?php endforeach; ?>
26
	</table>
27
	<p>
28
	<?php
29
	echo $this->Paginator->counter(array(
30
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
31
	));
32
	?>	</p>
33
	<div class="paging">
34
	<?php
35
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
36
		echo $this->Paginator->numbers(array('separator' => ''));
37
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
38
	?>
39
	</div>
40
</div>
41
<div class="actions">
42
	<h3><?php echo __('Actions'); ?></h3>
43
	<ul>
44
		<li><?php echo $this->Html->link(__('New Agent Role'), array('action' => 'add')); ?></li>
45
		<li><?php echo $this->Html->link(__('List Agents'), array('controller' => 'agents', 'action' => 'index')); ?> </li>
46
		<li><?php echo $this->Html->link(__('New Agent'), array('controller' => 'agents', 'action' => 'add')); ?> </li>
47
	</ul>
48
</div>