コード例 #1
0
 public function fieldsetCms()
 {
     $fields = array('legend' => array('title' => $this->l('Cms'), 'class' => 'fieldset-cms', 'image' => $this->getPstPictureUrl('cms.png', 'type')), 'input' => array(array('type' => 'select', 'label' => $this->l('Cms Page:'), 'name' => 'id_cms', 'options' => array('query' => MenuHelper::getCmsSelect($this->context->language->id), 'id' => 'id_cms', 'name' => 'name', 'default' => array('label' => $this->l('No Cms'), 'value' => 0)))));
     $this->fields_form[] = array('class' => 'cms box-hide', 'form' => $fields);
 }