Commit 1d3cb290 by netz.coop eG

Abschaltzeitenhack rausgenommen

1 parent 2d740781
Showing with 3 additions and 7 deletions
...@@ -161,12 +161,8 @@ if (!isset($_SESSION['user_id'])) { ...@@ -161,12 +161,8 @@ if (!isset($_SESSION['user_id'])) {
$db->exec($sqlstring); $db->exec($sqlstring);
echo $out->printmsg('Datensatz deaktiviert', 'danger'); echo $out->printmsg('Datensatz deaktiviert', 'danger');
} }
if($acttable === 'close_fw_cron'){
$_POST['cron'] = 'print';
}else{
$_POST[$acttable] = 'print';
}
$_POST[$acttable] = 'print';
$sysout = new Sytemoutput(); $sysout = new Sytemoutput();
$array_pclistgroups = $db->getpclistgroupsarray(); $array_pclistgroups = $db->getpclistgroupsarray();
$sysout->createfw($array_pclistgroups); $sysout->createfw($array_pclistgroups);
...@@ -198,7 +194,7 @@ if (!isset($_SESSION['user_id'])) { ...@@ -198,7 +194,7 @@ if (!isset($_SESSION['user_id'])) {
$stringadv .= $out->printbutton('Zeige ncfilters Benutzer'); $stringadv .= $out->printbutton('Zeige ncfilters Benutzer');
$stringadv .= $out->printformend(); $stringadv .= $out->printformend();
$stringadv .= $out->printformstart('cron', 'print'); $stringadv .= $out->printformstart('close_fw_cron', 'print');
$stringadv .= $out->printbutton('Zeige Abschaltzeiten'); $stringadv .= $out->printbutton('Zeige Abschaltzeiten');
$stringadv .= $out->printformend(); $stringadv .= $out->printformend();
...@@ -251,7 +247,7 @@ if (!isset($_SESSION['user_id'])) { ...@@ -251,7 +247,7 @@ if (!isset($_SESSION['user_id'])) {
if (is_array($_POST) && key_exists('cron', $_POST) && $_POST['cron'] === 'print') { if (is_array($_POST) && key_exists('close_fw_cron', $_POST) && $_POST['close_fw_cron'] === 'print') {
echo '<br> <h3>Abschaltzeiten:</h3> '; echo '<br> <h3>Abschaltzeiten:</h3> ';
$resultclosefwcron = $db->query('SELECT * FROM close_fw_cron ORDER BY close_time_hour, close_time_minute'); $resultclosefwcron = $db->query('SELECT * FROM close_fw_cron ORDER BY close_time_hour, close_time_minute');
$i = 0; $i = 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!