function formatElement()
 {
     $output = parent::formatElement();
     $attr = $this->getAttributes();
     $id = $attr['id'];
     /*
         $output .= '
      <script type="text/javascript">
      <!--
      jQuery(function($) {
        $("#'.$id.'").datepicker(
            {
                numberOfMonths: 2, 
                showButtonPanel: true, 
                appendText: \'(yyyy-mm-dd)\', 
                dateFormat: \'yy-mm-dd\', 
                showOn: \'button\', 
                buttonImage: \'../files/addons/news/images/calendar.gif\', 
                buttonImageOnly: true
            }        
         )
      });
      //-->
      </script>';
     */
     return $output;
 }
Exemplo n.º 2
0
 public function __construct(rex_form $table, rex_form_element $saveElement = null, rex_form_element $applyElement = null, rex_form_element $deleteElement = null, rex_form_element $resetElement = null, rex_form_element $abortElement = null)
 {
     parent::__construct('', $table);
     $this->saveElement = $saveElement;
     $this->applyElement = $applyElement;
     $this->deleteElement = $deleteElement;
     $this->resetElement = $resetElement;
     $this->abortElement = $abortElement;
 }
Exemplo n.º 3
0
 public function __construct($tag = '', rex_form $table = null, array $attributes = [])
 {
     parent::__construct('', $table, $attributes);
 }
 function rex_form_widget_linkmap_element($tag = '', &$table, $attributes = array())
 {
     parent::rex_form_element('', $table, $attributes);
 }
Exemplo n.º 5
0
 /**
  * @param rex_form_element $element
  *
  * @return bool
  */
 protected function isHeaderElement(rex_form_element $element)
 {
     return $element->getTag() == 'input' && $element->getAttribute('type') == 'hidden';
 }
 function rex_form_select_element($tag = '', &$table, $attributes = array())
 {
     parent::rex_form_element('', $table, $attributes);
     $this->select =& new rex_select();
     $this->select->setName($this->getAttribute('name'));
 }
 function rex_form_news_time_element($tag = '', &$table, $attributes = array())
 {
     parent::rex_form_element('', $table, $attributes);
     $this->step_hour = '1';
     $this->step_minute = '1';
     $this->show_seconds = false;
     $this->select_hour = new rex_select();
     $this->select_minute = new rex_select();
     $this->select_second = new rex_select();
 }
Exemplo n.º 8
0
 public function __construct($tag = '', rex_form $table = null, array $attributes = [])
 {
     parent::__construct('', $table, $attributes);
     $this->fields = [];
     $this->multiple = true;
 }
Exemplo n.º 9
0
 public function __construct($tag = '', rex_form $table = null, array $attributes = [])
 {
     parent::__construct('', $table, $attributes);
     $this->select = new rex_select();
     $this->separator = '|';
 }