feb89fb30d83ea88adb3d049becee42f3e49bd14
[GroupUserFolder.git] / dtml / GRUFFolder_main.dtml
1 <dtml-comment> -*- mode: dtml; dtml-top-element: "body" -*- </dtml-comment>
2 <dtml-var manage_page_header>
3 <dtml-var manage_tabs>
4
5 <script type="text/javascript">
6 <!--
7
8 isSelected = false;
9
10 function toggleSelect() {
11 if (isSelected == false) {
12 for (i = 0; i < document.objectItems.length; i++)
13 document.objectItems.elements[i].checked = true ;
14 isSelected = true;
15 document.objectItems.selectButton.value = "Deselect All";
16 return isSelected;
17 }
18 else {
19 for (i = 0; i < document.objectItems.length; i++)
20 document.objectItems.elements[i].checked = false ;
21 isSelected = false;
22 document.objectItems.selectButton.value = "Select All";
23 return isSelected;
24 }
25 }
26
27 //-->
28 </script>
29
30 <dtml-unless skey><dtml-call expr="REQUEST.set('skey', 'id')"></dtml-unless>
31 <dtml-unless rkey><dtml-call expr="REQUEST.set('rkey', '')"></dtml-unless>
32
33 <!-- Free text -->
34 <dtml-if header_text>
35 <p class="form-help">
36 <dtml-var header_text>
37 </p>
38 </dtml-if>
39
40
41 <!-- Add object widget -->
42 <br />
43 <dtml-if filtered_meta_types>
44 <table width="100%" cellspacing="0" cellpadding="0" border="0">
45 <tr>
46 <td align="left" valign="top">&nbsp;</td>
47 <td align="right" valign="top">
48 <div class="form-element">
49 <form action="&dtml-URL1;/" method="get">
50 <dtml-if "_.len(filtered_meta_types) > 1">
51 <select class="form-element" name=":action"
52 onChange="location.href='&dtml-URL1;/'+this.options[this.selectedIndex].value">
53 <option value="manage_workspace" disabled>Select type to add...</option>
54 <dtml-in filtered_meta_types mapping sort=name>
55 <option value="&dtml.url_quote-action;">&dtml-name;</option>
56 </dtml-in>
57 </select>
58 <input class="form-element" type="submit" name="submit" value=" Add " />
59 <dtml-else>
60 <dtml-in filtered_meta_types mapping sort=name>
61 <input type="hidden" name=":method" value="&dtml.url_quote-action;" />
62 <input class="form-element" type="submit" name="submit" value=" Add &dtml-name;" />
63 </dtml-in>
64 </dtml-if>
65 </form>
66 </div>
67 </td>
68 </tr>
69 </table>
70 </dtml-if>
71
72 <form action="&dtml-URL1;/" name="objectItems" method="post">
73 <dtml-if objectItems>
74 <table width="100%" cellspacing="0" cellpadding="2" border="0">
75 <tr class="list-header">
76 <td width="5%" align="right" colspan="2"><div
77 class="list-item"><a href="./manage_main?skey=meta_type<dtml-if
78 "rkey == ''">&rkey=meta_type</dtml-if>"
79 onMouseOver="window.status='Sort objects by type'; return true"
80 onMouseOut="window.status=''; return true"><dtml-if
81 "skey == 'meta_type' or rkey == 'meta_type'"
82 ><strong>Type</strong><dtml-else>Type</dtml-if></a></div>
83 </td>
84 <td width="50%" align="left"><div class="list-item"><a
85 href="./manage_main?skey=id<dtml-if
86 "rkey == ''">&rkey=id</dtml-if>"
87 onMouseOver="window.status='Sort objects by name'; return true"
88 onMouseOut="window.status=''; return true"><dtml-if
89 "skey == 'id' or rkey == 'id'"
90 ><strong>Name</strong><dtml-else>Name</dtml-if></a></div>
91 </td>
92 <td width="15%" align="left"><div class="list-item"><a
93 href="./manage_main?skey=get_size<dtml-if
94 "rkey == ''">&rkey=get_size</dtml-if>"
95 onMouseOver="window.status='Sort objects by size'; return true"
96 onMouseOut="window.status=''; return true"><dtml-if
97 "skey == 'get_size' or rkey == 'get_size'"
98 ><strong>Size</strong><dtml-else>Size</dtml-if></a></div>
99 </td>
100 <td width="29%" align="left"><div class="list-item"><a
101 href="./manage_main?skey=bobobase_modification_time<dtml-if
102 "rkey == ''">&rkey=bobobase_modification_time</dtml-if
103 >"
104 onMouseOver="window.status='Sort objects by modification time'; return true"
105 onMouseOut="window.status=''; return true"><dtml-if
106 "skey == 'bobobase_modification_time' or rkey == 'bobobase_modification_time'"
107 ><strong>Last Modified</strong><dtml-else>Last Modified</dtml-if></a></div>
108 </td>
109 </tr>
110 <dtml-in objectItems sort_expr="skey" reverse_expr="rkey">
111 <dtml-if sequence-odd>
112 <tr class="row-normal">
113 <dtml-else>
114 <tr class="row-hilite">
115 </dtml-if>
116 <td align="left" valign="top" width="16">
117 <input type="checkbox" name="ids:list" value="&dtml-sequence-key;" />
118 </td>
119 <td align="left" valign="top" nowrap="1">
120
121 <dtml-if om_icons>
122 <a href="&dtml.url_quote-sequence-key;/manage_workspace">
123 <dtml-in om_icons mapping>
124 <img src="&dtml-BASEPATH1;/&dtml.url_quote-path;" alt="&dtml.missing-alt;"
125 title="&dtml.missing-title;" border="0" /></dtml-in></a>
126 <dtml-else>
127
128 <dtml-if icon>
129 <a href="&dtml.url_quote-sequence-key;/manage_workspace">
130 <img src="&dtml-BASEPATH1;/&dtml-icon;" alt="&dtml-meta_type;"
131 title="&dtml-meta_type;" border="0" /></a>
132 <dtml-else>
133 &nbsp;
134 </dtml-if>
135
136 </dtml-if>
137
138 </td>
139 <td align="left" valign="top">
140 <div class="list-item">
141 <a href="&dtml.url_quote-sequence-key;/manage_workspace">
142 &dtml-sequence-key; <dtml-if title>(&dtml-title;)</dtml-if>
143 </a>
144 <dtml-if locked_in_version>
145 <dtml-if modified_in_version>
146 <img src="&dtml-BASEPATH1;/p_/locked"
147 alt="This item has been modified in this version" />
148 <dtml-else>
149 <img src="&dtml-BASEPATH1;/p_/lockedo"
150 alt="This item has been modified in another version" />
151 (<em>&dtml-locked_in_version;</em>)
152 </dtml-if>
153 </dtml-if>
154 </div>
155 </td>
156
157 <dtml-with sequence-key>
158 <td>
159 <div class="list-item">
160 <dtml-try>
161 <dtml-if get_size>
162 <dtml-let ob_size=get_size>
163 <dtml-if "ob_size < 1024">
164 1 Kb
165 <dtml-elif "ob_size > 1048576">
166 <dtml-var "ob_size / 1048576.0" fmt="%0.02f"> Mb
167 <dtml-else>
168 <dtml-var "_.int(ob_size / 1024)"> Kb
169 </dtml-if>
170 </dtml-let>
171 <dtml-else>
172 &nbsp;
173 </dtml-if>
174 <dtml-except>
175 &nbsp;
176 </dtml-try>
177 </div>
178 </td>
179
180 <td>
181 <div class="list-item">
182 <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
183 </div>
184 </td>
185 </dtml-with>
186 </tr>
187 </dtml-in>
188 </table>
189
190 <table cellspacing="0" cellpadding="2" border="0">
191 <tr>
192 <td align="left" valign="top" width="16"></td>
193 <td align="left" valign="top">
194 <div class="form-element">
195 <dtml-unless dontAllowCopyAndPaste>
196 <input class="form-element" type="submit" name="manage_renameForm:method"
197 value="Rename" />
198 <input class="form-element" type="submit" name="manage_cutObjects:method"
199 value="Cut" />
200 <input class="form-element" type="submit" name="manage_copyObjects:method"
201 value="Copy" />
202 <dtml-if cb_dataValid>
203 <input class="form-element" type="submit" name="manage_pasteObjects:method"
204 value="Paste" />
205 </dtml-if>
206 </dtml-unless>
207 <dtml-if "_.SecurityCheckPermission('Delete objects',this())">
208 <input class="form-element" type="submit" name="manage_delObjects:method"
209 value="Delete" />
210 </dtml-if>
211 <dtml-if "_.SecurityCheckPermission('Import/Export objects', this())">
212 <input class="form-element" type="submit"
213 name="manage_importExportForm:method"
214 value="Import/Export" />
215 </dtml-if>
216 <script type="text/javascript">
217 <!--
218 if (document.forms[0]) {
219 document.write('<input class="form-element" type="submit" name="selectButton" value="Select All" onClick="toggleSelect(); return false">')
220 }
221 //-->
222 </script>
223 </div>
224 </td>
225 </tr>
226 </table>
227
228 <dtml-else>
229 <table cellspacing="0" cellpadding="2" border="0">
230 <tr>
231 <td>
232 <div class="std-text">
233 There are currently no items in <em>&dtml-title_or_id;</em>
234 <br /><br />
235 </div>
236 <dtml-unless dontAllowCopyAndPaste>
237 <dtml-if cb_dataValid>
238 <div class="form-element">
239 <input class="form-element" type="submit" name="manage_pasteObjects:method"
240 value="Paste" />
241 </div>
242 </dtml-if>
243 </dtml-unless>
244 <dtml-if "_.SecurityCheckPermission('Import/Export objects', this())">
245 <input class="form-element" type="submit"
246 name="manage_importExportForm:method" value="Import/Export" />
247 </dtml-if>
248 </td>
249 </tr>
250 </table>
251 </dtml-if>
252 </form>
253
254 <dtml-if update_menu>
255 <script type="text/javascript">
256 <!--
257 window.parent.update_menu();
258 //-->
259 </script>
260 </dtml-if>
261
262 <dtml-var manage_page_footer>
263
264
265
266
267
268
269
270
271
272
273
274
275