dom_1->getRights($PMBuserid,$this->serial_id,8); if($acces_m == 0) { if(!$this->id) { $this->error_message = 'mod_seri_error'; } else { $this->error_message = 'mod_enum_error'; } } return $acces_m; } public function proceed_explnum_form() { $this->action_link = $this->url_base."&sub=explnum_update"; if($this->id) { $this->delete_link = $this->url_base."&sub=explnum_delete&serial_id=".$this->serial_id."&explnum_id=".$this->id; } else { $this->delete_link = ""; } // affichage des infos du bulletinage pour rappel $perio = new serial_display($this->serial_id, 0); print "

".$perio->result.'

'; $explnum = new explnum($this->id,$this->serial_id); print $explnum->explnum_form($this->action_link,$this->get_permalink(), $this->delete_link); } protected function get_permalink($id=0) { if(!$id) $id = $this->serial_id; return $this->url_base."&sub=view&serial_id=".$this->serial_id; } public function set_serial_id($serial_id=0) { $this->serial_id = (int) $serial_id; } }