Ejemplo n.º 1
0
 function init() {
     $this->table=front::get('table');
     if(preg_match('/^my_/',$this->table)) {
         form_admin::init();
         $this->_table=new defind($this->table);
     }
     else $this->_table=new $this->table;
     $this->view->form = $this->_table->get_form_field();
     $_fields=array();
     $fields=$this->_table->getFields();
     foreach($fields as $_field) {
         if(preg_match('/^my_/',$_field['name']))
             $_fields[$_field['name']]=$_field;
     }
     $this->_fields=$_fields;
     $this->view->table=$this->table;
     $this->view->primary_key=$this->_table->primary_key;
 }
Ejemplo n.º 2
0
 function init() {
     $this->table=front::get('table');
     if (preg_match('/^my_/',$this->table)) {
         form_admin::init();
         $this->_table=new defind($this->table);
     }
     else $this->_table=new $this->table;
     $this->_table->getFields();
     $this->view->form=$this->_table->get_form();
     $this->tname=lang($this->table);
     $this->_pagesize=config::get('manage_pagesize');
     $this->view->table=$this->table;
     $this->view->primary_key=$this->_table->primary_key;
     if (!front::get('page')) front::$get['page']=1;
     $this->Exc=$this->table == 'templatetag'?true : false;
     $manage='table_'.$this->table;
     if (preg_match('/^my_/',$this->table)) $manage='table_form';
     $this->manage=new $manage;
 }
Ejemplo n.º 3
0
 function init() {
     $this->table=front::get('table');
     if (preg_match('/^my_/',$this->table)) {
         form_admin::init();
         $this->_table=new defind($this->table);
     }
     else
         $this->_table=new $this->table;
     $this->_table->getFields();
     $this->view->form=$this->_table->get_form();
     $this->tname=lang($this->table);
     if ($this->table == 'orders')
         $this->tname='订单';
     if ($this->table == 'archive')
         $this->tname='内容';
     if ($this->table == 'user')
         $this->tname='用户';
     if ($this->table == 'usergroup')
         $this->tname='用户组';
     if ($this->table == 'announcement')
         $this->tname='公告';
     if ($this->table == 'guestbook')
         $this->tname='留言';
     if ($this->table == 'ballot')
         $this->tname='投票';
     if ($this->table == 'option')
         $this->tname='投票选项';
     if ($this->table == 'linkword')
         $this->tname='内链';
     $this->_pagesize=config::get('manage_pagesize');
     $this->view->table=$this->table;
     $this->view->primary_key=$this->_table->primary_key;
     if (!front::get('page'))
         front::$get['page']=1;
     $this->Exc=$this->table == 'templatetag'?true : false;
     $manage='table_'.$this->table;
     if (preg_match('/^my_/',$this->table))
         $manage='table_form';
     $this->manage=new $manage;
 }
Ejemplo n.º 4
0
 function init() {