Esempio n. 1
0
 function init()
 {
     parent::init();
     $this->addColumn('text', 'content', 'Information:');
     $this->safe_html_output = false;
     $this->setStaticSource($this->api->info_messages);
 }
Esempio n. 2
0
 function init()
 {
     parent::init();
     $this->config = Config::getInstance();
     $this->addColumn('message');
     $this->addFormatter('message', 'wrap');
 }
Esempio n. 3
0
 function init()
 {
     parent::init();
     $gr = $this;
     $gr->setModel($this->api->auth->opauth->model, array('image', 'provider', 'token'))->addCondition('user_id', $this->api->auth->model->id);
     $gr->addButton('Connect with Github')->js('click', $this->api->auth->opauth->getJSAuth('github'));
     $this->addColumn('delete', 'delete');
     $this->addFormatter('image', 'thumb');
 }
Esempio n. 4
0
 function init()
 {
     parent::init();
     $p = $this->add('Paginator', null, 'paginator');
     $f = $this->addQuickSearch(array('name', 'email'));
     if ($this->api->getUserLevel() > 9) {
         $f = $f->addField('dropdown', 'domain', '');
         $f->owner->search_field->template->trySet('row_class', 'span6');
         $f->owner->add('Order')->move($f, 'first')->later();
         $f->setModel('Domain');
         $f->template->trySet('row_class', 'span6');
     }
     //if($this->api->getUserLevel() < 99)$this->setDomains();
 }
Esempio n. 5
0
 function init()
 {
     parent::init();
     //restoring selected
     //$this->addHook('post-submit', array($this, 'getSelected'), 1);
     $this->getSelected();
     if ($_GET['save_selected']) {
         $r = explode(',', $_GET['selected']);
         $sel = array();
         foreach ($r as $i => $v) {
             list($id, $selected) = explode(':', $v);
             $sel[$id] = $selected;
         }
         $this->processSelection($sel);
     }
 }
Esempio n. 6
0
File: Draw.php Progetto: rvadym/gmap
 function init()
 {
     parent::init();
     $this->addPaginator(8);
     $this->add('QuickSearch', null, 'quick_search')->removeClass('float-right')->useWith($this)->useFields(array('name'));
 }
Esempio n. 7
0
 function init()
 {
     parent::init();
     $this->addColumn('text', 'model_id');
     $this->addColumn('text', 'status');
 }