dom_1->getJoin($PMBuserid, 8, 'bulletin_notice'); $q = "select count(1) from bulletins $acces_j where bulletin_id=".$this->bulletin_id; $r = pmb_mysql_query($q); if(pmb_mysql_result($r,0,0)==0) { $acces_m=0; if(!$this->id) { $this->error_message = 'mod_bull_error'; } else { $this->error_message = 'mod_enum_error'; } } return $acces_m; } public function proceed_explnum_form() { $this->action_link = $this->url_base."&action=explnum_update"; if($this->id) { $this->delete_link = $this->url_base."&action=explnum_delete&bul_id=".$this->bulletin_id."&explnum_id=".$this->id; } else { $this->delete_link = ""; } // affichage des infos du bulletinage pour rappel $bulletinage = new bulletinage_display($this->bulletin_id); print "

".$bulletinage->display."

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