-
Notifications
You must be signed in to change notification settings - Fork 0
/
drp-t.php
121 lines (117 loc) · 5.47 KB
/
drp-t.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
include_once('includes/_header.php');
include_once('includes/_top.php');
?>
<script>
$(document).ready(function() {
$('#tablePhaseT').DataTable( {
ajax: './sensing/_table-get-pltmh-r.php',
deferRender: true,
scrollY: 200,
scrollCollapse: true,
scroller: true,
initComplete: function () {
this.api().row( 1000 ).scrollTo();
}
} );
jQuery( "#from" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
dateFormat: "yy-mm-dd",
onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
}
});
jQuery( "#to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
dateFormat: "yy-mm-dd",
onClose: function( selectedDate ) {
jQuery( "#from" ).datepicker( "option", "maxDate", selectedDate );
}
});
} );
</script>
<div id="container" class="row-fluid">
<?php
include_once('includes/_sidebar.php');
?>
<!--BEGIN CONTENT-->
<div id="main-content">
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">
Data Report
</h3>
<ul class="breadcrumb">
<li>
<i class="icon-home"></i><span class="divider"> </span>
</li>
<li>
Microhydro Monitoring<span class="divider"> </span>
</li>
<li>
Data Report<span class="divider-last"> </span>
</li>
<li class="pull-right search-wrap"></li>
</ul>
</div>
</div>
<div id="page" class="dashboard">
<div class="row-fluid">
<div class="span12">
<div class="widget">
<div class="widget-title">
<h4><i class="icon-reorder"></i>Managed Table</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
<a href="javascript:;" class="icon-remove"></a>
</span>
</div>
<div class="widget-body">
<table id="tablePhaseT" class="display" cellspacing="0" width="100%">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Watt</th>
<th>Volt Ampere</th>
<th>Cosphi</th>
<th>Volt</th>
<th>Ampere</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="widget">
<div class="widget-title">
<h4><i class="icon-bolt"></i> Export Data by Date Range</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
<a href="javascript:;" class="icon-remove"></a>
</span>
</div>
<div class="widget-body">
<form method="post" action="./sensing/_export-xls-t.php">
<p>Select a date range: </p><label style="color:#FFF;" for="from">From</label>
From: <input type="text" id="from" name="from" />
<label style="color:#FFF;" for="to" >to</label>
To:     <input type="text" id="to" name="to" />
<br /><br /><input name="export" type="submit" value="Export Excel" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--FINISH CONTENT-->
</div>
<?php
include_once('includes/_footer.php');
?>