Commit | Line | Data |
---|---|---|
f5d30ab9 TC |
1 | <html> |
2 | <head> | |
3 | ||
4 | <title> | |
918735d1 | 5 | Administration - <: ifNew :>New<: or :>Edit<: eif :> <:articleType:> |
f5d30ab9 TC |
6 | </title> |
7 | ||
8 | <link rel="stylesheet" type="text/css" href="/css/admin.css"> | |
9 | ||
10 | </head> | |
11 | ||
12 | <body> | |
35c0719f TC |
13 | <h1>Administration Page</h1> |
14 | <:ifMessage:> | |
15 | <p><b><:message:></b></p> | |
918735d1 TC |
16 | <:or:><:eif:> |
17 | <p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:ifNew:><:or:><:if Eq | |
18 | [article id] [cfg articles shop]:><a href="<:article admin:>">See shop</a><:or | |
19 | Eq:><a href="<:article admin:>">See article</a><:eif Eq:> | <:eif:><:editParent:> | |
20 | <:if Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/shopadmin.pl">Manage | |
21 | catalogs</a> |<:or Eq:><:eif Eq:><:if New:><:or New:> <a href="<:script:>?id=<:article id:>&_t=steps">Manage | |
759c295d | 22 | step children/parents</a> | <!--//<a href="<:script:>?id=<:article id:>&_t=options">Edit options</a> |//--><:eif New:></p> |
f5d30ab9 TC |
23 | |
24 | <h2><:articleType:> Details</h2> | |
25 | ||
8b0b2f34 TC |
26 | <p>Path: / <a href="<:script:>?id=-1">(Sections)</a> <:iterator begin crumbs:>/ <a href="<:script:>?id=<:crumb id:>"><:crumb title |h:></a> <:iterator end crumbs:>/</p> |
27 | ||
918735d1 | 28 | <:ifNew:><:or:> |
abf5bbc6 TC |
29 | <:if Or [iadminuser_count] [iadmingroup_count]:> |
30 | <form action="/cgi-bin/admin/adminusers.pl"> | |
31 | <input type=hidden name=id value="<: article id:>"> | |
32 | <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table"> | |
33 | <tr> | |
34 | <td> | |
35 | <table cellpadding="6" cellspacing="1" border="0" width="100%"> | |
36 | <tr> | |
37 | <th nowrap> | |
38 | ||
39 | <font size=2>Manage access:</font> | |
40 | </th> | |
41 | <td bgcolor="#FFFFFF"> | |
42 | <select name=adminid> | |
08123550 TC |
43 | <:iterator begin adminusers:> |
44 | <option value=<:iadminuser id:>>User <:iadminuser logon:> | |
45 | <:iterator end adminusers:> | |
46 | <:iterator begin admingroups:> | |
47 | <option value=<:iadmingroup id:>>Group <:iadmingroup name:> | |
48 | <:iterator end admingroups:> | |
abf5bbc6 TC |
49 | </select> |
50 | <input type=submit name="a_showobjectart" value="Manage"> | |
51 | </td> | |
52 | <td bgcolor="#FFFFFF"><:help access manage:> | |
53 | </td> | |
54 | </tr> | |
55 | </table> | |
56 | </td> | |
57 | </tr> | |
58 | </table> | |
59 | </form> | |
60 | <br> | |
61 | <:or Or:><:eif Or:> | |
62 | <:eif:> | |
dded3231 TC |
63 | <form enctype="multipart/form-data" method="POST" action="<:script:>"> |
64 | ||
27feb834 | 65 | <input type="hidden" name="level" value="<: level :>"> |
d4def4c6 | 66 | <input type="hidden" name="id" value="<: article id :>"> |
35c0719f TC |
67 | |
68 | <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" width="100%" class="table"> | |
f5d30ab9 TC |
69 | <tr> |
70 | <td> | |
71 | ||
27feb834 | 72 | <table cellpadding="6" border="0" cellspacing="1" width="100%"> |
80e6a095 | 73 | <tr> |
759c295d | 74 | <th nowrap bgcolor="#FFFFFF" align="left">Parent:</th> |
27feb834 | 75 | <td bgcolor="#FFFFFF" width="100%"> |
abf5bbc6 | 76 | <:if FieldPerm parentid:><select name="parentid"> |
ca9aa2bf | 77 | <option value="">Please select a <:parentType:><: list:> |
abf5bbc6 | 78 | </select><:or FieldPerm:><:parent title:> (<:parent id:>)<:eif FieldPerm:> |
80e6a095 | 79 | </td> |
429e9103 | 80 | <td nowrap bgcolor="#FFFFFF"><:help edit section:> <:error_img parentid:></td> |
80e6a095 | 81 | </tr> |
f5d30ab9 | 82 | <tr> |
759c295d | 83 | <th nowrap bgcolor="#FFFFFF" align="left">Title: |
9fae8be7 | 84 | </th> |
27feb834 | 85 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 TC |
86 | <:ifFieldPerm title:><input type="text" name="title" maxlength="<:cfg fields title_size 255:>" size="64" value="<: old title article title :>"> |
87 | <:or:><:default title:><:eif:></td> | |
88 | <td nowrap bgcolor="#FFFFFF"><:help edit title:> <:error_img title:></td> | |
f5d30ab9 | 89 | </tr> |
759c295d TC |
90 | <:if Cfg image title:><tr> |
91 | <th nowrap bgcolor="#FFFFFF" align="left">Title image:</th> | |
abf5bbc6 TC |
92 | <td bgcolor="#FFFFFF" width="100%"><:ifFieldPerm titleImage:><:titleImages:> (upload this to |
93 | the /images/titles directory)<:or:><:article titleImage:><:eif:></td> | |
429e9103 | 94 | <td nowrap bgcolor="#FFFFFF"><:help edit titleImage:> <:error_img titleImage:></td> |
759c295d | 95 | </tr><:or Cfg:><:eif Cfg:> |
f5d30ab9 | 96 | <tr> |
9fae8be7 | 97 | <th valign="top" nowrap bgcolor="#FFFFFF" align="left"> Body: </th> |
27feb834 | 98 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 TC |
99 | <:ifFieldPerm body:><textarea name="body" rows="10" cols="60" wrap="virtual"><: old body article body :></textarea> |
100 | <:or:><:bodytext article body:><:eif:> | |
f5d30ab9 | 101 | </td> |
429e9103 | 102 | <td valign="top" nowrap bgcolor="#FFFFFF"><:help body body:> <:error_img body:></td> |
f5d30ab9 TC |
103 | </tr> |
104 | <tr> | |
759c295d TC |
105 | <th nowrap bgcolor="#FFFFFF" align="left">Template:</th> |
106 | <td bgcolor="#FFFFFF" width="100%"><:ifFieldPerm template:> <:templates:><:or:><:article template:><:eif:> </td> | |
429e9103 | 107 | <td nowrap bgcolor="#FFFFFF"><:help edit template:> <:error_img template:></td> |
759c295d TC |
108 | </tr> |
109 | <tr> | |
110 | <th nowrap bgcolor="#FFFFFF" align="left">List article:</th> | |
111 | <td bgcolor="#FFFFFF" width="100%"> <:if FieldPerm listed:><:list listed:><:or FieldPerm:><:if Article listed:><:ifEq [article listed] "1":>Yes<:or:>In Sections, but not menu<:eif:><:or Article:>No<:eif Article:><:eif FieldPerm:> </td> | |
429e9103 | 112 | <td nowrap bgcolor="#FFFFFF"><:help edit listed:> <:error_img listed:></td> |
759c295d TC |
113 | </tr> |
114 | <tr> | |
77804754 | 115 | <th valign="top" nowrap bgcolor="#FFFFFF" align="left">Flags:</th> |
759c295d TC |
116 | <td bgcolor="#FFFFFF" width="100%"><:iterator begin flags:><:if FieldPerm flags:> |
117 | <input type=checkbox name=flags value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:> | |
118 | <:eif:>><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:> | |
cc9019d1 | 119 | <:eif FieldPerm:><:flag desc:><:iterator separator flags:><br /><:iterator end flags:></td> |
429e9103 | 120 | <td nowrap bgcolor="#FFFFFF"><:help edit flags:> <:error_img flags:></td> |
759c295d TC |
121 | </tr> |
122 | <tr> | |
123 | <th nowrap bgcolor="#FFFFFF" align="left">Release date:</th> | |
27feb834 | 124 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 | 125 | <:if FieldPerm release:><input type="text" name="release" value="<: old release date "%d/%m/%Y" article release :>" size="10" maxlength="10"> |
918735d1 | 126 | (dd/mm/yyyy<: ifNew :> - default is today<: or :><: eif :>)<:or FieldPerm:><: date "%d/%m/%Y" article release :><:eif FieldPerm:></td> |
429e9103 | 127 | <td nowrap bgcolor="#FFFFFF"><:help edit release:> <:error_img release:></td> |
f5d30ab9 TC |
128 | </tr> |
129 | <tr> | |
759c295d | 130 | <th nowrap bgcolor="#FFFFFF" align="left">Expiry date:</th> |
27feb834 | 131 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 | 132 | <:if FieldPerm expire:><input type="text" name="expire" value="<: old expire date "%d/%m/%Y" article expire :>" size="10" maxlength="10"> |
918735d1 | 133 | (dd/mm/yyyy - <: ifNew :>default is never, <: or :><: eif :>blank |
abf5bbc6 | 134 | for never expires)<:or FieldPerm:><: date "%d/%m/%Y" article expire :><:eif FieldPerm:></td> |
429e9103 | 135 | <td nowrap bgcolor="#FFFFFF"><:help edit expire:> <:error_img expire:></td> |
f5d30ab9 TC |
136 | </tr> |
137 | <tr> | |
759c295d | 138 | <th nowrap bgcolor="#FFFFFF" align="left">Summary length:</th> |
27feb834 | 139 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 | 140 | <:if FieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<: old summaryLength article summaryLength :>"> |
918735d1 | 141 | (in characters - <: ifNew :>default inherited from <:parentType:>, <: or :><: eif :> |
abf5bbc6 | 142 | zero for no summary)<:or FieldPerm:><: article summaryLength :><:eif FieldPerm:></td> |
429e9103 | 143 | <td nowrap bgcolor="#FFFFFF"><:help edit summary:> <:error_img summaryLength:></td> |
f5d30ab9 TC |
144 | </tr> |
145 | <tr> | |
759c295d | 146 | <th nowrap bgcolor="#FFFFFF" align="left">Display threshold:</th> |
27feb834 | 147 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 | 148 | <:ifFieldPerm threshold:><input type="text" name="threshold" size="10" maxlength="10" value="<: old threshold article threshold :>"><:or:><: article threshold :><:eif:> |
f5d30ab9 | 149 | </td> |
429e9103 TC |
150 | <td nowrap bgcolor="#FFFFFF"><:help edit threshold:> <:error_img |
151 | threshold:></td> | |
f5d30ab9 TC |
152 | </tr> |
153 | <tr> | |
759c295d | 154 | <th nowrap bgcolor="#FFFFFF" align="left">Keywords:</th> |
27feb834 | 155 | <td bgcolor="#FFFFFF" width="100%"> |
429e9103 | 156 | <:ifFieldPerm keyword:><input type="text" name="keyword" maxlength="255" size="60" value="<: old keyword article keyword :>"> |
abf5bbc6 | 157 | (comma separated)<:or:><: article threshold :><:eif:></td> |
429e9103 | 158 | <td nowrap bgcolor="#FFFFFF"><:help edit keywords:> <:error_img keyword:></td> |
918735d1 | 159 | </tr> |
331fd099 | 160 | <:include admin/article_custom.tmpl:> |
f5d30ab9 | 161 | <tr> |
35c0719f | 162 | <th nowrap bgcolor="#FFFFFF" align="left" valign="top">Thumbnail image:</th> |
429e9103 TC |
163 | <td width="100%" valign="top" bgcolor="#FFFFFF"> |
164 | <:ifFieldPerm thumbImage:> | |
165 | <input type=file name=thumbnail><:or:><:eif:> | |
27feb834 | 166 | <:ifArticle thumbImage:><img src="/images/<:article thumbImage:>"> |
abf5bbc6 | 167 | <:if FieldPerm thumbImage:><input type=checkbox name="remove_thumb"> |
429e9103 TC |
168 | Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:></td> |
169 | <td valign="top" nowrap bgcolor="#FFFFFF"><:help edit thumb:> <:error_img | |
170 | thumbImage:></td> | |
f5d30ab9 | 171 | </tr> |
27feb834 TC |
172 | <:if Article id:> |
173 | <tr> | |
35c0719f | 174 | <th nowrap bgcolor="#FFFFFF" align="left" valign="top"><a name="files"></a>Files:</th> |
27feb834 TC |
175 | <td nowrap bgcolor="#FFFFFF" width="100%"> <:if Files:> |
176 | <table cellpadding="0" cellspacing="0" border="0" bgcolor="#333333"> | |
abf5bbc6 TC |
177 | <tr> |
178 | <td> | |
27feb834 TC |
179 | <table cellpadding="5" cellspacing="1" border="0"> |
180 | <tr bgcolor="#FFFFFF"> | |
181 | <th>Filename</th> | |
182 | <th>Size</th> | |
183 | <th>Type</th> | |
35c0719f TC |
184 | <th>D/l</th> |
185 | <th>Pay</th> | |
186 | <th>User</th> | |
187 | </tr> | |
188 | <:iterator begin files:> | |
27feb834 TC |
189 | <tr bgcolor="#FFFFFF"> |
190 | <td><:file displayName:></td> | |
35c0719f | 191 | <td align="center"><:kb file sizeInBytes:></td> |
27feb834 TC |
192 | <td><:file contentType:></td> |
193 | <td align=center><:ifFile download:>Yes<:or:>No<:eif:></td> | |
194 | <td align=center><:ifFile forSale:>Yes<:or:>No<:eif:></td> | |
35c0719f TC |
195 | <td align=center><:ifFile requireUser:>Yes<:or:>No<:eif:></td> |
196 | </tr> | |
197 | <:iterator end files:> | |
198 | </table> | |
abf5bbc6 TC |
199 | </td> |
200 | </tr> | |
201 | </table> | |
cc9019d1 | 202 | <p><a href="<:script:>?id=<:article id:>&_t=file"><b>Manage Files</b></a> |
caa7299c TC |
203 | </p> |
204 | <:or Files:> | |
cc9019d1 | 205 | <p>No files are attached to this article. <a href="<:script:>?id=<:article id:>&_t=file"><b>Manage Files</b></a></p> |
abf5bbc6 | 206 | <:eif Files:> |
4afdbb1b | 207 | </td> |
429e9103 TC |
208 | <td nowrap bgcolor="#FFFFFF" valign="top"><:help edit files:> <:error_img |
209 | files:></td> | |
4afdbb1b | 210 | </tr> |
f5d30ab9 | 211 | <tr> |
759c295d | 212 | <th valign="top" nowrap bgcolor="#FFFFFF" align="left">Images: |
9fae8be7 | 213 | </th> |
15fb10f2 | 214 | <td align="center" bgcolor="#FFFFFF" width="100%"><:if Images:> <:iterator begin |
27feb834 TC |
215 | images:> <img src="/images/<: image image :>" alt="<:image alt :>" width= |
216 | <:image width:> height=<:image height:>> <:iterator separator images:> | |
f5d30ab9 | 217 | <hr noshade size="1"> |
15fb10f2 | 218 | <: iterator end images :> |
cc9019d1 | 219 | <p align="left"><a href="<:script:>?id=<:article id:>&_t=img"><b>Manage Images</b></a></p> |
abf5bbc6 | 220 | <:or Images:> |
cc9019d1 | 221 | <p align="left">No images are attached to this article. <a href="<:script:>?id=<:article id:>&_t=img"><b>Manage Images</b></a></p> |
abf5bbc6 | 222 | <:eif Images:> |
55753022 | 223 | </td> |
429e9103 TC |
224 | <td valign="top" nowrap bgcolor="#FFFFFF"><:help edit images:> <:error_img |
225 | images:></td> | |
35c0719f | 226 | </tr> |
ca9aa2bf | 227 | <:or Article:><:eif Article:> |
f5d30ab9 TC |
228 | </table> |
229 | </td> | |
230 | </tr> | |
231 | </table> | |
232 | ||
918735d1 | 233 | <p><: ifNew :> |
abf5bbc6 TC |
234 | <input type="submit" name="save" value=" Add New <: articleType:> "> |
235 | <:or:> | |
1df3b258 | 236 | <:if UserCan edit_save:article:><input type="submit" name="save" value=" Update <: articleType:> "><:or UserCan:><:eif UserCan:> |
abf5bbc6 | 237 | <:eif:></p> |
f5d30ab9 | 238 | </form> |
918735d1 | 239 | <:if children:> <:ifEq [article id] [cfg articles shop]:> |
35c0719f TC |
240 | <h2>Catalogs</h2> |
241 | <:or:> | |
242 | <h2><: childtype :></h2> | |
243 | <:eif:><a name="children"></a> | |
244 | <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" width="100%" class="table"> | |
27feb834 | 245 | <tr> |
f5d30ab9 | 246 | <td> |
27feb834 TC |
247 | <table border=0 cellpadding="6" cellspacing="1" width="100%"> |
248 | <tr bgcolor="#FFFFFF"> | |
9fae8be7 TC |
249 | <th width="30%">Title</th> |
250 | <th width="70%">Summary</th> | |
1d8d4a4a | 251 | <th>Listed</th> |
9fae8be7 | 252 | <th nowrap>Modify</th> |
918735d1 | 253 | <th nowrap>Move</th> |
1d8d4a4a | 254 | </tr> |
1df3b258 | 255 | <:if UserCan edit_reorder_children:article:> |
1d8d4a4a | 256 | <tr> |
759c295d | 257 | <td colspan="5" bgcolor="#FFFFFF">Sort by: <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=title&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">title</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&sort=date&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">date</a> | <a href="/cgi-bin/admin/reorder.pl?parentid=<:article id:>&reverse=1&refreshto=/cgi-bin/admin/add.pl?id=<:article id:>">reverse</a></td> |
1d8d4a4a | 258 | </tr> |
abf5bbc6 | 259 | <:or UserCan:><:eif UserCan:> |
1d8d4a4a | 260 | <:iterator begin children:> |
f5d30ab9 | 261 | <tr bgcolor="#FFFFFF"> |
9fae8be7 TC |
262 | <td width="30%"><a href="<:child admin:>"><:child title:></a></td> |
263 | <td width="70%"><: summary child body :></td> | |
f5d30ab9 | 264 | <td align="center"><: is child listed :></td> |
9fae8be7 | 265 | <td nowrap> <a href="/cgi-bin/admin/add.pl?id=<:child id:>">Edit</a> |
918735d1 TC |
266 | <:if UserCan edit_delete_article:child:><a href="/cgi-bin/admin/add.pl?id=<:child id:>&remove=1" onClick="return window.confirm('Are you sure you want to delete this <:ifEq [article id] 3:>Catalog<:or:><: childtype :><:eif:>')">Delete</a><:or UserCan:><:eif UserCan:></td> |
267 | <td nowrap><:movechild:></td> | |
99ef7979 TC |
268 | </tr> |
269 | <:iterator separator children:> <:iterator end children:> | |
270 | </table> | |
f5d30ab9 TC |
271 | </td> |
272 | </tr> | |
273 | </table> | |
274 | <:or children:> | |
275 | <:eif children:> | |
276 | <:if HaveChildType:> | |
918735d1 TC |
277 | <:if New:> |
278 | <:or New:> | |
1df3b258 | 279 | <:if UserCan edit_add_child:article:><form action="/cgi-bin/admin/add.pl"> |
f5d30ab9 | 280 | <input type=hidden name="parentid" value="<:article id:>"> |
35c0719f | 281 | <p> |
918735d1 | 282 | <input type=submit value="Add <:ifEq [article id] [cfg articles shop]:>Catalog<:or:><: childtype :><:eif:>"> |
35c0719f | 283 | </p> |
abf5bbc6 | 284 | </form><:or UserCan:><:eif UserCan:> |
918735d1 | 285 | <:eif New:> <:or HaveChildType:> <:eif HaveChildType:> |
d2730773 | 286 | <p><font size="-1">BSE Release <:release:></font></p> |
721cd24c | 287 | </body></html> |