コード例 #1
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: bannette_see.inc.php,v 1.3 2015-09-14 09:15:21 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
// affichage du contenu d'une bannette
require_once $base_path . "/includes/bannette_func.inc.php";
// afin de résoudre un pb d'effacement de la variable $id_empr par empr_included, bug à trouver
if (!$id_empr) {
    $id_empr = $_SESSION["id_empr_session"];
}
print "<script type='text/javascript' src='./includes/javascript/tablist.js'></script>";
print "<div id='aut_details' class='aut_details_bannette'>\n";
if ($id_bannette) {
    $bans = explode(",", $id_bannette);
    for ($i = 0; $i < count($bans); $i++) {
        $bans[$i] += 0;
    }
    $aff = pmb_bidi(affiche_public_bannette(implode(",", $bans), 0, $opac_bannette_notices_format, $opac_bannette_notices_depliables, "./index.php?lvl=bannette_see&id_bannette=!!id_bannette!!", $liens_opac, $date_diff));
    if ($opac_bannette_notices_depliables) {
        print $begin_result_liste;
    }
    print $aff;
} else {
    print $msg['bannette_see_nothing_to_see'];
}
print "</div><!-- fermeture #aut_see -->\n";
コード例 #2
0
function get_html_subscription_action($others_informations)
{
    global $opac_websubscribe_show;
    global $msg;
    $html = "";
    if ($opac_websubscribe_show == 2) {
        switch ($others_informations['lvl']) {
            case "resa":
                $html = "\n\t\t\t\t<div>\n\t\t\t\t\t<h3>" . $msg['websubscribe_resa_action'] . "</h3>\n\t\t\t\t\t<div class='row'>&nbsp;</div> \n\t\t\t\t\t" . aff_notice($others_informations['id_notice'], 1, 1, 0, "", 0, 0, 1) . "\n\t\t\t\t</div>";
                break;
            case "bannette_gerer":
                $id_bannette = 0;
                foreach ($others_informations['bannette_abon'] as $id => $v) {
                    $id_bannette = $id;
                }
                $html = "\n\t\t\t\t<div>\n\t\t\t\t\t<h3>" . $msg['websubscribe_bannette_action'] . "</h3>\n\t\t\t\t<div class='row'>&nbsp;</div>\n\t\t\t\t" . affiche_public_bannette($id_bannette) . "\n\t\t\t\t</div>";
                break;
        }
    }
    return $html;
}