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