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