Subversion Repositories SmartDukaan

Rev

Rev 15537 | Go to most recent revision | Details | Compare with Previous | 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
 
4
	<table cellpadding="0" cellspacing="0" class="table table-striped" >
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('call_disposition'); ?></th>
15
			<th><?php echo $this->Paginator->sort('disposition_description'); ?></th>
16
			<th><?php echo $this->Paginator->sort('created'); ?></th>
17
 
18
	</tr>
19
	<?php foreach ($callhistories as $callhistory): ?>
20
	<tr>
21
		<td><?php echo h($callhistory['Callhistory']['id']); ?>&nbsp;</td>
22
		<td><?php echo h($callhistory['Callhistory']['retailer_id']); ?>&nbsp;
23
 
24
		</td>
25
		<td>
26
			<?php echo h($callhistory['Agent']['name']." (". ($callhistory['Callhistory']['agent_id']).") "); ?>
27
 
28
		</td>
29
		<td><?php echo h(substr($callhistory['Callhistory']['mobile_number'], 0, 4) . str_repeat("X", strlen($callhistory['Callhistory']['mobile_number']) - 6) . substr($callhistory['Callhistory']['mobile_number'], -2)); ?>&nbsp;</td>
30
 
31
		<!-- <td><?php echo h($callhistory['Callhistory']['mobile_number']); ?>&nbsp;</td> -->
32
		<td><?php echo h($callhistory['Callhistory']['call_type']); ?>&nbsp;</td>
33
		<td><?php if($callhistory['Callhistory']['sms_verified']==0) {echo h(0);} else {echo h($callhistory['Callhistory']['sms_verified']);} ?>&nbsp;</td>
34
 
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']['call_disposition']); ?>&nbsp;</td>
38
		<td><?php echo h($callhistory['Callhistory']['disposition_description']); ?>&nbsp;</td>
39
		<td><?php echo h($callhistory['Callhistory']['created']); ?>&nbsp;</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>