Exemplo n.º 1
0
 /**
  * 添加字段
  */
 public function fieldAction()
 {
     $result = \Model\Field::addField();
     if ($result['status'] == false) {
         $this->error($result['mes']);
     }
     $this->success($GLOBALS['_LANG']['MODEL']['ADD_FIELD_SUCCESS'], $this->url('Team-Model-fieldList', array('id' => $result['mes']['model_id'])));
 }
Exemplo n.º 2
0
 public function action($jump = FALSE, $commit = FALSE)
 {
     \Model\Field::baseForm();
     parent::action($jump, $commit);
     $filedID = $this->db()->getLastInsert;
     \Model\Field::addField($filedID);
     if (empty($_GET['back_url'])) {
         $url = $this->url(GROUP . '-Model-fieldList', array('id' => $filedID, 'model_id' => \Model\Field::$model['model_id']));
     } else {
         $url = base64_decode($_GET['back_url']);
     }
     $this->success('添加字段成功', $url);
 }
Exemplo n.º 3
0
 /**
  * 添加字段
  */
 public function fieldAction()
 {
     $result = \Model\Field::addField();
     $this->success('添加字段成功', $this->url(GROUP . '-Model-fieldList', array('id' => $result['model_id'])));
 }