Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
popuplistdetail.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Specific menu for family
8  *
9  * @author Anakeen
10  * @version $Id: popuplistdetail.php,v 1.2 2007/09/11 07:31:22 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 
17 include_once ("FDL/popupdoc.php");
18 include_once ("FDL/popupdocdetail.php");
19 
21 {
22  $docid = GetHttpVars("id");
23  if ($docid == "") $action->exitError(_("No identificator"));
24 
25  $zone = GetHttpVars("zone"); // special zone
26  $famid = GetHttpVars("famid"); // special zone
27  $dbaccess = $action->dbaccess;
29  if ($doc->isAffected()) $docid = $doc->id;
30  // if ($doc->doctype=="C") return; // not for familly
31  $tsubmenu = array();
32  // -------------------- Menu menu ------------------
33  $surl = $action->getParam("CORE_STANDURL");
34  if ($famid == "") $target = 'finfo' . $doc->fromid;
35  else $target = 'finfo' . $famid;
36 
37  $tlink = array(
38  "headers" => array(
39  "descr" => _("Properties") ,
40  "url" => "$surl&app=FDL&action=IMPCARD&zone=FDL:VIEWPROPERTIES:T&id=$docid",
41  "confirm" => "false",
42  "control" => "false",
43  "tconfirm" => "",
44  "target" => "headers",
45  "visibility" => POPUP_CTRLACTIVE,
46  "submenu" => "",
47  "barmenu" => "false"
48  ) ,
49  "latest" => array(
50  "descr" => _("View latest") ,
51  "url" => "$surl&app=FDL&action=FDL_CARD&latest=Y&id=$docid",
52  "confirm" => "false",
53  "control" => "false",
54  "tconfirm" => "",
55  "target" => $target,
56  "visibility" => POPUP_INVISIBLE,
57  "submenu" => "",
58  "barmenu" => "false"
59  ) ,
60  "editdoc" => array(
61  "descr" => _("Edit") ,
62  "url" => "$surl&app=GENERIC&action=GENERIC_EDIT&rzone=$zone&id=$docid",
63  "confirm" => "false",
64  "control" => "false",
65  "tconfirm" => "",
66  "target" => $target,
67  "visibility" => POPUP_ACTIVE,
68  "submenu" => "",
69  "barmenu" => "false"
70  ) ,
71  "editdocw" => array(
72  "descr" => _("Edit in new window") ,
73  "url" => "$surl&app=GENERIC&action=GENERIC_EDIT&rzone=$zone&id=$docid",
74  "confirm" => "false",
75  "control" => "false",
76  "tconfirm" => "",
77  "target" => "_blank",
78  "visibility" => POPUP_ACTIVE,
79  "submenu" => "",
80  "barmenu" => "false"
81  )
82  );
83 
84  addCvPopup($tlink, $doc, $target);
85  // addStatesPopup($tlink,$doc);
86  $tlink = array_merge($tlink, array(
87  "delete" => array(
88  "descr" => _("Delete") ,
89  "url" => "$surl&app=GENERIC&action=GENERIC_DEL&id=$docid",
90  "confirm" => "true",
91  "control" => "false",
92  "tconfirm" => sprintf(_("Sure delete %s ?") , $doc->title) ,
93  "target" => $target,
94  "visibility" => POPUP_INACTIVE,
95  "submenu" => "",
96  "barmenu" => "false"
97  ) ,
98 
99  "lockdoc" => array(
100  "descr" => _("Lock") ,
101  "url" => "$surl&app=FDL&action=LOCKFILE&id=$docid",
102  "confirm" => "false",
103  "control" => "false",
104  "tconfirm" => "",
105  "target" => $target,
106  "visibility" => POPUP_CTRLACTIVE,
107  "submenu" => N_("security") ,
108  "barmenu" => "false"
109  ) ,
110  "unlockdoc" => array(
111  "descr" => _("Unlock") ,
112  "url" => "$surl&app=FDL&action=UNLOCKFILE&id=$docid",
113  "confirm" => "false",
114  "control" => "false",
115  "tconfirm" => "",
116  "target" => $target,
117  "visibility" => POPUP_CTRLACTIVE,
118  "submenu" => "security",
119  "barmenu" => "false"
120  ) ,
121  "revise" => array(
122  "descr" => _("Revise") ,
123  "url" => "$surl&app=FREEDOM&action=REVCOMMENT&id=$docid",
124  "confirm" => "false",
125  "control" => "false",
126  "tconfirm" => "",
127  "target" => $target,
128  "visibility" => POPUP_INACTIVE,
129  "submenu" => "",
130  "barmenu" => "false"
131  ) ,
132  "editprof" => array(
133  "descr" => _("Change profile") ,
134  "url" => "$surl&app=FREEDOM&action=EDITPROF&id=$docid",
135  "confirm" => "false",
136  "control" => "false",
137  "tconfirm" => "",
138  "target" => "",
139  "visibility" => POPUP_ACTIVE,
140  "submenu" => "security",
141  "barmenu" => "false"
142  ) ,
143  "histo" => array(
144  "descr" => _("History") ,
145  "url" => "$surl&app=FREEDOM&action=HISTO&id=$docid",
146  "confirm" => "false",
147  "control" => "false",
148  "tconfirm" => "",
149  "target" => "",
150  "visibility" => POPUP_INVISIBLE,
151  "submenu" => "",
152  "barmenu" => "false"
153  ) ,
154  "duplicate" => array(
155  "descr" => _("Duplicate") ,
156  "url" => "$surl&app=GENERIC&action=GENERIC_DUPLICATE&id=$docid",
157  "confirm" => "true",
158  "control" => "false",
159  "tconfirm" => sprintf(_("Sure duplicate %s ?") , $doc->title) ,
160  "target" => $target,
161  "visibility" => POPUP_ACTIVE,
162  "submenu" => "",
163  "barmenu" => "false"
164  ) ,
165  "access" => array(
166  "descr" => _("goaccess") ,
167  "url" => "$surl&app=FREEDOM&action=FREEDOM_GACCESS&id=" . $doc->profid,
168  "confirm" => "false",
169  "control" => "false",
170  "tconfirm" => "",
171  "target" => "",
172  "mwidth" => 800,
173  "mheight" => 300,
174  "visibility" => POPUP_ACTIVE,
175  "submenu" => "security",
176  "barmenu" => "false"
177  ) ,
178  "tobasket" => array(
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",
183  "tconfirm" => "",
184  "target" => "",
185  "visibility" => POPUP_CTRLACTIVE,
186  "submenu" => "",
187  "barmenu" => "false"
188  ) ,
189 
190  "relations" => array(
191  "descr" => _("Document relations") ,
192  "url" => "$surl&app=FREEDOM&action=RNAVIGATE&id=$docid",
193  "confirm" => "false",
194  "control" => "false",
195  "tconfirm" => "",
196  "target" => "",
197  "visibility" => POPUP_CTRLACTIVE,
198  "submenu" => "",
199  "barmenu" => "false"
200  ) ,
201  "path" => array(
202  "descr" => _("Access path list") ,
203  "url" => "$surl&app=FREEDOM&action=FREEDOM_IFLD&id=$docid",
204  "confirm" => "false",
205  "control" => "false",
206  "tconfirm" => "",
207  "target" => "",
208  "visibility" => POPUP_CTRLACTIVE,
209  "submenu" => "",
210  "barmenu" => "false"
211  ) ,
212  "reference" => array(
213  "descr" => _("Search linked documents") ,
214  "url" => "$surl&app=GENERIC&action=GENERIC_ISEARCH&id=$docid",
215  "confirm" => "false",
216  "control" => "false",
217  "tconfirm" => "",
218  "target" => "",
219  "visibility" => POPUP_INVISIBLE,
220  "submenu" => "",
221  "barmenu" => "false"
222  )
223  ));
224 
225  changeMenuVisibility($action, $tlink, $doc);
226  $tlink["editdocw"]["visibility"] = $tlink["editdoc"]["visibility"];
227  popupdoc($action, $tlink);
228 }
global $action
const POPUP_INVISIBLE
Definition: Class.Doc.php:44
const POPUP_CTRLACTIVE
Definition: Class.Doc.php:42
popupdoc(Action &$action, $tlink, $tsubmenu=array())
Definition: popupdoc.php:19
changeMenuVisibility(Action &$action, &$tlink, Doc &$doc)
exitError($texterr, $exit=true, $code="")
const POPUP_INACTIVE
Definition: Class.Doc.php:40
$docid
Definition: cleanFamily.php:13
popuplistdetail(Action &$action)
const POPUP_ACTIVE
Definition: Class.Doc.php:41
new_Doc($dbaccess, $id= '', $latest=false)
getParam($name, $def="")
$dbaccess
Definition: checkVault.php:17
N_($s)
Definition: Lib.Common.php:18
← centre documentaire © anakeen