本文整理汇总了PHP中task::get_task_statii_array方法的典型用法代码示例。如果您正苦于以下问题:PHP task::get_task_statii_array方法的具体用法?PHP task::get_task_statii_array怎么用?PHP task::get_task_statii_array使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::get_task_statii_array方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: db_alloc
$db = new db_alloc();
$display = array("", "username", ", ", "emailAddress");
$person = new person();
$people =& get_cached_table("person");
foreach ($people as $p) {
$peeps[$p["personID"]] = $p["name"];
}
// get the default time sheet manager/admin options
$TPL["defaultTimeSheetManagerListText"] = get_person_list(config::get_config_item("defaultTimeSheetManagerList"));
$TPL["defaultTimeSheetAdminListText"] = get_person_list(config::get_config_item("defaultTimeSheetAdminList"));
$days = array("Sun" => "Sun", "Mon" => "Mon", "Tue" => "Tue", "Wed" => "Wed", "Thu" => "Thu", "Fri" => "Fri", "Sat" => "Sat");
$TPL["calendarFirstDayOptions"] = page::select_options($days, config::get_config_item("calendarFirstDay"));
$TPL["timeSheetPrintOptions"] = page::select_options($TPL["timeSheetPrintOptions"], $TPL["timeSheetPrint"]);
$commentTemplate = new commentTemplate();
$ops = $commentTemplate->get_assoc_array("commentTemplateID", "commentTemplateName");
$TPL["rssStatusFilterOptions"] = page::select_options(task::get_task_statii_array(true), config::get_config_item("rssStatusFilter"));
if (has("timeUnit")) {
$timeUnit = new timeUnit();
$rate_type_array = $timeUnit->get_assoc_array("timeUnitID", "timeUnitLabelB");
}
$TPL["timesheetRate_options"] = page::select_options($rate_type_array, config::get_config_item("defaultTimeSheetUnit"));
$TPL["main_alloc_title"] = "Setup - " . APPLICATION_NAME;
include_template("templates/configM.tpl");
function get_person_list($personID_array)
{
global $peeps;
$people = array();
foreach ($personID_array as $personID) {
$people[] = $peeps[$personID];
}
if (count($people) > 0) {
示例2: load_task_filter
function load_task_filter($_FORM)
{
$current_user =& singleton("current_user");
$db = new db_alloc();
// Load up the forms action url
$rtn["url_form_action"] = $_FORM["url_form_action"];
$rtn["hide_field_options"] = $_FORM["hide_field_options"];
//time Load up the filter bits
has("project") and $rtn["projectOptions"] = project::get_list_dropdown($_FORM["projectType"], $_FORM["projectID"]);
$_FORM["projectType"] and $rtn["projectType_checked"][$_FORM["projectType"]] = " checked";
$ops = array("0" => "Nobody");
$rtn["personOptions"] = page::select_options($ops + person::get_username_list($_FORM["personID"]), $_FORM["personID"]);
$rtn["managerPersonOptions"] = page::select_options($ops + person::get_username_list($_FORM["managerID"]), $_FORM["managerID"]);
$rtn["creatorPersonOptions"] = page::select_options(person::get_username_list($_FORM["creatorID"]), $_FORM["creatorID"]);
$rtn["all_tags"] = task::get_tags(true);
$rtn["tags"] = $_FORM["tags"];
$taskType = new meta("taskType");
$taskType_array = $taskType->get_assoc_array("taskTypeID", "taskTypeID");
$rtn["taskTypeOptions"] = page::select_options($taskType_array, $_FORM["taskTypeID"]);
$_FORM["taskView"] and $rtn["taskView_checked_" . $_FORM["taskView"]] = " checked";
$taskStatii = task::get_task_statii_array();
$rtn["taskStatusOptions"] = page::select_options($taskStatii, $_FORM["taskStatus"]);
$_FORM["showDescription"] and $rtn["showDescription_checked"] = " checked";
$_FORM["showDates"] and $rtn["showDates_checked"] = " checked";
$_FORM["showCreator"] and $rtn["showCreator_checked"] = " checked";
$_FORM["showAssigned"] and $rtn["showAssigned_checked"] = " checked";
$_FORM["showTimes"] and $rtn["showTimes_checked"] = " checked";
$_FORM["showPercent"] and $rtn["showPercent_checked"] = " checked";
$_FORM["showPriority"] and $rtn["showPriority_checked"] = " checked";
$_FORM["showTaskID"] and $rtn["showTaskID_checked"] = " checked";
$_FORM["showManager"] and $rtn["showManager_checked"] = " checked";
$_FORM["showProject"] and $rtn["showProject_checked"] = " checked";
$_FORM["showTags"] and $rtn["showTags_checked"] = " checked";
$_FORM["showParentID"] and $rtn["showParentID_checked"] = " checked";
$arrow = " -->";
$taskDateOps = array("" => "", "new" => "New Tasks", "due_today" => "Due Today", "overdue" => "Overdue", "d_created" => "Date Created" . $arrow, "d_assigned" => "Date Assigned" . $arrow, "d_targetStart" => "Estimated Start" . $arrow, "d_targetCompletion" => "Estimated Completion" . $arrow, "d_actualStart" => "Date Started" . $arrow, "d_actualCompletion" => "Date Completed" . $arrow);
$rtn["taskDateOptions"] = page::select_options($taskDateOps, $_FORM["taskDate"], 45, false);
if (!in_array($_FORM["taskDate"], array("new", "due_today", "overdue"))) {
$rtn["dateOne"] = $_FORM["dateOne"];
$rtn["dateTwo"] = $_FORM["dateTwo"];
}
$task_num_ops = array("" => "All results", 1 => "1 result", 2 => "2 results", 3 => "3 results", 4 => "4 results", 5 => "5 results", 10 => "10 results", 15 => "15 results", 20 => "20 results", 30 => "30 results", 40 => "40 results", 50 => "50 results", 100 => "100 results", 150 => "150 results", 200 => "200 results", 300 => "300 results", 400 => "400 results", 500 => "500 results", 1000 => "1000 results", 2000 => "2000 results", 3000 => "3000 results", 4000 => "4000 results", 5000 => "5000 results", 10000 => "10000 results");
$rtn["limitOptions"] = page::select_options($task_num_ops, $_FORM["limit"]);
// unset vars that aren't necessary
foreach ((array) $_FORM as $k => $v) {
if (!$v) {
unset($_FORM[$k]);
}
}
// Get
$rtn["FORM"] = "FORM=" . urlencode(serialize($_FORM));
return $rtn;
}