Esempio n. 1
0
	function doEdit() {
		$this->fetch("lookup");
		if (empty($this->lookup)) {
			$this->lookup = LookupDao::byId($this->id);
		}

		$allType = LookupDao::findAllType();
		$_REQUEST["lookup.type"] = array();
		if (!empty($allType)) {
			reset($allType);
			while(list(,$type) = each($allType)) {
				$_REQUEST["lookup.type"][] = $type["type"];
			}
		}
		$this->messages = Msg::fetch();
		Apu::dispatch("/todo/faces/lookup/lookup_edit.php");
		$this->remove("lookup");
	}
Esempio n. 2
0
	function doIndex() {
		$this->fetch("login");
		Apu::dispatch("/todo/faces/login/login.php");
		$this->messages = Msg::fetch();
		$this->remove();
	}