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>'; }
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>'; }
public function getSearchInput() { $value = ''; return $this->colorFieldType_getInput(parent::getSearchName(), $value, false); }
public function getSearchInput() { return $this->enum_getInput(parent::getSearchValue(), parent::getSearchName()); }