"; foreach($_SESSION[$_PAGE_INFO['id']]['sts']['data'] as $item) { // Start of row if (!$col_counter) { echo ""; } echo ""; echo "
"; switch($item['status']) { // Busy => error? case 0: if ((!(int)$_POST['timeout']) || ($_SESSION[$_PAGE_INFO['id']]['sts']['finished'])) { echo ""; echo "\"\""; echo ""; } else { echo "\"\""; } break; // Busy => undefined case -1: if ((!(int)$_POST['timeout']) || ($_SESSION[$_PAGE_INFO['id']]['sts']['finished'])) { echo ""; echo "\"\""; echo ""; } else { echo "\"\""; } break; // Ok case 1: echo ""; echo "\"\""; echo ""; break; // Error case 2: echo ""; echo "\"\""; echo ""; break; // Ok with info case 3: echo ""; echo "\"\""; echo ""; break; // Empty case 4: // Undefined default: echo ""; echo "\"\""; echo ""; break; } echo "   " . _($item['text']); echo "
"; echo ""; // Increment column counter $col_counter = (($col_counter + 1) == $columns) ? 0 : $col_counter + 1; // End of row if (!$col_counter) { echo ""; } } // End of row if ($col_counter) { echo ""; } echo ""; } // Hide cancel button? if (isset($_SESSION[$_PAGE_INFO['id']]['sts']['cancel_hide'])) { // Remove setting unset($_SESSION[$_PAGE_INFO['id']]['sts']['cancel_hide']); // Hide cancel button (when visible) echo "\n"; } // Display button or timeout? if (($_SESSION[$_PAGE_INFO['id']]['sts']['finished']) || (!(int)($_POST['timeout']))) { // Finish 2 => interrupted! => Hide if ($_SESSION[$_PAGE_INFO['id']]['sts']['finished'] == 2) { echo "\n"; } else { if (($_POST['timeout'] == -1) && (!isset($_SESSION[$_PAGE_INFO['id']]['sts']['button']))) { // Increase status box => needed for buttons echo "\n"; // Buttons handled $_SESSION[$_PAGE_INFO['id']]['sts']['button'] = TRUE; } // Display buttons echo "
"; // Alert after button click? if (isset($_SESSION[$_PAGE_INFO['id']]['sts']['alert']['text'])) { $_SESSION[$_PAGE_INFO['id']]['errormsg']['type'] = "alert"; $_SESSION[$_PAGE_INFO['id']]['errormsg']['text'] = $_SESSION[$_PAGE_INFO['id']]['sts']['alert']['text']; unset($_SESSION[$_PAGE_INFO['id']]['sts']['alert']['text']); } if (strlen($_SESSION[$_PAGE_INFO['id']]['sts']['redirect'])) { echo ""; } else { $extra_event = ""; if (isset($_SESSION[$_PAGE_INFO['id']]['errormsg']['text'])) { $extra_event = "onSubmit('after_status', '', 1);"; } echo ""; } echo "
"; } // Hide cancel button (when visible) echo "\n"; // IE6 workaround => 10 => finished $_SESSION[$_PAGE_INFO['id']]['sts']['finished'] = 10; } else { echo ""; if ($_POST['timeout'] != -1) { echo "

Timeout : " . (int)$_POST['timeout'] . " [s]
"; } } // Status initialized $_SESSION[$_PAGE_INFO['id']]['sts']['init'] = TRUE; } } else { // Display logout message force_logout(_("No valid rights"), "Not logged in"); } ?>