Changed checkbox switch

This commit is contained in:
manuel.montes 2020-09-10 17:48:07 +02:00
parent 3a95c3dd58
commit 4b531a96c2
1 changed files with 91 additions and 64 deletions

View File

@ -1024,7 +1024,7 @@ $class = 'databox filters';
</td> </td>
<td style=""> <td style="">
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'last_value', 'last_value',
'1', '1',
((int) $period === 0), ((int) $period === 0),
@ -1110,7 +1110,7 @@ $class = 'databox filters';
<td style="font-weight:bold;"><?php echo __('Only display wrong SLAs'); ?></td> <td style="font-weight:bold;"><?php echo __('Only display wrong SLAs'); ?></td>
<td> <td>
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'checkbox_only_display_wrong', 'checkbox_only_display_wrong',
1, 1,
$only_display_wrong $only_display_wrong
@ -1125,7 +1125,13 @@ $class = 'databox filters';
</td> </td>
<td style="font-weight:bold;"> <td style="font-weight:bold;">
<?php html_print_checkbox('current_month', 1, $current_month); ?> <?php
html_print_checkbox_switch(
'current_month',
1,
$current_month
);
?>
</td> </td>
</tr> </tr>
@ -1138,46 +1144,60 @@ $class = 'databox filters';
<table border="0"> <table border="0">
<tr> <tr>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Monday'); echo __('Monday')."<br>";
html_print_checkbox('monday', 1, $monday); html_print_checkbox_switch('monday', 1, $monday);
?> ?>
</p>
</td> </td>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Tuesday'); echo __('Tuesday')."<br>";
html_print_checkbox('tuesday', 1, $tuesday); html_print_checkbox_switch('tuesday', 1, $tuesday);
?> ?>
</p>
</td> </td>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Wednesday'); echo __('Wednesday')."<br>";
html_print_checkbox('wednesday', 1, $wednesday); html_print_checkbox_switch('wednesday', 1, $wednesday);
?> ?>
</p>
</td> </td>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Thursday'); echo __('Thursday')."<br>";
html_print_checkbox('thursday', 1, $thursday); html_print_checkbox_switch('thursday', 1, $thursday);
?> ?>
</p>
</td> </td>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Friday'); echo __('Friday')."<br>";
html_print_checkbox('friday', 1, $friday); html_print_checkbox_switch('friday', 1, $friday);
?> ?>
</p>
</td> </td>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Saturday'); echo __('Saturday')."<br>";
html_print_checkbox('saturday', 1, $saturday); html_print_checkbox_switch('saturday', 1, $saturday);
?> ?>
</p>
</td> </td>
<td> <td>
<p style="margin-right:30px;">
<?php <?php
echo __('Sunday'); echo __('Sunday')."<br>";
html_print_checkbox('sunday', 1, $sunday); html_print_checkbox_switch('sunday', 1, $sunday);
?> ?>
</p>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -1224,7 +1244,7 @@ $class = 'databox filters';
</td> </td>
<td colspan="6"> <td colspan="6">
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'compare_work_time', 'compare_work_time',
1, 1,
$compare_work_time $compare_work_time
@ -1260,7 +1280,7 @@ $class = 'databox filters';
); );
} }
echo '&nbsp;&nbsp;&nbsp;'.__('Recursion').html_print_checkbox( echo '&nbsp;&nbsp;&nbsp;'.__('Recursion').'&nbsp;&nbsp;&nbsp;'.html_print_checkbox_switch(
'recursion', 'recursion',
1, 1,
$recursion, $recursion,
@ -1974,7 +1994,7 @@ $class = 'databox filters';
</td> </td>
<td> <td>
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'checkbox_row_group_by_agent', 'checkbox_row_group_by_agent',
1, 1,
$group_by_agent $group_by_agent
@ -2078,7 +2098,7 @@ $class = 'databox filters';
</td> </td>
<td> <td>
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'time_compare_overlapped', 'time_compare_overlapped',
1, 1,
$time_compare_overlapped $time_compare_overlapped
@ -2096,7 +2116,14 @@ $class = 'databox filters';
); );
?> ?>
</td> </td>
<td><?php html_print_checkbox('fullscale', 1, $fullscale); ?></td> <td><?php
html_print_checkbox_switch(
'fullscale',
1,
$fullscale
);
?>
</td>
</tr> </tr>
<tr id="row_percentil" style="" class="datos"> <tr id="row_percentil" style="" class="datos">
@ -2166,32 +2193,32 @@ $class = 'databox filters';
<td> <td>
<p style="margin-right:30px;"> <p style="margin-right:30px;">
<?php <?php
echo __('Total time'); echo __('Total time')."<br>";
html_print_checkbox('total_time', 1, $total_time); html_print_checkbox_switch('total_time', 1, $total_time);
?> ?>
</p> </p>
</td> </td>
<td> <td>
<p style="margin-right:30px;"> <p style="margin-right:30px;">
<?php <?php
echo __('Time failed'); echo __('Time failed')."<br>";
html_print_checkbox('time_failed', 1, $time_failed); html_print_checkbox_switch('time_failed', 1, $time_failed);
?> ?>
</p> </p>
</td> </td>
<td> <td>
<p style="margin-right:30px;"> <p style="margin-right:30px;">
<?php <?php
echo __('Time in OK status'); echo __('Time in OK status')."<br>";
html_print_checkbox('time_in_ok_status', 1, $time_in_ok_status); html_print_checkbox_switch('time_in_ok_status', 1, $time_in_ok_status);
?> ?>
</p> </p>
</td> </td>
<td> <td>
<p style="margin-right:30px;"> <p style="margin-right:30px;">
<?php <?php
echo __('Time in unknown status'); echo __('Time in unknown status')."<br>";
html_print_checkbox( html_print_checkbox_switch(
'time_in_unknown_status', 'time_in_unknown_status',
1, 1,
$time_in_unknown_status $time_in_unknown_status
@ -2202,8 +2229,8 @@ $class = 'databox filters';
<td> <td>
<p style="margin-right:30px;"> <p style="margin-right:30px;">
<?php <?php
echo __('Time of not initialized module'); echo __('Time of not initialized module')."<br>";
html_print_checkbox( html_print_checkbox_switch(
'time_of_not_initialized_module', 'time_of_not_initialized_module',
1, 1,
$time_of_not_initialized_module $time_of_not_initialized_module
@ -2214,8 +2241,8 @@ $class = 'databox filters';
<td> <td>
<p style="margin-right:30px;"> <p style="margin-right:30px;">
<?php <?php
echo __('Time of downtime'); echo __('Time of downtime')."<br>";
html_print_checkbox('time_of_downtime', 1, $time_of_downtime); html_print_checkbox_switch('time_of_downtime', 1, $time_of_downtime);
?> ?>
</p> </p>
</td> </td>
@ -2348,7 +2375,7 @@ $class = 'databox filters';
</td> </td>
<td> <td>
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'show_summary_group', 'show_summary_group',
true, true,
$show_summary_group $show_summary_group
@ -2446,7 +2473,7 @@ $class = 'databox filters';
</td> </td>
<td> <td>
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'include_extended_events', 'include_extended_events',
true, true,
$include_extended_events $include_extended_events
@ -2461,7 +2488,7 @@ $class = 'databox filters';
<span id="row_event_graph_by_agent"> <span id="row_event_graph_by_agent">
<?php <?php
echo __('By agent '); echo __('By agent ');
html_print_checkbox( html_print_checkbox_switch(
'event_graph_by_agent', 'event_graph_by_agent',
true, true,
$event_graph_by_agent $event_graph_by_agent
@ -2471,7 +2498,7 @@ $class = 'databox filters';
<span id="row_event_graph_by_user"> <span id="row_event_graph_by_user">
<?php <?php
echo __('By user validator '); echo __('By user validator ');
html_print_checkbox( html_print_checkbox_switch(
'event_graph_by_user_validator', 'event_graph_by_user_validator',
true, true,
$event_graph_by_user_validator $event_graph_by_user_validator
@ -2481,7 +2508,7 @@ $class = 'databox filters';
<span id="row_event_graph_by_criticity"> <span id="row_event_graph_by_criticity">
<?php <?php
echo __('By criticity '); echo __('By criticity ');
html_print_checkbox( html_print_checkbox_switch(
'event_graph_by_criticity', 'event_graph_by_criticity',
true, true,
$event_graph_by_criticity $event_graph_by_criticity
@ -2491,7 +2518,7 @@ $class = 'databox filters';
<span id="row_event_graph_by_validated"> <span id="row_event_graph_by_validated">
<?php <?php
echo __('Validated vs unvalidated '); echo __('Validated vs unvalidated ');
html_print_checkbox( html_print_checkbox_switch(
'event_graph_validated_vs_unvalidated', 'event_graph_validated_vs_unvalidated',
true, true,
$event_graph_validated_vs_unvalidated $event_graph_validated_vs_unvalidated
@ -2512,7 +2539,7 @@ $class = 'databox filters';
</td> </td>
<td style=""> <td style="">
<?php <?php
html_print_checkbox('historical_db_check', 1, $historical_db); html_print_checkbox_switch('historical_db_check', 1, $historical_db);
?> ?>
</td> </td>
</tr> </tr>
@ -2547,7 +2574,7 @@ $class = 'databox filters';
</td> </td>
<td style=""> <td style="">
<?php <?php
html_print_checkbox( html_print_checkbox_switch(
'show_in_same_row', 'show_in_same_row',
'1', '1',
$show_in_same_row, $show_in_same_row,
@ -2683,7 +2710,7 @@ $class = 'databox filters';
</td> </td>
<td style=""> <td style="">
<?php <?php
html_print_checkbox('lapse_calc', 1, $lapse_calc); html_print_checkbox_switch('lapse_calc', 1, $lapse_calc);
?> ?>
</td> </td>
</tr> </tr>
@ -2783,7 +2810,7 @@ $class = 'databox filters';
</td> </td>
<td style=""> <td style="">
<?php <?php
html_print_checkbox('uncompressed_module', 1, $item['uncompressed_module'], false, false, '', false); html_print_checkbox_switch('uncompressed_module', 1, $item['uncompressed_module'], false, false, '', false);
?> ?>
</td> </td>
</tr> </tr>
@ -2794,7 +2821,7 @@ $class = 'databox filters';
echo __('Show item in landscape format (only PDF)'); echo __('Show item in landscape format (only PDF)');
?> ?>
</td> </td>
<td><?php html_print_checkbox('landscape', 1, $landscape); ?></td> <td><?php html_print_checkbox_switch('landscape', 1, $landscape); ?></td>
</tr> </tr>
<tr id="row_pagebreak" style="" class="datos"> <tr id="row_pagebreak" style="" class="datos">
@ -2803,7 +2830,7 @@ $class = 'databox filters';
echo __('Page break at the end of the item (only PDF)'); echo __('Page break at the end of the item (only PDF)');
?> ?>
</td> </td>
<td><?php html_print_checkbox('pagebreak', 1, $pagebreak); ?></td> <td><?php html_print_checkbox_switch('pagebreak', 1, $pagebreak); ?></td>
</tr> </tr>
</tbody> </tbody>