Exemple #1
0
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();
}
                }
            }
            if (!empty($employees->employees_foo->empl_id)) {
                $onLoadElement = ' onload="x_getEmplData(' . $employees->employees_foo->empl_id . ')"';
                $archivestyle = $employees->isEmployeeDataDeletable($employees->employees_foo->empl_id) ? 'inline' : 'none';
            }
        }
    }
}
$employeelist = $employees->GetList($esortfield, $esortorder, $esearchstring, $estatus);
$empl_formvars->position_options = array(APP_TRAINEE => $dict['trainee'], APP_EMPLOYEE => $dict['employee'], APP_PROJECT_MANAGER => $dict['project_manager'], APP_STORE_MANAGER => $dict['store_manager']);
$empl_id = isset($employees->employees_foo->empl_id) ? $employees->employees_foo->empl_id : $empl_formvars->empl_id;
if ($employees->getMemberProjects($empl_id)) {
    $empl_formvars->memberProjectListArray = $employees->memberProjectListArray;
}
if ($employees->getProjectList($empl_id)) {
    $empl_formvars->projectListArray = $employees->projectListArray;
}
$PageTitle = $dict['usermanagement'];
$ContentTPL = 'employees.tpl';
$JavaScript = <<<END
<script type="text/javascript">

var classStandard               = 'standard';
var classStandardhover          = 'standardhover';
var classNumber                 = 'number';
var classNumberhover            = 'numberhover';
var classStandardcompleted      = 'standardcompleted';
var classStandardhovercompleted = 'standardhovercompleted';
var classNumbercompleted        = 'numbercompleted';
var classNumberhovercompleted   = 'numberhovercompleted';