setAuthenticationType('http'); $rpc->setCredentials($login, $password); */ $result = $rpc->pmbesSelfServices_self_checkout($cb_expl,$id_empr); if ($charset!= "utf-8") { $result->title=utf8_decode($result->title); $result->message=utf8_decode($result->message); $result->message_loc=utf8_decode($result->message_loc); $result->message_resa=utf8_decode($result->message_resa); $result->message_retard=utf8_decode($result->message_retard); $result->message_amende=utf8_decode($result->message_amende); } if($result->status){ // pret ok $aff=str_replace('!!due_date!!', $result->due_date, $msg["empr_do_checkout_ok"]); $aff=str_replace('!!expl_cb!!',"'$cb_expl'", $aff); $aff="
".$aff."
"; } else { $aff="
".$msg["empr_do_checkout_nok"]."
"; if($result->message) $aff.="".$result->message."
"; } // if($result->title) $aff.="

".$result->title."

"; // if($result->message) $aff.="".$result->message."
"; if($result->message_loc) $aff.="".$result->message_loc."
"; if($result->message_resa) $aff.="".$result->message_resa."
"; if($result->message_retard) $aff.="".$result->message_retard."
"; if($result->message_amende) $aff.="".$result->message_amende."
"; print $aff; $requete="select expl_notice, expl_bulletin from exemplaires where expl_cb ='$cb_expl'"; $resultat=pmb_mysql_query($requete); $prix=0; if($r=pmb_mysql_fetch_object($resultat)) { $current = new notice_affichage($r->expl_notice+$r->expl_bulletin,0,1); $current->do_header(); $current->do_isbd(); $current->do_public(); $current->genere_double(0,"public"); $output_final .= $current->result; print "
".$output_final; } } ?>