id) $acces_m = $this->dom_1->getRights($PMBuserid,$this->id,8); if($acces_m == 0) { $this->error_message = 'mod_noti_error'; } return $acces_m; } public function proceed() { //verification des droits de modification notice if($this->has_rights()) { switch($this->action) { case 'form': $entity_locking = new entity_locking($this->id, TYPE_NOTICE); if($entity_locking->is_locked()){ print $entity_locking->get_locked_form(); break; } $this->proceed_form(); $entity_locking->lock_entity(); print $entity_locking->get_polling_script(); break; case 'duplicate': $this->proceed_duplicate(); break; case 'update': $entity_locking = new entity_locking($this->id, TYPE_NOTICE); $this->proceed_update(); $entity_locking->unlock_entity(); break; case 'delete': $entity_locking = new entity_locking($this->id, TYPE_NOTICE); if($entity_locking->is_locked()){ print $entity_locking->get_locked_form(); break; } $this->proceed_delete(); break; case 'replace': $entity_locking = new entity_locking($this->id, TYPE_NOTICE); if($entity_locking->is_locked()){ print $entity_locking->get_locked_form(); break; } $this->proceed_replace(); break; case 'expl_form': $this->proceed_expl_form(); break; case 'expl_duplicate': $this->proceed_expl_duplicate(); break; case 'expl_update': $this->proceed_expl_update(); break; case 'expl_delete': $this->proceed_expl_delete(); break; case 'explnum_form': $this->proceed_explnum_form(); break; case 'explnum_update': $this->proceed_explnum_update(); break; case 'explnum_delete': $this->proceed_explnum_delete(); break; } } else { $this->display_error_message(); } } public function proceed_form() { global $saisieISBN, $cataloging_scheme_id; $myNotice = new notice($this->id, $saisieISBN); if(method_exists('notice', 'set_controller')) { notice::set_controller($this); } $entity_form = $myNotice->show_form(); $entity_form = str_replace('