@@ -63,7 +63,7 @@ function print_box_bottom_element() {
63
63
64
64
echo '<section class="content-header">
65
65
<h1 id="pageTitle"> ' . $ pia_lang ['ICMPMonitor_Title ' ] . ' - ' . $ pia_lang ['Device_bulkEditor_mode ' ] . '</h1>
66
- <a href="./icmpmonitor.php" class="btn btn-success pull-right" role="button" style="position: absolute; display: inline-block; top: 5px; right: 15px; "> ' . $ pia_lang ['Device_bulkEditor_mode_quit ' ] . '</a>
66
+ <a href="./icmpmonitor.php" class="btn btn-success pull-right bulk_editor_quit " role="button"> ' . $ pia_lang ['Device_bulkEditor_mode_quit ' ] . '</a>
67
67
</section> ' ;
68
68
69
69
echo '<section class="content">
@@ -160,22 +160,21 @@ function print_box_bottom_element() {
160
160
$ sql = 'SELECT icmp_hostname, icmp_ip, icmp_PresentLastScan, icmp_AlertEvents, icmp_AlertDown FROM ICMP_Mon ORDER BY icmp_hostname COLLATE NOCASE ASC ' ;
161
161
$ results = $ db ->query ($ sql );
162
162
while ($ row = $ results ->fetchArray ()) {
163
- if ($ row [2 ] == 1 ) {$ status_border = 'border: 1px solid #00A000; box-shadow: inset 0px 0px 5px 0px #00A000; ' ;} else { $ status_border = 'border: 1px solid #888; ' ;}
163
+ if ($ row [2 ] == 1 ) {$ status_border = 'bulked_online_border ' ;} else { $ status_border = 'bulked_offline_border ' ;}
164
164
if ($ row [3 ] == 1 && $ row [4 ] == 1 ) {$ status_text_color = 'bulked_checkbox_label_alldown ' ;} elseif ($ row [3 ] == 1 ) {$ status_text_color = 'bulked_checkbox_label_all ' ;} elseif ($ row [4 ] == 1 ) {$ status_text_color = 'bulked_checkbox_label_down ' ;} else { $ status_text_color = '' ;}
165
- //if ($row[4] == 1) {$status_box = 'background-color: #b1720c;';} else { $status_box = 'background-color: transparent;';}
166
- echo '<div class="table_settings_col_box" style="padding-left: 0px; padding-top: 0px; ' . $ status_border . '">
167
- <div style="display: inline-block; ' . $ status_box . ' height: 32px; width: 36px; margin-right: 3px; padding-left: 8px; padding-top: 6px;">
168
- <input class="icheckbox_flat-blue hostselection" id=" ' . str_replace (". " , "_ " , $ row [1 ]) . '" name=" ' . str_replace (". " , "_ " , $ row [1 ]) . '" type="checkbox" style="position: relative; margin-top:-3px; margin-right: 3px;">
165
+ echo '<div class="bulked_dev_box ' . $ status_border . '">
166
+ <div class="bulked_dev_chk_cont" style=" ' . $ status_box . '">
167
+ <input class="icheckbox_flat-blue hostselection bulked_dev_chkbox" id=" ' . str_replace (". " , "_ " , $ row [1 ]) . '" name=" ' . str_replace (". " , "_ " , $ row [1 ]) . '" type="checkbox">
169
168
</div>
170
169
<label class="control-label ' . $ status_text_color . '" for=" ' . str_replace (". " , "_ " , $ row [1 ]) . '" style=""> ' . $ row [0 ] . '</label>
171
170
</div> ' ;
172
171
}
173
172
174
173
// Check/Uncheck All Button
175
- echo '<button type="button" class="btn btn-warning pull-right checkall" style="display: block; margin-top: 20px; margin-bottom: 10px; min-width: 180px; "> ' . $ pia_lang ['Device_bulkEditor_selectall ' ] . '</button> ' ;
174
+ echo '<button type="button" class="btn btn-warning pull-right checkall" id="bulked_checkall "> ' . $ pia_lang ['Device_bulkEditor_selectall ' ] . '</button> ' ;
176
175
echo '<script>
177
176
var clicked = false;
178
- $(".checkall ").on("click", function() {
177
+ $("#bulked_checkall ").on("click", function() {
179
178
$(".hostselection").prop("checked", !clicked);
180
179
clicked = !clicked;
181
180
this.innerHTML = clicked ? \'' . $ pia_lang ['Device_bulkEditor_selectnone ' ] . '\' : \'' . $ pia_lang ['Device_bulkEditor_selectall ' ] . '\';
@@ -187,14 +186,14 @@ function print_box_bottom_element() {
187
186
// Inputs
188
187
echo '<table style="margin-bottom:30px; width: 100%">
189
188
<tr>
190
- <td style="padding-left: 10px; height: 70px; width: 80px;"><input class="icheckbox_flat-blue" id="en_bulk_owner" name="en_bulk_owner" type="checkbox"></td>
191
- <td style="" >
189
+ <td class="bulked_table_cell_a" style=" width: 80px;"><input class="icheckbox_flat-blue" id="en_bulk_owner" name="en_bulk_owner" type="checkbox"></td>
190
+ <td>
192
191
<label for="bulk_owner"> ' . $ pia_lang ['DevDetail_MainInfo_Owner ' ] . ':</label><br>
193
192
<input type="text" class="form-control" id="bulk_owner" name="bulk_owner" style="max-width: 400px;" disabled></td>
194
193
</tr>
195
194
<tr>
196
- <td style="padding-left: 10px; height: 70px; "><input class="icheckbox_flat-blue" id="en_bulk_type" name="en_bulk_type" type="checkbox"></td>
197
- <td style="" >
195
+ <td class="bulked_table_cell_a "><input class="icheckbox_flat-blue" id="en_bulk_type" name="en_bulk_type" type="checkbox"></td>
196
+ <td>
198
197
<label for="bulk_type"> ' . $ pia_lang ['DevDetail_MainInfo_Type ' ] . ':</label><br>
199
198
<div class="input-group" style="max-width: 400px;">
200
199
<input class="form-control" id="bulk_type" name="bulk_type" type="text" disabled>
@@ -218,8 +217,8 @@ function print_box_bottom_element() {
218
217
</td>
219
218
</tr>
220
219
<tr>
221
- <td style="padding-left: 10px; height: 70px; "><input class="icheckbox_flat-blue" id="en_bulk_group" name="en_bulk_group" type="checkbox"></td>
222
- <td style="" >
220
+ <td class="bulked_table_cell_a "><input class="icheckbox_flat-blue" id="en_bulk_group" name="en_bulk_group" type="checkbox"></td>
221
+ <td>
223
222
<label for="bulk_group"> ' . $ pia_lang ['DevDetail_MainInfo_Group ' ] . ':</label><br>
224
223
<div class="input-group" style="max-width: 400px;">
225
224
<input class="form-control" id="bulk_group" name="bulk_group" type="text" disabled>
@@ -238,8 +237,8 @@ function print_box_bottom_element() {
238
237
</td>
239
238
</tr>
240
239
<tr>
241
- <td style="padding-left: 10px; height: 70px; "><input class="icheckbox_flat-blue" id="en_bulk_location" name="en_bulk_location" type="checkbox"></td>
242
- <td style="" >
240
+ <td class="bulked_table_cell_a "><input class="icheckbox_flat-blue" id="en_bulk_location" name="en_bulk_location" type="checkbox"></td>
241
+ <td>
243
242
<label for="bulk_location"> ' . $ pia_lang ['DevDetail_MainInfo_Location ' ] . ':</label><br>
244
243
<div class="input-group" style="max-width: 400px;">
245
244
<input class="form-control" id="bulk_location" name="bulk_location" type="text" disabled>
@@ -260,20 +259,20 @@ function print_box_bottom_element() {
260
259
</td>
261
260
</tr>
262
261
<tr>
263
- <td style="padding-left: 10px; height: 70px; "><input class="icheckbox_flat-blue" id="en_bulk_comments" name="en_bulk_comments" type="checkbox"></td>
264
- <td style="" >
262
+ <td class="bulked_table_cell_a "><input class="icheckbox_flat-blue" id="en_bulk_comments" name="en_bulk_comments" type="checkbox"></td>
263
+ <td>
265
264
<label for="bulk_comments"> ' . $ pia_lang ['DevDetail_MainInfo_Comments ' ] . ':</label><br>
266
265
<textarea class="form-control" rows="3" id="bulk_comments" name="bulk_comments" spellcheck="false" data-gramm="false" style="max-width: 400px;" disabled></textarea></td>
267
266
</tr>
268
267
<tr>
269
- <td style="padding-left: 10px; height: 70px; "><input class="icheckbox_flat-blue" id="en_bulk_AlertAllEvents" name="en_bulk_AlertAllEvents" type="checkbox"></td>
270
- <td style="" >
268
+ <td class="bulked_table_cell_a "><input class="icheckbox_flat-blue" id="en_bulk_AlertAllEvents" name="en_bulk_AlertAllEvents" type="checkbox"></td>
269
+ <td>
271
270
<label for="bulk_AlertAllEvents" style="width: 200px;"> ' . $ pia_lang ['DevDetail_EveandAl_AlertAllEvents ' ] . ':</label>
272
271
<input class="icheckbox_flat-blue" id="bulk_AlertAllEvents" name="bulk_AlertAllEvents" type="checkbox" disabled></td>
273
272
</tr>
274
273
<tr>
275
- <td style="padding-left: 10px; height: 70px; "><input class="icheckbox_flat-blue" id="en_bulk_AlertDown" name="en_bulk_AlertDown" type="checkbox"></td>
276
- <td style="" >
274
+ <td class="bulked_table_cell_a "><input class="icheckbox_flat-blue" id="en_bulk_AlertDown" name="en_bulk_AlertDown" type="checkbox"></td>
275
+ <td>
277
276
<label for="bulk_AlertDown" style="width: 200px;"> ' . $ pia_lang ['DevDetail_EveandAl_AlertDown ' ] . ':</label>
278
277
<input class="icheckbox_flat-blue" id="bulk_AlertDown" name="bulk_AlertDown" type="checkbox" disabled></td>
279
278
</tr>
0 commit comments