public function actionSubTask() { if (!UserUtil::checkIsSub(Ibos::app()->user->uid, $this->uid)) { $this->error(Ibos::lang("No permission to view task"), $this->createUrl("task/index")); } $postComp = EnvUtil::getRequest("complete"); $this->complete = empty($postComp) ? 0 : $postComp; if (EnvUtil::getRequest("param") == "search") { $this->search(); } $this->_condition = CalendarUtil::joinCondition($this->_condition, "uid = " . $this->uid); $data = Tasks::model()->fetchTaskByComplete($this->_condition, $this->complete); $data["complete"] = $this->complete; $data["user"] = User::model()->fetchByUid($this->uid); $data["supUid"] = UserUtil::getSupUid($this->uid); $data["allowEditTask"] = CalendarUtil::getIsAllowEidtTask(); $this->setPageTitle(Ibos::lang("Subordinate task")); $this->setPageState("breadCrumbs", array(array("name" => Ibos::lang("Personal Office")), array("name" => Ibos::lang("Calendar arrangement"), "url" => $this->createUrl("schedule/index")), array("name" => Ibos::lang("Subordinate task")))); $this->render("subtask", $data); }