[*] BO #PSFV-94 : update of the displayform method by helperForm in AdminSearchEnginesController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9248 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -49,33 +49,35 @@ class AdminSearchEnginesControllerCore extends AdminController
|
||||
'getvar' => array('title' => $this->l('GET variable'), 'width' => 40)
|
||||
);
|
||||
|
||||
$this->template = 'adminSearchEngines.tpl';
|
||||
$this->fields_form = array(
|
||||
'legend' => array(
|
||||
'title' => $this->l('Referrer')
|
||||
),
|
||||
'input' => array(
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('Server:'),
|
||||
'name' => 'server',
|
||||
'size' => 20,
|
||||
'required' => true
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('$_GET variable:'),
|
||||
'name' => 'getvar',
|
||||
'size' => 40,
|
||||
'required' => true
|
||||
)
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l(' Save '),
|
||||
'class' => 'button'
|
||||
)
|
||||
);
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function postProcess()
|
||||
{
|
||||
parent::postProcess();
|
||||
}
|
||||
|
||||
public function displayForm($is_main_tab = true)
|
||||
{
|
||||
parent::displayForm($is_main_tab);
|
||||
|
||||
if (!($obj = $this->loadObject(true)))
|
||||
return;
|
||||
|
||||
$this->context->smarty->assign('tab_form', array(
|
||||
'current' => self::$currentIndex,
|
||||
'table' => $this->table,
|
||||
'token' => $this->token,
|
||||
'id' => $obj->id,
|
||||
'server' => $this->getFieldValue($obj, 'server'),
|
||||
'getvar' => $this->getFieldValue($obj, 'getvar')
|
||||
));
|
||||
}
|
||||
|
||||
public function initContent()
|
||||
{
|
||||
if ($this->display != 'edit')
|
||||
|
||||
Reference in New Issue
Block a user