diff --git a/include/class_print_ca.php b/include/class_print_ca.php new file mode 100644 index 000000000..c5f18ac36 --- /dev/null +++ b/include/class_print_ca.php @@ -0,0 +1,111 @@ +db=$p_cn; + $this->from=""; + $this->to=""; + $this->from_poste=""; + $this->to_poste=""; + + } +/*! + * \brief + * \param + * \param + * \param + * + * + * \return + */ + function get_request() { + if ( isset($_REQUEST['from'])) + $this->from=$_REQUEST['from']; + + if ( isset($_REQUEST['to'])) + $this->to=$_REQUEST['to']; + + if ( isset($_REQUEST['from_poste'])) + $this->from_poste=$_REQUEST['from_poste']; + + if ( isset($_REQUEST['to_poste'])) + $this->to_poste=$_REQUEST['to_poste']; + if ( isset($_REQUEST['pa_id'])) + $this->pa_id=$_REQUEST['pa_id']; + + + } +/*! + * \brief + * \param + * \param + * \param + * + * + * \return + */ + function display_form($p_hidden="") { + $from=new widget ('text','from','from'); + $from->size=10; + $from->value=$this->from; + + $to=new widget('text','to','to'); + $to->value=$this->to; + $to->size=10; + + $from_poste=new widget ('text','from_poste','from_poste'); + $from_poste->size=10; + $from_poste->value=$this->from_poste; + + $to_poste=new widget('text','to_poste','to_poste'); + $to_poste->value=$this->to_poste; + $to_poste->size=10; + + $hidden=new widget("hidden"); + $r=dossier::hidden(); + $r.=$hidden->IOValue("result","1"); + $r.="Depuis : ".$from->IOValue(); + $r.= "jusque : ".$to->IOValue(); + $r.=$p_hidden; + return $r; + } +}