0.12_23 commit
[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
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
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>
759c295d 72 <th nowrap bgcolor="#FFFFFF" align="left">Parent:</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>
759c295d 81 <th nowrap bgcolor="#FFFFFF" align="left">Title:
9fae8be7 82 </th>
27feb834 83 <td bgcolor="#FFFFFF" width="100%">
759c295d
TC
84 <:ifFieldPerm title:><input type="text" name="title" maxlength="<:cfg fields title_size 255:>" size="64" value="<: article title :>"><:or:><:default title:><:eif:></td>
85 <td bgcolor="#FFFFFF"><:help edit title:> <:error_img title:></td>
f5d30ab9 86 </tr>
759c295d
TC
87 <:if Cfg image title:><tr>
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>
759c295d 92 </tr><:or Cfg:><:eif Cfg:>
f5d30ab9 93 <tr>
9fae8be7 94 <th valign="top" nowrap bgcolor="#FFFFFF" align="left"> Body: </th>
27feb834 95 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 96 <:ifFieldPerm body:><textarea name="body" rows="10" cols="60" wrap="virtual"><: article body :></textarea><:or:><:bodytext article body:><:eif:>
f5d30ab9 97 </td>
35c0719f 98 <td bgcolor="#FFFFFF" valign="top"><:help body body:> </td>
f5d30ab9
TC
99 </tr>
100 <tr>
759c295d
TC
101 <th nowrap bgcolor="#FFFFFF" align="left">Template:</th>
102 <td bgcolor="#FFFFFF" width="100%"><:ifFieldPerm template:> <:templates:><:or:><:article template:><:eif:> </td>
103 <td bgcolor="#FFFFFF"><:help edit template:> </td>
104 </tr>
105 <tr>
106 <th nowrap bgcolor="#FFFFFF" align="left">List article:</th>
107 <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>
108 <td bgcolor="#FFFFFF"><:help edit listed:></td>
109 </tr>
110 <tr>
111 <th nowrap bgcolor="#FFFFFF" align="left">Flags:</th>
112 <td bgcolor="#FFFFFF" width="100%"><:iterator begin flags:><:if FieldPerm flags:>
113 <input type=checkbox name=flags value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:>
114 <:eif:>><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:>
115 <:eif FieldPerm:><:flag desc:><:iterator end flags:></td>
116 <td bgcolor="#FFFFFF"><:help edit listed:></td>
117 </tr>
118 <tr>
119 <th nowrap bgcolor="#FFFFFF" align="left">Release date:</th>
27feb834 120 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 121 <:if FieldPerm release:><input type="text" name="release" value="<: date "%d/%m/%Y" article release :>" size="10" maxlength="10">
918735d1 122 (dd/mm/yyyy<: ifNew :> - default is today<: or :><: eif :>)<:or FieldPerm:><: date "%d/%m/%Y" article release :><:eif FieldPerm:></td>
27feb834 123 <td bgcolor="#FFFFFF"><:help edit release:></td>
f5d30ab9
TC
124 </tr>
125 <tr>
759c295d 126 <th nowrap bgcolor="#FFFFFF" align="left">Expiry date:</th>
27feb834 127 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 128 <:if FieldPerm expire:><input type="text" name="expire" value="<: date "%d/%m/%Y" article expire :>" size="10" maxlength="10">
918735d1 129 (dd/mm/yyyy - <: ifNew :>default is never, <: or :><: eif :>blank
abf5bbc6 130 for never expires)<:or FieldPerm:><: date "%d/%m/%Y" article expire :><:eif FieldPerm:></td>
27feb834 131 <td bgcolor="#FFFFFF"><:help edit expire:></td>
f5d30ab9
TC
132 </tr>
133 <tr>
759c295d 134 <th nowrap bgcolor="#FFFFFF" align="left">Summary length:</th>
27feb834 135 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 136 <:if FieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<: article summaryLength :>">
918735d1 137 (in characters - <: ifNew :>default inherited from <:parentType:>, <: or :><: eif :>
abf5bbc6 138 zero for no summary)<:or FieldPerm:><: article summaryLength :><:eif FieldPerm:></td>
35c0719f 139 <td bgcolor="#FFFFFF"><:help edit summary:></td>
f5d30ab9
TC
140 </tr>
141 <tr>
759c295d 142 <th nowrap bgcolor="#FFFFFF" align="left">Display threshold:</th>
27feb834 143 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 144 <:ifFieldPerm threshold:><input type="text" name="threshold" size="10" maxlength="10" value="<: article threshold :>"><:or:><: article threshold :><:eif:>
f5d30ab9 145 </td>
27feb834 146 <td bgcolor="#FFFFFF"><:help edit threshold:> </td>
f5d30ab9
TC
147 </tr>
148 <tr>
759c295d 149 <th nowrap bgcolor="#FFFFFF" align="left">Keywords:</th>
27feb834 150 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6
TC
151 <:ifFieldPerm keyword:><input type="text" name="keyword" maxlength="255" size="60" value="<: article keyword :>">
152 (comma separated)<:or:><: article threshold :><:eif:></td>
759c295d 153 <td bgcolor="#FFFFFF"><:help edit keywords:></td>
918735d1 154 </tr>
f5d30ab9 155 <tr>
35c0719f 156 <th nowrap bgcolor="#FFFFFF" align="left" valign="top">Thumbnail image:</th>
27feb834 157 <td bgcolor="#FFFFFF" width="100%">
abf5bbc6 158 <:ifFieldPerm thumbImage:><input type=file name=thumbnail><:or:><:eif:>
27feb834 159 <:ifArticle thumbImage:><img src="/images/<:article thumbImage:>">
abf5bbc6
TC
160 <:if FieldPerm thumbImage:><input type=checkbox name="remove_thumb">
161 Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:></td>
35c0719f 162 <td bgcolor="#FFFFFF" valign="top"><:help edit thumb:></td>
f5d30ab9 163 </tr>
27feb834
TC
164 <:if Article id:>
165 <tr>
35c0719f 166 <th nowrap bgcolor="#FFFFFF" align="left" valign="top"><a name="files"></a>Files:</th>
27feb834
TC
167 <td nowrap bgcolor="#FFFFFF" width="100%"> <:if Files:>
168 <table cellpadding="0" cellspacing="0" border="0" bgcolor="#333333">
abf5bbc6
TC
169 <tr>
170 <td>
27feb834
TC
171 <table cellpadding="5" cellspacing="1" border="0">
172 <tr bgcolor="#FFFFFF">
173 <th>Filename</th>
174 <th>Size</th>
175 <th>Type</th>
35c0719f
TC
176 <th>D/l</th>
177 <th>Pay</th>
178 <th>User</th>
179 </tr>
180 <:iterator begin files:>
27feb834
TC
181 <tr bgcolor="#FFFFFF">
182 <td><:file displayName:></td>
35c0719f 183 <td align="center"><:kb file sizeInBytes:></td>
27feb834
TC
184 <td><:file contentType:></td>
185 <td align=center><:ifFile download:>Yes<:or:>No<:eif:></td>
186 <td align=center><:ifFile forSale:>Yes<:or:>No<:eif:></td>
35c0719f
TC
187 <td align=center><:ifFile requireUser:>Yes<:or:>No<:eif:></td>
188 </tr>
189 <:iterator end files:>
190 </table>
abf5bbc6
TC
191 </td>
192 </tr>
193 </table>
caa7299c
TC
194 <p><a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a>
195 </p>
196 <:or Files:>
abf5bbc6
TC
197 <p>No files are attached to this article. <a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a></p>
198 <:eif Files:>
4afdbb1b 199 </td>
35c0719f 200 <td nowrap bgcolor="#FFFFFF" valign="top"><:help edit files:></td>
4afdbb1b 201 </tr>
f5d30ab9 202 <tr>
759c295d 203 <th valign="top" nowrap bgcolor="#FFFFFF" align="left">Images:
9fae8be7 204 </th>
15fb10f2 205 <td align="center" bgcolor="#FFFFFF" width="100%"><:if Images:> <:iterator begin
27feb834
TC
206 images:> <img src="/images/<: image image :>" alt="<:image alt :>" width=
207 <:image width:> height=<:image height:>> <:iterator separator images:>
f5d30ab9 208 <hr noshade size="1">
15fb10f2
TC
209 <: iterator end images :>
210 <p align="left"><a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
abf5bbc6
TC
211 <:or Images:>
212 <p align="left">No images are attached to this article. <a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
213 <:eif Images:>
55753022 214 </td>
35c0719f
TC
215 <td bgcolor="#FFFFFF" valign="top"><:help edit images:> </td>
216 </tr>
ca9aa2bf 217 <:or Article:><:eif Article:>
f5d30ab9
TC
218 </table>
219</td>
220</tr>
221</table>
222
918735d1 223 <p><: ifNew :>
abf5bbc6
TC
224 <input type="submit" name="save" value=" Add New <: articleType:> ">
225 <:or:>
1df3b258 226 <:if UserCan edit_save:article:><input type="submit" name="save" value=" Update <: articleType:> "><:or UserCan:><:eif UserCan:>
abf5bbc6 227 <:eif:></p>
f5d30ab9 228 </form>
918735d1 229<:if children:> <:ifEq [article id] [cfg articles shop]:>
35c0719f
TC
230<h2>Catalogs</h2>
231<:or:>
232<h2><: childtype :></h2>
233<:eif:><a name="children"></a>
234<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" width="100%" class="table">
27feb834 235 <tr>
f5d30ab9 236 <td>
27feb834
TC
237 <table border=0 cellpadding="6" cellspacing="1" width="100%">
238 <tr bgcolor="#FFFFFF">
9fae8be7
TC
239 <th width="30%">Title</th>
240 <th width="70%">Summary</th>
1d8d4a4a 241 <th>Listed</th>
9fae8be7 242 <th nowrap>Modify</th>
918735d1 243 <th nowrap>Move</th>
1d8d4a4a 244 </tr>
1df3b258 245<:if UserCan edit_reorder_children:article:>
1d8d4a4a 246 <tr>
759c295d 247 <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 248 </tr>
abf5bbc6 249<:or UserCan:><:eif UserCan:>
1d8d4a4a 250 <:iterator begin children:>
f5d30ab9 251 <tr bgcolor="#FFFFFF">
9fae8be7
TC
252 <td width="30%"><a href="<:child admin:>"><:child title:></a></td>
253 <td width="70%"><: summary child body :></td>
f5d30ab9 254 <td align="center"><: is child listed :></td>
9fae8be7 255 <td nowrap> <a href="/cgi-bin/admin/add.pl?id=<:child id:>">Edit</a>
918735d1
TC
256 <: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>
257 <td nowrap><:movechild:></td>
99ef7979
TC
258 </tr>
259 <:iterator separator children:> <:iterator end children:>
260 </table>
f5d30ab9
TC
261</td>
262</tr>
263</table>
264<:or children:>
265<:eif children:>
266<:if HaveChildType:>
918735d1
TC
267<:if New:>
268<:or New:>
1df3b258 269<:if UserCan edit_add_child:article:><form action="/cgi-bin/admin/add.pl">
f5d30ab9 270<input type=hidden name="parentid" value="<:article id:>">
35c0719f 271 <p>
918735d1 272 <input type=submit value="Add <:ifEq [article id] [cfg articles shop]:>Catalog<:or:><: childtype :><:eif:>">
35c0719f 273 </p>
abf5bbc6 274</form><:or UserCan:><:eif UserCan:>
918735d1 275<:eif New:> <:or HaveChildType:> <:eif HaveChildType:>
d2730773 276<p><font size="-1">BSE Release <:release:></font></p>
721cd24c 277</body></html>