/** * 加载首页 */ public function index() { if (session("admin") != null) { $a = new CareController(); $a->get_allmean(); $this->display(); } else { $this->redirect("login"); } }
public function update() { if ($_POST["passowrd"] != null && ($_POST["passowrd"] = "")) { $_POST["passowrd"] = md5($_POST["passowrd"]); } else { unset($_POST["passowrd"]); } parent::update(); }
public function update() { $_POST["time"] = strtotime($_POST["time"]); parent::update(); }
public function update() { $_POST["time"] = time(); parent::update(); }
public function update() { $_POST["dic_id"] = implode(",", $_POST["dic_id"]); parent::update(); }
public function index() { $c = new CareController(); $c->check_login(); $this->display(); }
public function update() { $_POST["time"] = strtotime($_POST["time"]); parent::update(); // TODO: Change the autogenerated stub }