本文整理汇总了PHP中project::get_project_type_array方法的典型用法代码示例。如果您正苦于以下问题:PHP project::get_project_type_array方法的具体用法?PHP project::get_project_type_array怎么用?PHP project::get_project_type_array使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类project
的用法示例。
在下文中一共展示了project::get_project_type_array方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load_project_filter
function load_project_filter($_FORM)
{
global $TPL;
$current_user =& singleton("current_user");
$personSelect = "<select name=\"personID[]\" multiple=\"true\">";
$personSelect .= page::select_options(person::get_username_list($_FORM["personID"]), $_FORM["personID"]);
$personSelect .= "</select>";
$rtn["personSelect"] = $personSelect;
$m = new meta("projectStatus");
$projectStatus_array = $m->get_assoc_array("projectStatusID", "projectStatusID");
$rtn["projectStatusOptions"] = page::select_options($projectStatus_array, $_FORM["projectStatus"]);
$rtn["projectTypeOptions"] = page::select_options(project::get_project_type_array(), $_FORM["projectType"]);
$rtn["projectName"] = $_FORM["projectName"];
// Get
$rtn["FORM"] = "FORM=" . urlencode(serialize($_FORM));
return $rtn;
}
示例2: tf
if ($TPL["project_cost_centre_tfID"]) {
$tf = new tf();
$tf->set_id($TPL["project_cost_centre_tfID"]);
$tf->select();
$TPL["cost_centre_tfID_label"] = $tf->get_link();
}
$query = prepare("SELECT roleName,roleID FROM role WHERE roleLevel = 'project' ORDER BY roleSequence");
$db->query($query);
#$project_person_role_array[] = "";
while ($db->next_record()) {
$project_person_role_array[$db->f("roleID")] = $db->f("roleName");
}
$email_type_array = array("None" => "None", "Assigned Tasks" => "Assigned Tasks", "All Tasks" => "All Tasks");
$t = new meta("currencyType");
$currency_array = $t->get_assoc_array("currencyTypeID", "currencyTypeID");
$projectType_array = project::get_project_type_array();
$m = new meta("projectStatus");
$projectStatus_array = $m->get_assoc_array("projectStatusID", "projectStatusID");
$timeUnit = new timeUnit();
$rate_type_array = $timeUnit->get_assoc_array("timeUnitID", "timeUnitLabelB");
$TPL["project_projectType"] = $projectType_array[$TPL["project_projectType"]];
$TPL["projectType_options"] = page::select_options($projectType_array, $TPL["project_projectType"]);
$TPL["projectStatus_options"] = page::select_options($projectStatus_array, $TPL["project_projectStatus"]);
$TPL["project_projectPriority"] or $TPL["project_projectPriority"] = 3;
$projectPriorities = config::get_config_item("projectPriorities") or $projectPriorities = array();
$tp = array();
foreach ($projectPriorities as $key => $arr) {
$tp[$key] = $arr["label"];
}
$TPL["projectPriority_options"] = page::select_options($tp, $TPL["project_projectPriority"]);
$TPL["project_projectPriority"] and $TPL["priorityLabel"] = " <div style=\"display:inline; color:" . $projectPriorities[$TPL["project_projectPriority"]]["colour"] . "\">[" . $tp[$TPL["project_projectPriority"]] . "]</div>";