$label = GetVariable("label"); $notes = GetVariable("notes"); //print_r($val_text); /* determine action */ switch ($action) { case 'create': CreateForm($enrollmentid, $formid, $username); break; case 'completed': SetAsComplete($experimentid); ViewForm($experimentid, "view"); break; case 'save': $experimentid = SaveForm($enrollmentid, $formid, $val_strings, $val_numbers, $val_texts, $val_dates, $val_files, $experimentor, $experimentdate, $username, $label, $notes); ViewForm($experimentid, "view"); break; case 'update': UpdateForm($experimentid, $enrollmentid, $formid, $val_strings, $val_numbers, $val_texts, $val_dates, $val_files, $experimentor, $experimentdate, $username, $label, $notes); ViewForm($experimentid, "view"); break; case 'view': ViewForm($experimentid, "print"); break; case 'edit': ViewForm($experimentid, "edit"); break; case 'print': PrintForm($experimentid); break;
<?php header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); session_start(); include_once "ressources/class.templates.inc"; include_once "ressources/class.ldap.inc"; include_once "ressources/class.main_cf.inc"; if (isset($_GET["with-tabs"])) { echo withtabs(); exit; } if (isset($_POST["smtpd_error_sleep_time"])) { SaveForm(); exit; } if (isset($_GET["popup-index"])) { popup_index(); exit; } if (isset($_GET["popup-form"])) { popup_form(); exit; } js(); function withtabs() { if ($_GET["hostname"] == null) { $_GET["hostname"] = "master";
<?php header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); session_start(); include_once("ressources/class.templates.inc"); include_once("ressources/class.ldap.inc"); include_once("ressources/class.main_cf.inc"); if(isset($_GET["smtpd_error_sleep_time"])){SaveForm();exit;} if(isset($_GET["popup-index"])){popup_index();exit;} js(); function js(){ $prefix=str_replace(".","_",CurrentPageName()); $page=CurrentPageName(); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body('{title_postfix_tuning}'); $users=new usersMenus(); if(!$users->AsPostfixAdministrator){ $error=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}"); echo "alert('$error')"; die(); } $html="function {$prefix}Loadpage(){ YahooWin2('650','$page?popup-index=yes','$title'); }