".$msg["empr_bad_login"]."


"; else { print do_formulaire_connexion() ; } } else { print "
".sprintf($msg["session_expired"],round($opac_duration_session_auth/60))."


"; print do_formulaire_connexion() ; } } if ($erreur_session) print $erreur_session ; if ($opac_resa_popup) print $popup_footer; else { //insertions des liens du bas dans le $footer si $opac_show_liensbas if ($opac_show_liensbas==1) $footer = str_replace("!!div_liens_bas!!",$liens_bas,$footer); else $footer = str_replace("!!div_liens_bas!!","",$footer); //affichage du bandeau de gauche si $opac_show_bandeaugauche = 1 if ($opac_show_bandeaugauche==0) $footer= str_replace("!!contenu_bandeau!!","",$footer); else { $footer = str_replace("!!contenu_bandeau!!","
!!contenu_bandeau!!
",$footer); $home_on_left=str_replace("!!welcome_page!!",$msg["welcome_page"],$home_on_left); $adresse=str_replace("!!common_tpl_address!!",$msg["common_tpl_address"],$adresse); $adresse=str_replace("!!common_tpl_contact!!",$msg["common_tpl_contact"],$adresse); // loading the languages avaiable in OPAC - martizva >> Eric require_once($base_path.'/includes/languages.inc.php'); $home_on_left = str_replace("!!common_tpl_lang_select!!", show_select_languages("empr.php"), $home_on_left); if (!$_SESSION["user_code"]) { $loginform=str_replace('',$msg["common_tpl_login_invite"],$loginform); $loginform__ = genere_form_connexion_empr(); } else { $loginform__.="".$empr_prenom." ".$empr_nom."
\n"; $loginform__.="".$msg["empr_my_account"]."
".$msg["empr_logout"].""; } $loginform = str_replace("!!login_form!!",$loginform__,$loginform); $footer= str_replace("!!contenu_bandeau!!",$home_on_left.$loginform.$meteo.$adresse,$footer); $footer=str_replace("!!cms_build_info!!","",$footer); } print $footer ; } /** * Récupère les infos de la notice */ function recup_notice_infos($id_notice){ global $infos_notice, $infos_expl; $rqt="select notice_id, typdoc, niveau_biblio, index_l, libelle_categorie, name_pclass, indexint_name from notices n left join notices_categories nc on nc.notcateg_notice=n.notice_id left join categories c on nc.num_noeud=c.num_noeud left join indexint i on n.indexint=i.indexint_id left join pclassement pc on i.num_pclass=pc.id_pclass where notice_id='".$id_notice."'"; $res_noti = mysql_query($rqt); while(($noti=mysql_fetch_array($res_noti))){ $infos_notice=$noti; $rqt_expl = " select section_libelle, location_libelle, statut_libelle, codestat_libelle, expl_date_depot, expl_date_retour, tdoc_libelle from exemplaires e left join docs_codestat co on e.expl_codestat = co.idcode left join docs_location dl on e.expl_location=dl.idlocation left join docs_section ds on ds.idsection=e.expl_section left join docs_statut dst on e.expl_statut=dst.idstatut left join docs_type dt on dt.idtyp_doc=e.expl_typdoc where expl_notice='".$id_notice."'"; $res_expl=mysql_query($rqt_expl); while(($expl = mysql_fetch_array($res_expl))){ $infos_expl[]=$expl; } } } global $pmb_logs_activate; if($pmb_logs_activate){ //Enregistrement du log global $log, $infos_expl, $infos_notice; $rqt= " select empr_prof,empr_cp, empr_ville, empr_year, empr_sexe, empr_login, empr_date_adhesion, empr_date_expiration, count(pret_idexpl) as nbprets, count(resa.id_resa) as nbresa, code.libelle as codestat, es.statut_libelle as statut, categ.libelle as categ, gr.libelle_groupe,dl.location_libelle from empr e left join empr_codestat code on code.idcode=e.empr_codestat left join empr_statut es on e.empr_statut=es.idstatut left join empr_categ categ on categ.id_categ_empr=e.empr_categ left join empr_groupe eg on eg.empr_id=e.id_empr left join groupe gr on eg.groupe_id=gr.id_groupe left join docs_location dl on e.empr_location=dl.idlocation left join resa on e.id_empr=resa_idempr left join pret on e.id_empr=pret_idempr where e.empr_login='".addslashes($_SESSION['user_code'])."' group by resa_idempr, pret_idempr"; $res=mysql_query($rqt); if($res){ $empr_carac = mysql_fetch_array($res); $log->add_log('empr',$empr_carac); } $log->add_log('num_session',session_id()); $log->add_log('expl',$infos_expl); $log->add_log('docs',$infos_notice); $log->save(); } if($opac_parse_html){ $htmltoparse = ob_get_contents(); ob_end_clean(); $res = parseHTML($htmltoparse); print $res; } /* Fermeture de la connexion */ mysql_close($dbh);