get_registry();
require($registry->get('GV_RootPath') . "www/thesaurus2/xmlhttp.php");
$request = http_request::getInstance();
$parm = $request->get_parms(
"bid"
, "piv"
, "id"
, "typ"
, "dlg"
);
$lng = $app['locale'];
if ($parm["dlg"]) {
$opener = "window.dialogArguments.win";
} else {
$opener = "opener";
}
?>
\n");
$dom = xmlhttp($url);
printf("id: %s
\n", $parm["id"]);
$fullpath = $dom->getElementsByTagName("fullpath_html")->item(0)->firstChild->nodeValue;
print("" . $fullpath . "
\n");
if ($parm["typ"] == "CT") {
// printf("present dans %s fiche(s).
\n", $dom->getElementsByTagName("hits")->item(0)->firstChild->nodeValue );
print("
\n");
} elseif ($parm["typ"] == "TH") {
echo p4string::MakeString(sprintf(_('thesaurus:: %s reponses retournees'), $dom->getElementsByTagName("allhits")->item(0)->firstChild->nodeValue));
print("
\n");
print("
\n");
}
?>
getElementsByTagName("sy_list")->item(0);
$nsy = 0;
for ($n = $sy_list->firstChild; $n; $n = $n->nextSibling) {
printf("\t\t\t\t\t\t\n", $id = $n->getAttribute("id"), $n->getAttribute("hits"));
printf("\t\t\t\t\t\t\t\n");
if ($nsy > 0)
printf("\t\t\t\t\t\t\t\t \n");
if ($nsy > 0 && $n->nextSibling)
print(" ");
if ($n->nextSibling)
printf("\t\t\t\t\t\t\t\t | \n");
printf("\t\t\t\t\t\t\t\n");
if (($lng = $n->getAttribute("lng")))
printf("\t\t\t\t\t\t\t | \n", $n->getAttribute("id"), $lng);
else
printf("\t\t\t\t\t\t\t | \n", $n->getAttribute("id"));
printf("\t\t\t\t\t\t\t%s | \n", $n->getAttribute("t"));
printf("\t\t\t\t\t\t\t%s | \n", $n->getAttribute("hits"));
printf("\t\t\t\t\t\t\t%s | \n", $id);
// printf(" | \n");
print("\t\t\t\t\t\t
\n");
$nsy ++;
}
// if($parm["typ"]=="TH")
// {
// print("nouveau synonyme... |
\n");
// }
?>
%s\n", htmlentities($dom->saveXML()));
}
?>