Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15537 manas 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-12 table-responsive">
4
 
5
			<h3><?php if(!empty($date_to) || !empty($date_from)){echo __('Activations ')."($date_from     to    $date_to)";}else{}?></h3>
6
			<form class="navbar-form" role="search" method="GET" name="search" action="<?php echo $base_url;?>admin/callhistories/activations">
7
 
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
                    <div class="input-group-btn w25px">
12
                        <button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
13
                    </div>
14
            </div>
15
                <br><br>
16
            </form>
17
			<h3><?php if(sizeof($activations)==0) {echo h("No result");} else{?></h3>
18
			<?php foreach ($activations as $activation): ?>
19
			<?php $count+=$activation[0]['count'];?>
20
			<?php endforeach; ?>
21
			<h4><?php echo __('Total Activations '); ?> <?php echo h($count);?></h4>
22
			 <table class="table table-striped">
23
			<tr>
24
					<th><?php echo __('Name'); ?></th>
25
					<th><?php echo __('Total Activations'); ?></th>
26
			</tr>
27
			<?php foreach ($agentActivations as $agentActivation): ?>
28
 
29
			<tr>
30
				<td><?php echo h($agentActivation['a']['name']); ?>&nbsp;</td>				
31
				<td><?php echo h($agentActivation[0]['count']); ?>&nbsp;</td>
32
			</tr>
33
			<?php endforeach; ?>
34
			</table>				
35
			<?php }?>
36
		</div>
37
	</div>
38
</div>
39
<script type="text/javascript">
40
function reload(){
41
	document.location = '/admin/reports/activations';
42
}
43
</script>