Ejemplo n.º 1
0
function read_notice_contenu($cmd)
{
    global $msg, $categ, $id_empr;
    $param = unserialize(stripslashes($cmd));
    $selector_prop = "toolbar=no, dependent=yes, width=500, height=400, resizable=yes, scrollbars=yes";
    $cart_click = "onClick=\"openPopUp('./cart.php?object_type=NOTI&item=" . $param['id'] . "', 'cart', 600, 700, -2, -2, '{$selector_prop}')\"";
    $current = $_SESSION["CURRENT"];
    if ($current !== false) {
        $print_action = "&nbsp;<a href='#' onClick=\"openPopUp('./print.php?current_print={$current}&notice_id=" . $param['id'] . "&action_print=print_prepare','print',500,600,-2,-2,'scrollbars=yes,menubar=0'); w.focus(); return false;\"><img src='./images/print.gif' border='0' align='center' alt=\"" . $msg["histo_print"] . "\" title=\"" . $msg["histo_print"] . "\"/></a>";
    }
    $categ = $param['categ'];
    $id_empr = $param['id_empr'];
    switch ($param['function_to_call']) {
        case 'serial_display':
            // on a affaire à un périodique
            // function serial_display ($id, $level='1', $action_serial='', $action_analysis='', $action_bulletin='', $lien_suppr_cart="",
            //$lien_explnum="", $bouton_explnum=1,$print=0,$show_explnum=1, $show_statut=0, $show_opac_hidden_fields=true, $draggable=0 ) {
            $display = new serial_display($param['id'], 6, $param['action_serial'], $param['action_analysis'], $param['action_bulletin'], $param['lien_suppr_cart'], $param['lien_explnum'], $param['bouton_explnum'], $param['print'], 1, 1, 1, 1);
            if (SESSrights & CATALOGAGE_AUTH) {
                $display->result = "\t<img src='./images/basket_small_20x20.gif' align='middle' alt='basket' title=\"{$msg[400]}\" {$cart_click}>{$print_action} !!serial_type!! !!ISBD!!";
            } else {
                $display->result = "\t{$print_action} !!serial_type!! !!ISBD!!";
            }
            $display->finalize();
            $html = $display->result;
            break;
        case 'mono_display':
            // on a affaire à un bulletin ou monographie
            $display = new mono_display($param['id'], 6, $param['action'], $param['expl'], $param['expl_link'], $param['lien_suppr_cart'], $param['explnum_link'], 1, $param['print'], 1, 1, $param['anti_loop'], 1, false, true, 0, 1);
            if (SESSrights & CATALOGAGE_AUTH) {
                $display->result = "\t<img src='./images/basket_small_20x20.gif' align='middle' alt='basket' title=\"{$msg[400]}\" {$cart_click}>{$print_action} !!ISBD!!";
            } else {
                $display->result = "\t{$print_action} !!ISBD!!";
            }
            $display->finalize();
            $html = $display->result;
            break;
    }
    return $param['id'] . '|*|' . $html;
}
Ejemplo n.º 2
0
$id_empr = $param['id_empr'];
switch ($param['function_to_call']) {
    case 'serial_display':
        // on a affaire à un périodique
        // function serial_display ($id, $level='1', $action_serial='', $action_analysis='', $action_bulletin='', $lien_suppr_cart="",
        //$lien_explnum="", $bouton_explnum=1,$print=0,$show_explnum=1, $show_statut=0, $show_opac_hidden_fields=true, $draggable=0, $ajax_mode=0 , $anti_loop='' ) {
        $display = new serial_display($param['id'], 6, $param['action_serial'], $param['action_analysis'], $param['action_bulletin'], $param['lien_suppr_cart'], $param['lien_explnum'], $param['bouton_explnum'], $param['print'], 1, 1, 1, 1);
        if (SESSrights & CATALOGAGE_AUTH) {
            $display->result = "\t<img src='./images/basket_small_20x20.gif' align='middle' alt='basket' title=\"{$msg[400]}\" {$cart_click}>{$print_action} !!serial_type!! !!ISBD!!";
        } else {
            $display->result = "\t{$print_action} !!serial_type!! !!ISBD!!";
        }
        $display->finalize();
        $html = $display->result;
        break;
    case 'mono_display':
        // on a affaire à un bulletin ou monographie
        //mono_display($id, $level=1, $action='', $expl=1, $expl_link='', $lien_suppr_cart="", $explnum_link='', $show_resa=0,
        //$print=0, $show_explnum=1, $show_statut=0, $anti_loop='', $draggable=0, $no_link=false, $show_opac_hidden_fields=true,$ajax_mode=0,$show_planning=0)
        $display = new mono_display($param['id'], 6, $param['action'], $param['expl'], $param['expl_link'], $param['lien_suppr_cart'], $param['explnum_link'], 1, $param['print'], 1, 1, '', 1, false, true, 0, 1);
        if (SESSrights & CATALOGAGE_AUTH) {
            //$display->result="<div onMouseOver='if(init_drag) init_drag();'><img src='./images/basket_small_20x20.gif' align='middle' alt='basket' title=\"${msg[400]}\" $cart_click>$print_action !!ISBD!!</div>";
            $display->result = "<div><img src='./images/basket_small_20x20.gif' align='middle' alt='basket' title=\"{$msg[400]}\" {$cart_click}>{$print_action} !!ISBD!!</div>";
        } else {
            $display->result = " {$print_action} !!ISBD!!";
        }
        $display->finalize();
        $html = $display->result;
        break;
}
ajax_http_send_response($html);