Subversion Repositories SmartDukaan

Rev

Rev 15422 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15382 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-12 table-responsive">
4
			<div class="searchbar">
5
				<?php echo $this->Form->create('Report');?>
6
				<!-- <form class="navbar-form" role="search" method="GET" name="search"> -->
7
			        <div class="input-group col-xs-12 text-left" id="remote">
8
			        	<?php echo $this->Form->input('date',array('type'=>'date'));?>
9
			            <!-- <input autocomplete="off" type="text" class="form-control" placeholder="Search for url" name="q" id="srch-term" value="<?php if(isset($q)){echo $q;}?>">			-->
10
			            <div class="input-group-btn w25px">
11
			                <button class="btn btn-xs btn-default" type="submit">Submit</button>
12
			                <button class="btn btn-xs btn-default" type="reset" onclick="reload()">Reset</button>
13
			            </div>
14
			        </div>
15
			       <?php echo $this->Form->end();?>
16
		        <!-- </form> -->
17
			</div>
18
			<h3><?php echo __('Activations '); ?> <?php echo "($date)";?></h3>
19
			<table class="table table-striped">
20
			<tr>
21
					<th><?php echo __('date'); ?></th>
22
					<th><?php echo __('referrer'); ?></th>
23
					<th><?php echo __('count'); ?></th>
24
			</tr>
25
			<?php foreach ($activations as $activation): ?>
26
			<tr>
27
				<td><?php echo h($activation[0]['date']); ?>&nbsp;</td>				
28
				<td><?php echo h($activation['users']['referrer']); ?>&nbsp;</td>
29
				<td><?php echo h($activation[0]['count']); ?>&nbsp;</td>
30
			</tr>
31
			<?php endforeach; ?>
32
			</table>						
33
		</div>
34
	</div>
35
</div>
36
<script type="text/javascript">
37
function reload(){
38
	document.location = '/admin/reports/activations';
39
}
40
</script>