public function initToolbar() { parent::initToolbar(); // Remove "Add" button from toolbar unset($this->toolbar_btn['new']); unset($this->toolbar_btn['export']); }
/** * @see AdminController::renderList() */ public function renderList() { $this->fields_list = array('id_lexikotron' => array('title' => '#'), 'name' => array('title' => $this->l('Texte')), 'active' => array('title' => $this->l('Valider'), 'active' => 'status')); $this->actions = array('edit', 'delete'); $lists = parent::renderList(); parent::initToolbar(); return $lists; }
public function renderList() { $this->addRowAction('edit'); $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fields_list = array('id_pos_logo' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'title' => array('title' => $this->l('Title'), 'width' => 90), 'description' => array('title' => $this->l('Desscription'), 'width' => '300'), 'porder' => array('title' => $this->l('Order'), 'width' => 10)); $this->fields_list['image'] = array('title' => $this->l('Image'), 'width' => 70, "image" => $this->fieldImageSettings["dir"]); // $lists = parent::renderList(); parent::initToolbar(); return $lists; }
/** * Function used to render the list to display for this controller */ public function renderList() { $this->addRowAction('edit'); $this->addRowAction('delete'); $this->addRowAction('details'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fields_list = array('id_example_data' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 'auto')); // Gère les positions $this->fields_list['position'] = array('title' => $this->l('Position'), 'width' => 70, 'align' => 'center', 'position' => 'position'); $lists = parent::renderList(); parent::initToolbar(); return $lists; }
/** * Function used to render the list to display for this controller */ public function renderList() { $this->addRowAction('edit'); $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fields_list = array('id_opartslideshow_slideshow' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'name' => array('title' => $this->l('Name'), 'width' => 'auto'), 'width' => array('title' => $this->l('Width'), 'width' => 'auto'), 'height' => array('title' => $this->l('Height'), 'width' => 'auto'), 'effect' => array('title' => $this->l('Effect'), 'width' => 'auto', 'callback' => 'displayEffectName', 'callback_object' => $this), 'active' => array('title' => $this->l('Displayed'), 'width' => 'auto', 'active' => 'status', 'type' => 'bool')); $lists = parent::renderList(); parent::initToolbar(); $html = $header = $this->context->smarty->fetch(parent::getTemplatePath() . 'header.tpl'); $html .= $lists; $html .= $this->context->smarty->fetch(parent::getTemplatePath() . 'help.tpl'); return $html; }
public function renderList() { $this->addRowAction('edit'); $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fields_list = array('id_pos_sequence' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'title1' => array('title' => $this->l('Title1'), 'width' => 90), 'title2' => array('title' => $this->l('Title2'), 'width' => 90), 'link' => array('title' => $this->l('Link'), 'width' => 90), 'active' => array('title' => $this->l('Displayed'), 'width' => 25, 'align' => 'center', 'active' => 'active', 'type' => 'bool', 'orderby' => FALSE), 'porder' => array('title' => $this->l('Order'), 'width' => 10)); /* $this->fields_list['image'] = array( 'title' => $this->l('Image'), 'width' => 70, "image" => $this->fieldImageSettings["dir"] );*/ // $lists = parent::renderList(); parent::initToolbar(); return $lists; }
public function renderList() { $this->addRowAction('edit'); $this->addRowAction('delete'); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->fields_list = array('id_posstaticblock' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25, 'lang' => false), 'title' => array('title' => $this->l('Title'), 'width' => 90, 'lang' => false), 'identify' => array('title' => $this->l('Identify'), 'width' => '100', 'lang' => false), 'hook_position' => array('title' => $this->l('Hook Position'), 'width' => '300', 'lang' => false), 'posorder' => array('title' => $this->l('Order'), 'width' => '30', 'lang' => false)); // $this->fields_list['image'] = array( // 'title' => $this->l('Image'), // 'width' => 70, // "image" => $this->fieldImageSettings["dir"] // ); // // $listSlideshows = Staticblock::getSlideshowLists($this->context->language->id); // echo "<pre>"; print_r($listSlideshows); die; $lists = parent::renderList(); parent::initToolbar(); return $lists; }
public function initToolbar() { $imgsrc = __PS_BASE_URI__ . 'modules/smartblog/images/ad.png'; $this->context->smarty->assign(array('src' => $imgsrc, 'height' => '', 'width' => '')); parent::initToolbar(); }
public function initToolbar() { parent::initToolbar(); unset($this->toolbar_btn["new"]); }
public function initToolbar() { parent::initToolbar(); }
public function initToolbar() { parent::initToolbar(); unset($this->toolbar_btn['new']); /* if (!$this->display) $this->toolbar_btn['download'] = array( 'href' => $this->context->link->getAdminLink('AdminInkasso', true).'&update_claims_statuses=true', 'desc' => $this->l('Update status of claims'), 'class' => (_PS_VERSION_ < '1.6.0.0')?'process-icon-refresh-cache':'' ); */ }
public function initToolbar() { parent::initToolbar(); $this->page_header_toolbar_btn['addfeatures'] = array('href' => self::$currentIndex . '&add' . $this->table . '&token=' . $this->token . '&addfeatures=1', 'desc' => $this->l('Add new Features'), 'imgclass' => 'new'); $this->page_header_toolbar_btn['new'] = array('href' => self::$currentIndex . '&add' . $this->table . '&token=' . $this->token, 'desc' => $this->l('Assign Features')); }
public function initToolbar() { return parent::initToolbar(); }
public function initToolbar() { parent::initToolbar(); $this->page_header_toolbar_btn['new'] = array('href' => self::$currentIndex . '&add' . $this->table . '&token=' . $this->token, 'desc' => $this->l('Add new Hotel')); }
public function initToolbar() { $this->toolbar_btn = $this->module->initToolbar(); parent::initToolbar(); }