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