Ejemplo n.º 1
0
 private function add()
 {
     $action = 'save';
     $mods = $this->_models($this->ch);
     $cate = $this->_tree();
     $db = Lua::db_array('lua_category');
     include Lua::display('category_add', $this->dir);
 }
Ejemplo n.º 2
0
 private function add()
 {
     $catid = Lua::get('catid');
     $this->_condition($catid);
     // 数据模型处理
     $tableid = Lua::get('tableid');
     $tid = Lua::get('tid');
     $table_db = $this->_table_db($tableid);
     $rs = array();
     $suffix = "";
     $father_id = "";
     $father_value = "";
     $hash = FILE_HASH;
     if ($table_db) {
         $rs = $this->_db($this->mode_db, $tid);
         $this->mode_db = $table_db;
         $father_value = $tid;
         $father_db = Lua::get_one("select subid from lua_model_table where id='{$table_db['upid']}'");
         $father_id = $father_db['subid'];
         $suffix = "&tableid={$tableid}&tid={$tid}";
     }
     // end
     $fields = $this->_fields($this->mode_db);
     $action = "save&catid={$catid}" . $suffix . $this->lua_url;
     $db = Lua::db_array($this->mode_db['tablename']);
     include Lua::display('content_add', $this->dir);
 }
Ejemplo n.º 3
0
 private function add()
 {
     $action = 'save_add';
     $db = Lua::db_array('lua_model');
     $channels = $this->_channel();
     include Lua::display('model_add', $this->dir);
 }
Ejemplo n.º 4
0
 private function add()
 {
     $db = Lua::db_array('lua_channel');
     $action = "save_add";
     include Lua::display('channel_add', $this->dir);
 }
Ejemplo n.º 5
0
 private function add()
 {
     $db = Lua::db_array('lua_tpls');
     $action = 'save';
     include Lua::display('tpl_add', $this->dir);
 }
Ejemplo n.º 6
0
 private function add()
 {
     $db = Lua::db_array('lua_member');
     $action = 'save_add';
     include Lua::display('member_add', $this->dir);
 }
Ejemplo n.º 7
0
 private function add_any()
 {
     $tableid = Lua::get('tableid');
     $db = $this->_table($tableid);
     $fields = $this->_fields($db['tablename']);
     $pri = $this->_pri($fields);
     $rs = Lua::db_array($db['tablename']);
     $action = "save_any_add&tableid={$tableid}";
     include Lua::display('piece_any_edit', $this->dir);
 }
Ejemplo n.º 8
0
 private function add()
 {
     $db = Lua::db_array('lua_admin');
     $action = 'save_add';
     include Lua::display('admin_add', $this->dir);
 }