Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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