17 include_once (
"FDL/popupdocdetail.php");
18 include_once (
"FDL/popupfamdetail.php");
22 $docid = GetHttpVars(
"id");
29 if (
$doc->specialmenu) {
30 if (preg_match(
"/(.*):(.*)/",
$doc->specialmenu, $reg)) {
31 $action->parent->setVolatileParam(
"getmenulink", 1);
34 $function = strtolower($reg[2]);
35 $file = $function .
".php";
36 if (include_once (
"$dir/$file")) {
38 $popup = $action->GetParam(
"menulink");;
40 AddwarningMsg(sprintf(_(
"Incorrect specification of special menu : %s") ,
$doc->specialmenu));
42 $action->parent->setVolatileParam(
"getmenulink", null);
44 AddwarningMsg(sprintf(_(
"Incorrect specification of special menu : %s") ,
$doc->specialmenu));
63 foreach ($popup as $k => $v) {
64 foreach ($menuIndex as $aItemMenu)
if (!isset($v[$aItemMenu])) $popup[$k][$aItemMenu] = $v[$aItemMenu] =
'';
65 $vis = $v[
"visibility"];
68 else if (($v[
"url"] ==
"") && ($v[
"jsfunction"] ==
"")) unset($popup[$k]);
70 $popup[$k][
"menu"] = ($v[
"submenu"] !=
"");
71 $popup[$k][
"self"] = (($v[
"target"] ==
"_self") && ($v[
"jsfunction"] ==
"")) ?
'true' :
'false';
72 if ($popup[$k][
"menu"]) {
73 $idxmenu = $v[
"submenu"];
74 if (!isset($mpopup[$idxmenu])) {
75 $mpopup[$idxmenu] =
true;
78 "descr" => _($v[
"submenu"]) ,
79 "visibility" =>
false,
81 "jsfunction" =>
"false",
83 "title" => _(
"Click to view menu") ,
99 $popup[$k][
"idlink"] = $k;
100 if ($v[
"mwidth"] ==
"") $popup[$k][
"mwidth"] = $action->
getParam(
"FDL_HD2SIZE");
101 if ($v[
"mheight"] ==
"") $popup[$k][
"mheight"] = $action->
getParam(
"FDL_VD2SIZE");
102 if ($v[
"target"] ==
"") $popup[$k][
"target"] =
"$k$docid";
103 $popup[$k][
"descr"] = $v[
"descr"];
104 $popup[$k][
"title"] = ucfirst($v[
"title"]);
105 $popup[$k][
"m"] = ($v[
"barmenu"] ==
"true") ?
"m" :
"";
106 $popup[$k][
"isjs"] = ($v[
"jsfunction"] !=
"") ?
'true' :
'false';
107 $popup[$k][
"confirm"] = ($v[
"confirm"] ==
"true") ?
'true' :
'false';
108 $popup[$k][
"tconfirm"] = str_replace(array(
118 foreach ($popup as & $elmt) {
119 foreach ($elmt as $k => &
$value) {
121 $value = str_replace(
"[",
"[", htmlspecialchars(
$value, ENT_QUOTES));
127 $action->lay->set(
"other", $other);
128 $action->lay->setBlockData(
"LINKS", $popup);
129 $action->lay->set(
"id",
$doc->id);
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)