예제 #1
0
require_once "{$javascript_path}/misc.inc.php";
//Récupération des paramètres du formulaire appellant
$base_query = "id_empr={$id_empr}&groupID={$groupID}&unq={$unq}&history=" . rawurlencode(stripslashes($term)) . "&history_thes=" . rawurlencode(stripslashes($id_thes));
echo $jscript_term;
function parent_link($categ_id, $categ_see)
{
    global $charset;
    global $base_path;
    global $thesaurus_categories_show_empty_categ;
    global $id_empr, $groupID, $unq;
    if ($categ_see) {
        $categ = $categ_see;
    } else {
        $categ = $categ_id;
    }
    $tcateg = new category($categ);
    if ($thesaurus_categories_show_empty_categ) {
        $visible = true;
    } else {
        $visible = false;
    }
    if ($tcateg->has_notices()) {
        $link = "<a href='" . $base_path . "/circ.php?categ=resa_planning&resa_action=search_resa&mode=1&aut_id={$categ}&etat=aut_search&aut_type=categ&id_empr={$id_empr}&groupID={$groupID}&mode=1&unq={$unq}' target=_top><img src='{$base_path}/images/search.gif' border=0 align='absmiddle'></a>";
        $visible = true;
    }
    $r = array("VISIBLE" => $visible, "LINK" => $link);
    return $r;
}
$ts = new term_show(stripslashes($term), "term_show.php", $base_query, "parent_link", 0, $id_thes);
echo $ts->show_notice();
예제 #2
0
    }
    $tcateg = new category($categ);
    if ($tcateg->commentaire_public) {
        $zoom_comment = "<div id='zoom_comment" . $tcateg->id . "' style='border: solid 2px #555555; background-color: #FFFFFF; position: absolute; display:none; z-index: 2000;'>" . htmlentities($tcateg->commentaire_public, ENT_QUOTES, $charset) . "</div>";
        $java_comment = " onmouseover=\"z=document.getElementById('zoom_comment" . $tcateg->id . "'); z.style.display=''; \" onmouseout=\"z=document.getElementById('zoom_comment" . $tcateg->id . "'); z.style.display='none'; \"";
    } else {
        $zoom_comment = "";
        $java_comment = "";
    }
    if ($thesaurus_mode_pmb && $caller == 'notice') {
        $nom_tesaurus = '[' . $tcateg->thes->getLibelle() . '] ';
    } else {
        $nom_tesaurus = '';
    }
    if ($tcateg->not_use_in_indexation && $caller == "notice") {
        $link = "<img src='{$base_path}/images/interdit.gif' hspace='3' border='0'/>";
    } elseif (!$tcateg->is_under_tilde || $keep_tilde) {
        if ($caller == "search_form") {
            $lib_final = $tcateg->libelle;
        } else {
            $lib_final = $nom_tesaurus . $tcateg->catalog_form;
        }
        $link = "<a href=\"\" onclick=\"set_parent('{$caller}', '{$tcateg->id}', '" . htmlentities(addslashes($lib_final), ENT_QUOTES, $charset) . "','{$callback}','" . $tcateg->thes->id_thesaurus . "'); return false;\" {$java_comment}><span class='plus_terme'><span>+</span></span></a>{$zoom_comment}";
    }
    $visible = true;
    $r = array("VISIBLE" => $visible, "LINK" => $link);
    return $r;
}
$ts = new term_show(stripslashes($term), "term_show.php", $base_query, "parent_link", $keep_tilde, $id_thes);
echo pmb_bidi($ts->show_notice());