Esempio n. 1
0
}
$assigned_user = get_user_array(TRUE, "Active", $focus->assigned_user_id);
asort($assigned_user);
$xtpl->assign("ASSIGNED_USER_OPTIONS", get_select_options_with_id($assigned_user, $focus->assigned_user_id));
$xtpl->assign("ASSIGNED_USER_NAME", $focus->assigned_user_name);
$xtpl->assign("ASSIGNED_USER_ID", $focus->assigned_user_id);
/// Users Popup
$popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'assigned_user_id', 'user_name' => 'assigned_user_name'));
$xtpl->assign('encoded_users_popup_request_data', $json->encode($popup_request_data));
require_once 'modules/ZuckerReports/SimpleTeams.php';
$xtpl->assign("TEAM_SELECTION", SimpleTeams::xtplGetTeamSelection($xtpl, $focus));
$xtpl->assign("ERROR_MSG", $_REQUEST["ZR_ERROR_MSG"]);
$qtselect = array();
$qtseed = new QueryTemplate();
$qtlist = $qtseed->get_all("name");
if (!empty($qtlist)) {
    foreach ($qtlist as $qt) {
        $qtselect[$qt->id] = $qt->name;
    }
}
$ltseed = new ListingTemplate();
$ltlist = $ltseed->get_all("name");
if (!empty($ltlist)) {
    foreach ($ltlist as $lt) {
        $qtselect[$lt->id] = $lt->name;
    }
}
asort($qtselect);
$xtpl->assign("QUERYTEMPLATE_SELECTION", get_select_options_with_id($qtselect, $querytemplate_id));
$xtpl->parse("main");
$xtpl->out("main");