[*] 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:
lLefevre
2011-10-11 16:22:39 +00:00
parent 5494ed1a3a
commit f78b83d6c2
2 changed files with 25 additions and 73 deletions
@@ -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')