| 15667 |
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 |
</div>
|
|
|
19 |
<div class="table-responsive">
|
|
|
20 |
<table id="example" class="display table table-striped" cellspacing="0" width="100%">
|
|
|
21 |
<thead>
|
|
|
22 |
<tr>
|
|
|
23 |
<th>User Id</th>
|
|
|
24 |
<th>First Entry</th>
|
|
|
25 |
</tr>
|
|
|
26 |
</thead>
|
|
|
27 |
<tfoot>
|
|
|
28 |
<tr>
|
|
|
29 |
<th>User Id</th>
|
|
|
30 |
<th>First Entry</th>
|
|
|
31 |
</tr>
|
|
|
32 |
</tfoot>
|
|
|
33 |
<tbody>
|
|
|
34 |
<?php if(!empty($device_upgrades)):?>
|
|
|
35 |
<?php foreach ($device_upgrades as $key => $row) :?>
|
|
|
36 |
<tr>
|
|
|
37 |
<td><?php echo $row['devices']['user_id'];?></td>
|
|
|
38 |
<td><?php echo ($row[0]['date']);?></td>
|
|
|
39 |
</tr>
|
|
|
40 |
<?php endforeach;?>
|
|
|
41 |
<?php endif;?>
|
|
|
42 |
</tbody>
|
|
|
43 |
</table>
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|
|
|
46 |
</div>
|
|
|
47 |
|
|
|
48 |
<script type="text/javascript" src="//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js"></script>
|
|
|
49 |
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.7/css/jquery.dataTables.css"></link>
|
|
|
50 |
<script type="text/javascript">
|
|
|
51 |
$(document).ready(function() {
|
|
|
52 |
var table = $('#example').DataTable();
|
|
|
53 |
table.order( [ 1, 'desc' ] ).draw();
|
|
|
54 |
} );
|
|
|
55 |
</script>
|