17 include_once (
"FDL/popupdoc.php");
21 $docid = GetHttpVars(
"id");
38 $surl = $action->
getParam(
"CORE_STANDURL");
42 "descr" => _(
"Properties") ,
43 "url" =>
"$surl&app=FDL&action=IMPCARD&zone=FDL:VIEWPROPERTIES:T&id=$docid",
47 "target" =>
"headers",
54 "descr" => sprintf(_(
"Create %s") ,
$doc->getTitle()) ,
55 "url" =>
"$surl&app=GENERIC&action=GENERIC_EDIT&classid=$docid",
66 "descr" => _(
"Change icon") ,
67 "url" =>
"$surl&app=FREEDOM&action=QUERYFILE&id=$docid",
78 "descr" => _(
"View attributes") ,
79 "url" =>
"admin.php?app=DOCADMIN&action=FAMILY_VIEWATTRIBUTES&id=$docid",
89 "descr" => _(
"Edit enum attributes") ,
90 "url" =>
"$surl&app=FDL&action=EDITFAMILYENUMS&viewoldinterface=yes&famid=$docid",
100 "descr" => _(
"View default values and parameters") ,
101 "url" =>
"$surl&app=FDL&action=IMPCARD&zone=FDL:VIEWDEFAULTVALUES&id=$docid",
102 "confirm" =>
"false",
103 "control" =>
"false",
123 "descr" => _(
"Rename") ,
124 "url" =>
"$surl&app=FREEDOM&action=QUERYTITLE&id=$docid",
125 "confirm" =>
"false",
126 "control" =>
"false",
134 "descr" => _(
"Change profile of family document") ,
135 "url" =>
"$surl&app=FREEDOM&action=EDITPROF&id=$docid",
136 "confirm" =>
"false",
137 "control" =>
"false",
141 "submenu" =>
"security",
144 "editcprof" => array(
145 "descr" => _(
"Change profile for new documents") ,
146 "url" =>
"$surl&app=FREEDOM&action=EDITPROF&create=1&id=$docid",
147 "confirm" =>
"false",
148 "control" =>
"false",
152 "submenu" =>
"security",
156 "descr" => _(
"Change root folder") ,
157 "url" =>
"$surl&app=FREEDOM&action=EDITDFLD&id=$docid",
158 "confirm" =>
"false",
159 "control" =>
"false",
167 "descr" => _(
"Change default search") ,
168 "url" =>
"$surl&app=FREEDOM&action=EDITDFLD¤t=Y&id=$docid",
169 "confirm" =>
"false",
170 "control" =>
"false",
178 "descr" => _(
"Choose workflow") ,
179 "url" =>
"$surl&app=FREEDOM&action=EDITWDOC¤t=Y&id=$docid",
180 "confirm" =>
"false",
181 "control" =>
"false",
190 "descr" => _(
"History") ,
191 "url" =>
"$surl&app=FREEDOM&action=HISTO&id=$docid",
192 "confirm" =>
"false",
193 "control" =>
"false",
201 "descr" => _(
"goaccess") ,
202 "url" =>
"$surl&app=FREEDOM&action=FREEDOM_GACCESS&id=" .
$doc->profid,
203 "confirm" =>
"false",
204 "control" =>
"false",
210 "submenu" =>
"security",
214 "descr" => _(
"Add to basket") ,
215 "url" =>
"$surl&app=FREEDOM&action=ADDDIRFILE&docid=$docid&dirid=" . $action->
getParam(
"FREEDOM_IDBASKET") ,
216 "confirm" =>
"false",
217 "control" =>
"false",
224 "addpostit" => array(
225 "descr" => _(
"Add postit") ,
226 "jsfunction" =>
"postit('$surl&app=GENERIC&action=GENERIC_EDIT&classid=27&pit_title=&pit_idadoc=$docid',50,50,300,200)",
227 "confirm" =>
"false",
228 "control" =>
"false",
235 "exportpref" => array(
236 "descr" => _(
"export preferences") ,
237 "url" =>
"$surl&app=FREEDOM&action=EDITEXPORTCHOOSECOLS&id=$docid",
238 "confirm" =>
"false",
239 "control" =>
"false",
241 "target" =>
"exportpref",
247 "descr" => _(
"create help") ,
248 "url" =>
"$surl&app=GENERIC&action=GENERIC_EDIT&classid=HELPPAGE&help_family=$docid",
249 "confirm" =>
"false",
250 "control" =>
"false",
252 "target" =>
"edithelp",
271 $clf = (
$doc->CanEdit() ==
"");
275 if (
$doc->IsControlled() && (
$doc->profid > 0) && (
$doc->Control(
"viewacl") ==
"")) {
281 if (
$doc->Control(
"modifyacl") ==
"") {
290 if (
$doc->locked == - 1) {
299 if (
$doc->dfldid !=
"") {
319 if (!$action->parent->Haspermission(
"FREEDOM_READ",
"FREEDOM")) {
322 if (!$action->parent->Haspermission(
"FDL",
"FAMILY")) {
325 if ($action->parent->Haspermission(
"DOCADMIN",
"DOCADMIN")) {
329 include_once (
"FDL/Class.SearchDoc.php");
331 $s->addFilter(
"help_family='%d'",
$doc->id);
332 $help =
$s->search();
333 if (
$s->count() > 0) {
334 $tlink[
"edithelp"][
"descr"] = _(
"modify family help");
335 $helpid = $help[0][
"id"];
336 $tlink[
"edithelp"][
"url"] =
"?app=GENERIC&action=GENERIC_EDIT&id=$helpid";
exitError($texterr, $exit=true, $code="")
getParam($name, $def="")
must be in core or global type
new_Doc($dbaccess, $id= '', $latest=false)