Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15403 manish.sha 1
<div class="calls index">
2
	<h2><?php echo __('Calls'); ?></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('retailer_id'); ?></th>
7
			<th><?php echo $this->Paginator->sort('agent_id'); ?></th>
8
			<th><?php echo $this->Paginator->sort('status'); ?></th>
9
			<th><?php echo $this->Paginator->sort('callduration'); ?></th>
10
			<th><?php echo $this->Paginator->sort('created'); ?></th>
11
			<th><?php echo $this->Paginator->sort('modified'); ?></th>
12
			<th class="actions"><?php echo __('Actions'); ?></th>
13
	</tr>
14
	<?php foreach ($calls as $call): ?>
15
	<tr>
16
		<td><?php echo h($call['Call']['id']); ?>&nbsp;</td>
17
		<td>
18
			<?php echo $this->Html->link($call['Retailer']['name'], array('controller' => 'retailers', 'action' => 'view', $call['Retailer']['id'])); ?>
19
		</td>
20
		<td>
21
			<?php echo $this->Html->link($call['Agent']['name'], array('controller' => 'agents', 'action' => 'view', $call['Agent']['id'])); ?>
22
		</td>
23
		<td><?php echo h($call['Call']['status']); ?>&nbsp;</td>
24
		<td><?php echo h($call['Call']['callduration']); ?>&nbsp;</td>
25
		<td><?php echo h($call['Call']['created']); ?>&nbsp;</td>
26
		<td><?php echo h($call['Call']['modified']); ?>&nbsp;</td>
27
		<td class="actions">
28
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $call['Call']['id'])); ?>
29
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $call['Call']['id'])); ?>
30
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $call['Call']['id']), null, __('Are you sure you want to delete # %s?', $call['Call']['id'])); ?>
31
		</td>
32
	</tr>
33
<?php endforeach; ?>
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 Call'), array('action' => 'add')); ?></li>
53
		<li><?php echo $this->Html->link(__('List Retailers'), array('controller' => 'retailers', 'action' => 'index')); ?> </li>
54
		<li><?php echo $this->Html->link(__('New Retailer'), array('controller' => 'retailers', 'action' => 'add')); ?> </li>
55
		<li><?php echo $this->Html->link(__('List Agents'), array('controller' => 'agents', 'action' => 'index')); ?> </li>
56
		<li><?php echo $this->Html->link(__('New Agent'), array('controller' => 'agents', 'action' => 'add')); ?> </li>
57
		<li><?php echo $this->Html->link(__('List Play Store Links'), array('controller' => 'play_store_links', 'action' => 'index')); ?> </li>
58
		<li><?php echo $this->Html->link(__('New Play Store Link'), array('controller' => 'play_store_links', 'action' => 'add')); ?> </li>
59
	</ul>
60
</div>