cn=$p_cn; } function check() { /* * check date */ if (($this->from != '' && isDate ($this->from) == 0) || ($this->to != '' && isDate ($this->to) == 0)) return -1; return 0; } /** *@brief get the parameters */ function get_request() { parent::get_request(); $this->card_poste=HtmlInput::default_value('card_poste',1,$_GET); } function set_sql_filter() { $sql=""; $and=" and "; if ( $this->from != "" ) { $sql.="$and oa_date >= to_date('".$this->from."','DD.MM.YYYY')"; } if ( $this->to != "" ) { $sql.=" $and oa_date <= to_date('".$this->to."','DD.MM.YYYY')"; } return $sql; } }