This repository has been archived by the owner on Feb 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
gstrapport.php
executable file
·172 lines (151 loc) · 6.68 KB
/
gstrapport.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
/* * Projet : Okovision - Supervision chaudiere OeKofen
* Auteur : Stawen Dronek
* Utilisation commerciale interdite sans mon accord
* */
include_once 'config.php';
include_once '_templates/header.php';
include_once '_templates/menu.php';
?>
<div class="container theme-showcase" role="main">
<div class="page-header">
<h3> <small><?php echo session::getInstance()->getLabel('lang.text.page.repport.title'); ?></small></h3>
</div>
<div class="col-md-12">
<button type="button" class="btn btn-xs btn-default" id="openModalAddGraphique" data-toggle="modal" data-target="#modal_graphique">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> <?php echo session::getInstance()->getLabel('lang.text.page.repport.add'); ?>
</button>
</div>
<table id="listeGraphique" class="table table-hover">
<thead>
<tr>
<th class="col-md-2"><?php echo session::getInstance()->getLabel('lang.text.page.repport.table.position'); ?></th>
<th class="col-md-8"><?php echo session::getInstance()->getLabel('lang.text.page.repport.table.name'); ?></th>
<th class="col-md-2"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p> </p>
<div class="page-header">
<h3> <small><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.title'); ?></small></h3>
</div>
<div class="col-md-6" align="left">
<button type="button" class="btn btn-xs btn-default" id="openModalAsso" data-toggle="modal" data-target="#modal_asso">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> <?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.add'); ?>
</button>
</div>
<div class="col-md-6" align="right"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.filter'); ?>
<select id="select_graphique">
</select>
</div>
<table id="listeAsso" class="table table-hover">
<thead>
<tr>
<th class="col-md-2"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.table.position'); ?></th>
<th class="col-md-5"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.table.name'); ?></th>
<th class="col-md-3"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.table.coef'); ?></th>
<th class="col-md-2"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="modal fade" id="modal_graphique" tabindex="-1" role="dialog" aria-labelledby="graphiqueLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="graphiqueTitre"></h4>
</div>
<div class="modal-body">
<div class="hidden">
<input type="text" id="typeModal">
<input type="text" id="grapheId">
<input type="text" id="position">
</div>
<form>
<div class="form-group">
<label for="recipient-name" class="control-label"><?php echo session::getInstance()->getLabel('lang.text.page.repport.repport.modale.title'); ?></label>
<input type="text" class="form-control" id="name">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
<button type="button" id="addGraphique" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="modal_asso" tabindex="-1" role="dialog" aria-labelledby="assoLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="assoTitre"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.modale.title'); ?></h4>
</div>
<div class="modal-body">
<div class="hidden">
<input type="text" id="typeModal">
<input type="text" id="position">
</div>
<form>
<div class="form-group" id="divgroupe">
<label for="message-text" class="control-label"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.modale.graphic'); ?></label>
<select class="form-control" id="select_graphe">
</select>
</div>
<div class="form-group" id="divcapteur">
<label for="message-text" class="control-label"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.modale.capteur'); ?></label>
<select class="form-control" id="select_capteur">
</select>
</div>
<div class="form-group">
<label for="recipient-name" class="control-label"><?php echo session::getInstance()->getLabel('lang.text.page.repport.asso.modale.coef'); ?></label>
<input type="text" class="form-control" id="coeff" placeholder="ex : 0,25" value="1">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal">
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
</button>
<button type="button" id="addAsso" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="deleteLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="deleteTitre"></h4>
</div>
<div class="hidden">
<input type="text" id="deleteid">
<input type="text" id="typeModal">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo session::getInstance()->getLabel('lang.text.modal.cancel'); ?></button>
<button type="button" class="btn btn-danger btn-ok" id="deleteConfirm"><?php echo session::getInstance()->getLabel('lang.text.modal.confirm'); ?></button>
</div>
</div>
</div>
</div>
<?php include __DIR__.'/_templates/footer.php'; ?>
<!--appel des scripts personnels de la page -->
<script src="js/gstrapport.js"></script>
</body>
</html>