17 include_once (
"FDL/popupdoc.php");
18 include_once (
"FDL/popupdocdetail.php");
22 $docid = GetHttpVars(
"id");
25 $zone = GetHttpVars(
"zone");
26 $famid = GetHttpVars(
"famid");
33 $surl = $action->
getParam(
"CORE_STANDURL");
34 if (
$famid ==
"") $target =
'finfo' .
$doc->fromid;
35 else $target =
'finfo' .
$famid;
39 "descr" => _(
"Properties") ,
40 "url" =>
"$surl&app=FDL&action=IMPCARD&zone=FDL:VIEWPROPERTIES:T&id=$docid",
44 "target" =>
"headers",
50 "descr" => _(
"View latest") ,
51 "url" =>
"$surl&app=FDL&action=FDL_CARD&latest=Y&id=$docid",
61 "descr" => _(
"Edit") ,
62 "url" =>
"$surl&app=GENERIC&action=GENERIC_EDIT&rzone=$zone&id=$docid",
72 "descr" => _(
"Edit in new window") ,
73 "url" =>
"$surl&app=GENERIC&action=GENERIC_EDIT&rzone=$zone&id=$docid",
84 addCvPopup($tlink,
$doc, $target);
86 $tlink = array_merge($tlink, array(
88 "descr" => _(
"Delete") ,
89 "url" =>
"$surl&app=GENERIC&action=GENERIC_DEL&id=$docid",
92 "tconfirm" => sprintf(_(
"Sure delete %s ?") ,
$doc->title) ,
100 "descr" => _(
"Lock") ,
101 "url" =>
"$surl&app=FDL&action=LOCKFILE&id=$docid",
102 "confirm" =>
"false",
103 "control" =>
"false",
107 "submenu" =>
N_(
"security") ,
110 "unlockdoc" => array(
111 "descr" => _(
"Unlock") ,
112 "url" =>
"$surl&app=FDL&action=UNLOCKFILE&id=$docid",
113 "confirm" =>
"false",
114 "control" =>
"false",
118 "submenu" =>
"security",
122 "descr" => _(
"Revise") ,
123 "url" =>
"$surl&app=FREEDOM&action=REVCOMMENT&id=$docid",
124 "confirm" =>
"false",
125 "control" =>
"false",
133 "descr" => _(
"Change profile") ,
134 "url" =>
"$surl&app=FREEDOM&action=EDITPROF&id=$docid",
135 "confirm" =>
"false",
136 "control" =>
"false",
140 "submenu" =>
"security",
144 "descr" => _(
"History") ,
145 "url" =>
"$surl&app=FREEDOM&action=HISTO&id=$docid",
146 "confirm" =>
"false",
147 "control" =>
"false",
154 "duplicate" => array(
155 "descr" => _(
"Duplicate") ,
156 "url" =>
"$surl&app=GENERIC&action=GENERIC_DUPLICATE&id=$docid",
158 "control" =>
"false",
159 "tconfirm" => sprintf(_(
"Sure duplicate %s ?") ,
$doc->title) ,
166 "descr" => _(
"goaccess") ,
167 "url" =>
"$surl&app=FREEDOM&action=FREEDOM_GACCESS&id=" .
$doc->profid,
168 "confirm" =>
"false",
169 "control" =>
"false",
175 "submenu" =>
"security",
179 "descr" => _(
"Add to basket") ,
180 "url" =>
"$surl&app=FREEDOM&action=ADDDIRFILE&docid=$docid&dirid=" . $action->
getParam(
"FREEDOM_IDBASKET") ,
181 "confirm" =>
"false",
182 "control" =>
"false",
190 "relations" => array(
191 "descr" => _(
"Document relations") ,
192 "url" =>
"$surl&app=FREEDOM&action=RNAVIGATE&id=$docid",
193 "confirm" =>
"false",
194 "control" =>
"false",
202 "descr" => _(
"Access path list") ,
203 "url" =>
"$surl&app=FREEDOM&action=FREEDOM_IFLD&id=$docid",
204 "confirm" =>
"false",
205 "control" =>
"false",
212 "reference" => array(
213 "descr" => _(
"Search linked documents") ,
214 "url" =>
"$surl&app=GENERIC&action=GENERIC_ISEARCH&id=$docid",
215 "confirm" =>
"false",
216 "control" =>
"false",
226 $tlink[
"editdocw"][
"visibility"] = $tlink[
"editdoc"][
"visibility"];
exitError($texterr, $exit=true, $code="")
new_Doc($dbaccess, $id= '', $latest=false)