public function Edit() { $AgentPriceModule = new AgentPriceModule(); if ($this->_POST) { //提交修改 $AgentPriceID = _intval($this->_POST['AgentPriceID']); $Data['LevelID'] = trim($this->_POST['LevelID']); $Data['ProjectID'] = trim($this->_POST['ProjectID']); $Data['AgenDiscount'] = trim($this->_POST['AgenDiscount']); $Data['Remarks'] = trim($this->_POST['Remarks']); $Data['AddTime'] = time(); $Page = _intval($this->_POST['Page']); if (!$Data['LevelID'] || !$Data['ProjectID'] || !$Data['AgenDiscount']) { $this->__Message('信息填写不完整!'); } if ($AgentPriceModule->UpdateArrayByKeyID($Data, $AgentPriceID)) { $this->__Message('修改成功!', UrlRewriteSimple($this->MyModule, 'Lists', true) . '&Page=' . $Page, '继续操作'); } else { $this->__Message('修改失败,请再一次尝试!'); } } if ($this->_GET) { //获取用户信息 $this->AgentPriceID = _intval($this->_GET['AgentPriceID']); $this->Page = _intval($this->_GET['Page']); $AgentPriceInfo = $AgentPriceModule->GetOneInfoByKeyID($this->AgentPriceID); $this->AgentPriceInfo = $AgentPriceInfo; $ProjectModule = new ProjectModule(); $this->ProjectLists = $ProjectModule->GetProjectLists(); include 'Include/LevelArray.php'; $this->LevelArray = $LevelArray; } }