Esempio n. 1
0
function affichage_onglet_compte_empr()
{
    global $msg;
    global $loginform;
    if (!$_SESSION["user_code"]) {
        $info = genere_form_connexion_empr();
        $loginform = str_replace('<!-- common_tpl_login_invite -->', $msg["common_tpl_login_invite"], $loginform);
    } else {
        $loginform = str_replace('<!-- common_tpl_login_invite -->', $msg["empr_my_account"], $loginform);
        $info = genere_compte_empr();
    }
    return str_replace("!!login_form!!", $info, $loginform);
}
Esempio n. 2
0
                 $faq = new faq($faq_page, 0, $faq_filters);
             }
             $facette = $faq->get_facettes_filter();
             $lvl1 = "";
         } else {
             $facette = "";
             $lvl1 = "";
         }
     }
 }
 // loading the languages available in OPAC - martizva >> Eric
 require_once $base_path . '/includes/languages.inc.php';
 $home_on_left = str_replace("!!common_tpl_lang_select!!", show_select_languages("index.php"), $home_on_left);
 if (!$_SESSION["user_code"]) {
     $loginform = str_replace('<!-- common_tpl_login_invite -->', $msg["common_tpl_login_invite"], $loginform);
     $loginform__ = genere_form_connexion_empr();
 } else {
     $loginform__ .= "<b>" . $empr_prenom . " " . $empr_nom . "</b><br />\n";
     $loginform__ .= "<select name='empr_quick_access' onchange='if (this.value) window.location.href=this.value'>\n\t\t\t\t<option value=''>" . $msg["empr_quick_access"] . "</option>\n\t\t\t\t<option value='empr.php'>" . $msg["empr_my_account"] . "</option>";
     if ($allow_loan || $allow_loan_hist) {
         $loginform__ .= "<option value='empr.php?tab=loan_reza&lvl=all#empr-loan'>" . $msg["empr_my_loans"] . "</option>";
     }
     if ($allow_book && $opac_resa) {
         $loginform__ .= "<option value='empr.php?tab=loan_reza&lvl=all#empr-resa'>" . $msg["empr_my_resas"] . "</option>";
     }
     if ($opac_demandes_active && $allow_dema) {
         $loginform__ .= "<option value='empr.php?tab=request&lvl=list_dmde'>" . $msg["empr_my_dmde"] . "</option>";
     }
     $loginform__ .= "</select><br />";
     $loginform__ .= "<a href=\"index.php?logout=1\" id=\"empr_logout_lnk\">" . $msg["empr_logout"] . "</a>";
 }
Esempio n. 3
0
 public function show_form()
 {
     print "\n\t\t<div id='auth_popup' style='z-index:9001;padding:10px;border:1px solid black;background-color:white;height:100px;position:absolute;top:auto;left:auto\n\t\t'>" . genere_form_connexion_empr(true) . "\n\t\t</div>";
     print "\n\t\t<script type='text/javascript'>\n\t\t\tdocument.getElementById('att').appendChild(document.getElementById('auth_popup'));\n\t\t</script>";
 }