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