Example #1
0
 public function show()
 {
     $inputHtmlTag = new owebp_Html_Input(array('name' => $this->getOption('name'), 'id' => $this->getOption('name'), 'size' => $this->getOption('size'), 'required' => $this->getOption('required'), 'content' => $this->getOption('value')));
     $inputHtmlTag->setOption('type', 'password');
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $inputHtmlTag->get())))->get();
 }
Example #2
0
 public function show()
 {
     $inputHtmlTag = new owebp_Html_Input(array('name' => $this->getOption('name'), 'id' => $this->getOption('name'), 'size' => $this->getOption('size'), 'class' => $this->getOption('class'), 'required' => $this->getOption('required'), 'content' => $this->getOption('value'), 'jpm_foreign_collection' => $this->getOption('jpm_foreign_collection'), 'jpm_foreign_search_fields' => $this->getOption('jpm_foreign_search_fields'), 'jpm_foreign_title_fields' => $this->getOption('jpm_foreign_title_fields')));
     $valueInstance = new owebp_Form_Field_Value(array('value' => $this->getOption('value'), 'jpm_foreign_collection' => $this->getOption('jpm_foreign_collection'), 'jpm_foreign_title_fields' => $this->getOption('jpm_foreign_title_fields')));
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $inputHtmlTag->get() . $valueInstance->get())))->get();
 }
Example #3
0
 public function show()
 {
     $dataClassName = $this->getOption('dataClassName');
     if ($dataClassName == '') {
         return 'data source mising';
     }
     $dataClassInstance = new $dataClassName();
     /* option are content  of select tag */
     $selectOptionsList = '';
     $currentValue = $this->getOption('value');
     foreach ($dataClassInstance->getTable() as $r) {
         $checked = '';
         if ($r['value'] == $currentValue) {
             $checked = 'checked';
         }
         $oneBox = '<label>';
         $input = new owebp_Html_Input(array('type' => 'checkbox', 'name' => $this->getOption('name') . '[]', 'content' => $r['value'], 'checked' => $checked));
         $input->setOption('type', 'checkbox');
         $oneBox .= $input->get();
         $oneBox .= $r['title'];
         $oneBox .= '</label>';
         $selectOptionsList .= $oneBox;
     }
     /* foreach ( $dataClassInstance->getTable () as $r ) */
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $selectOptionsList)))->get();
 }
Example #4
0
File: Time.php Project: hybr/jpm
 public function show()
 {
     $inputHtmlTag = new owebp_Html_Input(array('name' => $this->getOption('name'), 'id' => $this->getOption('name'), 'size' => $this->getOption('size'), 'class' => $this->getOption('class'), 'required' => $this->getOption('required'), 'content' => $this->getOption('value')));
     /* need a jquery plugin for time  and then remve this */
     $inputHtmlTag->setOptionDefault('type', 'time');
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $inputHtmlTag->get())))->get();
 }
Example #5
0
File: Date.php Project: hybr/jpm
 public function show()
 {
     $inputHtmlTag = new owebp_Html_Input(array('name' => $this->getOption('name'), 'id' => $this->getOption('name'), 'size' => $this->getOption('size'), 'class' => $this->getOption('class'), 'required' => $this->getOption('required'), 'content' => $this->getOption('value')));
     /* this is HTML5 way. Jquery plugin is taking care so comented this */
     /* $inputHtmlTag->setOption('type', 'date'); */
     /* return with cover */
     return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $inputHtmlTag->get())))->get();
 }