/** * Class Constructor * @param $name name of the field * @param $model name of the Model * @param $form name of the Form * @param $database name of the Database * @param $filtros name of the field of filters (Array) * @param $fields name of the fields of columns */ public function __construct($name, $model, $form, $database, $filtros, $fields) { parent::__construct($name); $this->useOutEvent = TRUE; $this->setProperty('class', 'tfield tseekentry', TRUE); // classe CSS $image = new TImage('lib/adianti/images/ico_find.png'); $this->button = new TElement('button'); $this->button->{'class'} = 'btn btn-default tseekbutton'; $this->button->{'type'} = 'button'; $this->button->{'id'} = 'Pbutton_' . $name; $this->button->{'onmouseover'} = 'style.cursor = \'pointer\''; $this->button->{'name'} = '_' . $this->name . '_link'; $this->button->{'onmouseout'} = 'style.cursor = \'default\''; $this->button->add($image); $url = 'index.php?class=PDBStandartSeek&method=onReload'; $action = "__adianti_load_page( '{$url}');"; $action .= "return false;"; $this->button->onclick = $action; //configuração TSession::setValue('Model', $model); // model TSession::setValue('form', $form); //form de retorno TSession::setValue('database', $database); TSession::setValue('filtros', $filtros); TSession::setValue('fields', $fields); }
/** * Class Constructor * @param $name Name of the widget */ public function __construct($name) { parent::__construct($name); self::$counter++; //$this->id = 'tdate'.self::$counter; $this->id = 'tdate_' . uniqid(); $this->mask = 'yyyy-mm-dd'; $newmask = $this->mask; $newmask = str_replace('dd', '99', $newmask); $newmask = str_replace('mm', '99', $newmask); $newmask = str_replace('yyyy', '9999', $newmask); parent::setMask($newmask); }
/** * Class Constructor * @param $name Name of the widget */ public function __construct($name) { parent::__construct($name); self::$counter++; $this->id = 'tdate_' . uniqid(); $this->mask = 'yyyy-mm-dd'; TPage::include_css('lib/adianti/include/tdate/tdate.css'); $newmask = $this->mask; $newmask = str_replace('dd', '99', $newmask); $newmask = str_replace('mm', '99', $newmask); $newmask = str_replace('yyyy', '9999', $newmask); parent::setMask($newmask); }
/** * Class Constructor * @param $name name of the field */ public function __construct($name) { parent::__construct($name); $this->useOutEvent = TRUE; $this->setProperty('class', 'tfield tseekentry', TRUE); // classe CSS TPage::include_css('lib/adianti/include/tseekbutton/tseekbutton.css'); $image = new TImage('lib/adianti/images/ico_find.png'); $this->button = new TElement('button'); $this->button->{'class'} = 'btn tseekbutton'; $this->button->{'type'} = 'button'; $this->button->{'onmouseover'} = 'style.cursor = \'pointer\''; $this->button->{'name'} = '_' . $this->name . '_link'; $this->button->{'onmouseout'} = 'style.cursor = \'default\''; $this->button->add($image); }
function __construct($required = false, $duplicated = false, $table = null, $field = null) { parent::__construct($required, $duplicated, $table, $field); $this->entry->set_max_length(11); $this->no_space = 1; $this->entry->connect('changed', array($this, '__ientry_changed')); }
/** * Class Constructor * @param $name name of the field */ public function __construct($name) { parent::__construct($name); $this->useOutEvent = TRUE; }