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