public function del() { $id = $_GET[id]; if (!empty($id)) { $type = new AdvModel(); if (false !== $type->delete($id)) { $this->message2('删除成功', __URL__ . '/index'); } else { $this->message2('删除失败', __URL__ . '/index'); } } else { $this->message2('请选择删除对象:' . $adv->getDbError(), __URL__ . '/index'); } }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Product/Product_addok', 'product'); $this->form->_addBaseElement('product'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Advertise/Advertise_addok', 'advertise'); $this->form->_addBaseElement('advertise'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Website/Website_addok', 'website'); $this->form->_addBaseElement('website'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Art_position/Art_position_addok', 'art_position'); $this->form->_addBaseElement('art_position'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Demo/Demo_addok', 'demo'); $this->form->_addBaseElement('demo'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Catalog/Catalog_addok', 'catalog'); $this->form->_addBaseElement('catalog'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Friend_links/Friend_links_addok', 'friend_links'); $this->form->_addBaseElement('friend_links'); parent::__construct(); }
public function __construct() { Vendor('Form.Form2'); $this->form = new Form('__APP__/Others/Others_addok', 'others'); $this->form->_addBaseElement('others'); parent::__construct(); }
/** * @override */ public function find($options = array()) { $data = parent::find($options); if (!$data) { return $data; } if ($data["dateline"]) { $data["dateline_lang"] = date("Y-m-d H:i:s", $data["dateline"]); } if ($this->workflowAlias and false !== $this->includeWorkflowProcess) { import("@.Workflow.Workflow"); $workflow = new Workflow($this->workflowAlias); $processData = $workflow->getCurrentProcess($data["id"]); $data["processes"] = $processData; } // if(isset($data["status"])) { // if(isset($this->status_lang)) { // $data["status_lang"] = L($this->status_lang[$data["status"]]); // } // if(isset($this->status_class)) { // $data["status_class"] = $this->status_class[$data["status"]]; // } // } return $data; }
/** * _initialize * 初始化函数 * @return void */ public function _initialize() { parent::_initialize(); }