function setNewProjectList() { global $objResponse, $dict; if (!($employees = new employees())) { header('HTTP/1.0 500 Internal Server Error'); } $objResponse->addScript("clearSelection('list1')"); $objResponse->addScript("clearSelection('list2')"); if ($employees->getProjectList()) { foreach ($employees->projectListArray as $pr_id => $pr_name) { $objResponse->addScript("addOption('list2','" . $pr_name . "','" . $pr_id . "')"); } } return $objResponse->getXML(); }
$_SESSION['esortorder'] = 'ASC'; } $esortorder = !isset($_POST['esortorder']) ? $_SESSION['esortorder'] : $_POST['esortorder']; $_SESSION['esortorder'] = $esortorder; if (empty($_SESSION['esearchstring'])) { $_SESSION['esearchstring'] = ''; } $esearchstring = !isset($_POST['esearchstring']) ? $_SESSION['esearchstring'] : clearVars($_POST['esearchstring']); $_SESSION['esearchstring'] = $esearchstring; if (empty($_SESSION['estatus'])) { $_SESSION['estatus'] = -1; } $estatus = !isset($_POST['estatus']) ? $_SESSION['estatus'] : $_POST['estatus']; $_SESSION['estatus'] = $estatus; $status_options = array(-1 => $dict['all_employees'], 1 => $dict['enabled_only'], 0 => $dict['disabled_only']); $employees = new employees(); $xajax = $xajax_todo->getJavascript('includes/xajax'); $empl_formvars = new employees_foo(); if (!empty($_POST['formsend'])) { /* Wenn das Eintrag gelöschet werden soll, dann brauchen wir * es zuerst nicht auf $_POST Variablen auswerten */ if (!empty($_POST['deleteemployeedata']) && !empty($_POST['employeeid'])) { if ($employees->isEmployeeDataDeletable($_POST['employeeid'])) { if (!$employees->deleteEmplData($_POST['employeeid'])) { $erg = $employees->getPostVars(); $empl_formvars = $employees->employees_foo; if (!$erg) { foreach ($employees->errors as $errnumber) { $errors[] = isset($dict[$errnumber]) ? $dict[$errnumber] : $errnumber; }