Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15219 manas 1
<div class="callhistories index">
2
	<h2><?php echo __('Callhistories'); ?></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('mobile_number'); ?></th>
9
			<th><?php echo $this->Paginator->sort('call_type'); ?></th>
10
			<th><?php echo $this->Paginator->sort('sms_verified'); ?></th>
11
			<th><?php echo $this->Paginator->sort('call_time'); ?></th>
12
			<th><?php echo $this->Paginator->sort('duration_sec'); ?></th>
13
			<th><?php echo $this->Paginator->sort('call_disposition'); ?></th>
14
			<th><?php echo $this->Paginator->sort('disposition_description'); ?></th>
15
			<th><?php echo $this->Paginator->sort('created'); ?></th>
16
			<th class="actions"><?php echo __('Actions'); ?></th>
17
	</tr>
18
	<?php foreach ($callhistories as $callhistory): ?>
19
	<tr>
20
		<td><?php echo h($callhistory['Callhistory']['id']); ?>&nbsp;</td>
21
		<td>
22
			<?php echo $this->Html->link($callhistory['Retailer']['name'], array('controller' => 'retailers', 'action' => 'view', $callhistory['Retailer']['id'])); ?>
23
		</td>
24
		<td>
25
			<?php echo $this->Html->link($callhistory['Agent']['name'], array('controller' => 'agents', 'action' => 'view', $callhistory['Agent']['id'])); ?>
26
		</td>
27
		<td><?php echo h($callhistory['Callhistory']['mobile_number']); ?>&nbsp;</td>
28
		<td><?php echo h($callhistory['Callhistory']['call_type']); ?>&nbsp;</td>
29
		<td><?php echo h($callhistory['Callhistory']['sms_verified']); ?>&nbsp;</td>
30
		<td><?php echo h($callhistory['Callhistory']['call_time']); ?>&nbsp;</td>
31
		<td><?php echo h($callhistory['Callhistory']['duration_sec']); ?>&nbsp;</td>
32
		<td><?php echo h($callhistory['Callhistory']['call_disposition']); ?>&nbsp;</td>
33
		<td><?php echo h($callhistory['Callhistory']['disposition_description']); ?>&nbsp;</td>
34
		<td><?php echo h($callhistory['Callhistory']['created']); ?>&nbsp;</td>
35
		<td class="actions">
36
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $callhistory['Callhistory']['id'])); ?>
37
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $callhistory['Callhistory']['id'])); ?>
38
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $callhistory['Callhistory']['id']), null, __('Are you sure you want to delete # %s?', $callhistory['Callhistory']['id'])); ?>
39
		</td>
40
	</tr>
41
<?php endforeach; ?>
42
	</table>
43
	<p>
44
	<?php
45
	echo $this->Paginator->counter(array(
46
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
47
	));
48
	?>	</p>
49
	<div class="paging">
50
	<?php
51
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
52
		echo $this->Paginator->numbers(array('separator' => ''));
53
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
54
	?>
55
	</div>
56
</div>
57
<div class="actions">
58
	<h3><?php echo __('Actions'); ?></h3>
59
	<ul>
60
		<li><?php echo $this->Html->link(__('New Callhistory'), array('action' => 'add')); ?></li>
61
		<li><?php echo $this->Html->link(__('List Retailers'), array('controller' => 'retailers', 'action' => 'index')); ?> </li>
62
		<li><?php echo $this->Html->link(__('New Retailer'), array('controller' => 'retailers', 'action' => 'add')); ?> </li>
63
		<li><?php echo $this->Html->link(__('List Agents'), array('controller' => 'agents', 'action' => 'index')); ?> </li>
64
		<li><?php echo $this->Html->link(__('New Agent'), array('controller' => 'agents', 'action' => 'add')); ?> </li>
65
	</ul>
66
</div>