예제 #1
0
파일: date.php 프로젝트: rawork/colors-life
 public function getSearchInput()
 {
     if ($date = $this->getSearchValue('beg')) {
         $date_beg = substr($date, 6, 4) . '-' . substr($date, 3, 2) . '-' . substr($date, 0, 2);
     } else {
         $date_beg = '';
         //date('Y-m-d');
     }
     if ($date = $this->getSearchValue('end')) {
         $date_end = substr($date, 6, 4) . '-' . substr($date, 3, 2) . '-' . substr($date, 0, 2);
     } else {
         $date_end = '';
         //date('Y-m-d');
     }
     return 'c ' . $this->dateFieldType_getInput(parent::getSearchName('beg'), $date_beg, false) . ' по ' . $this->dateFieldType_getInput(parent::getSearchName('end'), $date_end, false) . ' <a href="#" onClick="emptyDateSearch(\'' . parent::getSearchName() . '\')">Обнулить</a>';
 }
예제 #2
0
 public function getSearchInput()
 {
     $name = parent::getSearchName();
     $value = parent::getSearchValue();
     $yes = $no = $no_matter = "";
     if ($value == 'on') {
         $yes = 'checked';
     } else {
         if ($value == 'off') {
             $no = 'checked';
         } else {
             $no_matter = 'checked';
         }
     }
     return '<table><tr><td><input type="radio" style="height:13px;" name="' . $name . '" id="' . $name . '_yes" value="on" ' . $yes . '><label style="position:relative; top:-2px;" for="' . $name . '_yes">да</label><input type="radio" style="height:13px;" name="' . $name . '" id="' . $name . '_no" value="off" ' . $no . '><label style="position:relative; top:-2px;" for="' . $name . '_no">нет</label><input type="radio" style="height:13px;" name="' . $name . '" id="' . $name . '_nomatter" value="" ' . $no_matter . '><label style="position:relative; top:-2px;" for="' . $name . '_nomatter">все равно</label></td></tr></table>';
 }
예제 #3
0
 public function getSearchInput()
 {
     $value = '';
     return $this->colorFieldType_getInput(parent::getSearchName(), $value, false);
 }
예제 #4
0
파일: enum.php 프로젝트: rawork/colors-life
 public function getSearchInput()
 {
     return $this->enum_getInput(parent::getSearchValue(), parent::getSearchName());
 }