Subversion Repositories SmartDukaan

Rev

Rev 15226 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15219 manas 1
<div class="callhistories index">
2
	<h2><?php echo __('Callhistories'); ?></h2>
15226 manas 3
	<form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/callhistories/search">
4
<!-- 	<div >
5
	<input type="radio" id="radio1" name="type" value="date" checked="checked" onchange="check();" />Date
6
	<input type="radio" id="radio2" name="type" value="agent" checked="checked" onchange="check();"/>Agent
7
	</div> -->
8
        		<div class="input-group col-xs-6 text-left">
9
    				Date From<input type="date" name="date_from" value="Date"/>
10
    				Date To<input type="date" name="date_to" value="Date"/>
11
        			<!-- Agent Code
12
        			<select name="">
13
					  <option value="volvo">Volvo</option>
14
					  <option value="saab">Saab</option>
15
					  <option value="mercedes">Mercedes</option>
16
					  <option value="audi">Audi</option>
17
					</select> -->
18
        		</div>
15404 manas 19
                <!-- <div class="input-group col-xs-6 text-right" id="remote">
15226 manas 20
                    <div class="input-group-btn w25px">
21
                        <input type="submit" value="Submit">
22
 
23
                    </div>
15404 manas 24
                </div> -->
25
                <div class="input-group col-xs-6 text-left">
26
        			Search By:         			
27
        			<input type="radio" name="type" value="agent_name" checked="checked"/>Agent Name
28
                    <input type="radio" name="type" value="agent_id"/>Agent Id
29
                    <input type="radio" name="type" value="agent_role"/>Agent Role
30
 
31
        		</div>
32
                <div class="input-group col-xs-6 text-right" id="remote">
33
                    <input autocomplete="off" type="text" class="form-control" placeholder="Search for users" name="search" id="srch-term">
34
                    <div class="input-group-btn w25px">
35
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
36
                    </div>
15226 manas 37
                </div>
38
            </form>
39
 
15219 manas 40
	<table cellpadding="0" cellspacing="0" class="table table-striped" >
41
	<tr>
42
			<th><?php echo $this->Paginator->sort('id'); ?></th>
43
			<th><?php echo $this->Paginator->sort('retailer_id'); ?></th>
44
			<th><?php echo $this->Paginator->sort('agent_id'); ?></th>
45
			<th><?php echo $this->Paginator->sort('mobile_number'); ?></th>
46
			<th><?php echo $this->Paginator->sort('call_type'); ?></th>
47
			<th><?php echo $this->Paginator->sort('sms_verified'); ?></th>
48
			<th><?php echo $this->Paginator->sort('call_time'); ?></th>
49
			<th><?php echo $this->Paginator->sort('duration_sec'); ?></th>
50
			<th><?php echo $this->Paginator->sort('call_disposition'); ?></th>
51
			<th><?php echo $this->Paginator->sort('disposition_description'); ?></th>
52
			<th><?php echo $this->Paginator->sort('created'); ?></th>
53
 
54
	</tr>
55
	<?php foreach ($callhistories as $callhistory): ?>
56
	<tr>
57
		<td><?php echo h($callhistory['Callhistory']['id']); ?>&nbsp;</td>
58
		<td><?php echo h($callhistory['Callhistory']['retailer_id']); ?>&nbsp;
59
 
60
		</td>
61
		<td>
15220 manas 62
			<?php echo h($callhistory['Agent']['name']." (". ($callhistory['Callhistory']['agent_id']).") "); ?>
63
 
15219 manas 64
		</td>
15404 manas 65
		<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>
66
 
67
		<!-- <td><?php echo h($callhistory['Callhistory']['mobile_number']); ?>&nbsp;</td> -->
15219 manas 68
		<td><?php echo h($callhistory['Callhistory']['call_type']); ?>&nbsp;</td>
69
		<td><?php if($callhistory['Callhistory']['sms_verified']==0) {echo h(0);} else {echo h($callhistory['Callhistory']['sms_verified']);} ?>&nbsp;</td>
70
 
71
		<td><?php echo h($callhistory['Callhistory']['call_time']); ?>&nbsp;</td>
72
		<td><?php echo h($callhistory['Callhistory']['duration_sec']); ?>&nbsp;</td>
73
		<td><?php echo h($callhistory['Callhistory']['call_disposition']); ?>&nbsp;</td>
74
		<td><?php echo h($callhistory['Callhistory']['disposition_description']); ?>&nbsp;</td>
75
		<td><?php echo h($callhistory['Callhistory']['created']); ?>&nbsp;</td>
76
	</tr>
77
<?php endforeach; ?>
78
	</table>
79
	<p>
80
	<?php
81
	echo $this->Paginator->counter(array(
82
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
83
	));
84
	?>	</p>
85
	<div class="paging">
86
	<?php
87
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
88
		echo $this->Paginator->numbers(array('separator' => ' '));
89
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
90
	?>
91
	</div>
92
</div>