id_element = $id_elt; $format_affichage = explode('/',$fieldElt); $this->champ_entree = $format_affichage[0]; if($format_affichage[1]) $this->champ_sortie = $format_affichage[1]; $ids = explode("_",$id_elt); $this->idobjet = $ids[1]; } public function make_display(){ global $msg, $charset,$dbh; $req="SELECT * from perio_relance where rel_id=".$this->idobjet.""; $res= pmb_mysql_query($req); $act = pmb_mysql_fetch_object($res); $display =""; $submit = ""; switch($this->champ_entree){ case 'text': $display = "
$submit
"; break; default: $display = ""; break; } $this->display = $display; } public function update(){ global $dbh, $comment_gestion; $req = "update perio_relance set rel_comment_gestion='".$comment_gestion."' where rel_id='".$this->idobjet."'"; pmb_mysql_query($req,$dbh); switch($this->champ_sortie){ default : $this->display = $comment_gestion; break; } } } ?>