Ejemplo n.º 1
0
 /**
  * 修改
  */
 public function view_edit()
 {
     $id = post_check($_GET['id']);
     $entity = AgreementModel::getById($id);
     //echo '<pre>';print_r($entity);exit;
     $this->smarty->assign('entity', $entity);
     $this->smarty->assign("companyTypeList", array('1' => '企业法人', '2' => '个体经营'));
     $this->smarty->assign("statusList", array('1' => '正常', '2' => '限制'));
     $this->smarty->assign('title', '修改协议');
     $this->smarty->display('editAgreement.htm');
 }