setDomain(1); $acces_m = $dom_1->getRights($PMBuserid,$serial_id,8); } if ($acces_m==0) { if (!$bul_id) { error_message('', htmlentities($dom_1->getComment('mod_seri_error'), ENT_QUOTES, $charset), 1, ''); } else { error_message('', htmlentities($dom_1->getComment('mod_bull_error'), ENT_QUOTES, $charset), 1, ''); } } else { // mise a jour de l'entete de page //----------------------LLIUREX---------------- $p_perso=new parametres_perso("notices"); $perso_=$p_perso->show_editable_fields($bul_id); $error_convo=0; for ($i=0; $iread_form_fields_perso($p["NAME"]); switch($p["NAME"]){ case "Identificacion": switch($value){ case "ISBN134": if(!isISBN13($bul_cb)) { error_message_history($msg["notice_champs_perso"],$msg["bul_convo_isbn_error"] ,1); $error_convo=1; } break; case "ISBN103": if(!isISBN10($bul_cb)) { error_message_history($msg["notice_champs_perso"],$msg["bul_convo_isbn_error"] ,1); $error_convo=1; } break; case "ISBN81": if(!isISSN($bul_cb)) { error_message_history($msg["notice_champs_perso"],$msg["bul_convo_isbn_error"] ,1); $error_convo=1; } break; case "ISBN247": $code_reg = preg_replace('/-|\.| /', '', $bul_cb); if (strlen($code_reg)!==26){ error_message_history($msg["notice_champs_perso"],$msg["bul_convo_isbn_error"] ,1); $error_convo=1; } break; case "OTROS": break; } break; case "Precio": if ($value!=""){ if (is_numeric($value)){ if ($value>999.99){ error_message_history($msg["notice_champs_perso"],$msg["notices_convo_price_max_error"] ,1); $error_convo=1; } }else{ error_message_history($msg["notice_champs_perso"],$msg["notices_convo_price_format_error"] ,1); $error_convo=1; } } break; } } if ($error_convo==0){ //-----------------FIN LLIUREX--------------- echo str_replace('!!page_title!!', $msg[4000].$msg[1003].$msg['catalog_serie_modif_bull'], $serial_header); if($pmb_synchro_rdf){ require_once($class_path."/synchro_rdf.class.php"); } $myBulletinage = new bulletinage($bul_id, $serial_id); $myBulletinage->set_properties_from_form(); $saved = $myBulletinage->save(); if($saved) { print "
".$msg["maj_encours"]."
"; $retour = bulletinage::get_permalink($saved); print "
"; } else { error_message($msg['catalog_serie_modif_bull'] , $msg['catalog_serie_modif_bull_imp'], 1, serial::get_permalink($serial_id)); } } }