0.12_23 commit
[bse.git] / site / templates / admin / edit_product.tmpl
CommitLineData
759c295d 1<html><head><title><:ifNew:>Add<:or:>Edit<:eif:> product - Shop administration</title>
5bc24704
TC
2 <link rel="stylesheet" type="text/css" href="/css/admin.css">
3</head>
4<body>
5<h1>Shop Administration</h1>
35c0719f 6<:ifMessage:>
27feb834
TC
7<p><b><:message:></b></p>
8<:or:><:eif:>
759c295d
TC
9<p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:if New:><:or New:><a href="<:product admin:>">See
10 product</a> | <a href="/cgi-bin/admin/add.pl?id=<:product parentid:>">Edit
11 parent</a>
12 |<:eif New:> <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> |<:if
13 New:><:or New:><:if UserCan edit_save:product,edit_field_edit_listed:product
14 :> <a href="/cgi-bin/admin/add.pl?id=<:product id:>&_t=steps">Manage
15 step parents</a> | <:if Product listed:> <a href="<:script:>?id=<:product id:>&hide=1&r=<:script:>?id=<:product id:>">Hide
16 product</a> |<:or Product:> <a href="<:script:>?id=<:product id:>&unhide=1&r=<:script:>?id=<:product id:>">Show
17 product</a> |<:eif Product:><:or UserCan:><:eif UserCan:><:ifProduct listed:><:or:> Hidden<:eif:><:eif
18 New:></p>
19 <h2>Product Details</h2>
20<:ifNew:><:or:><:if Or [iadminuser_count] [iadmingroup_count]:>
abf5bbc6
TC
21 <form action="/cgi-bin/admin/adminusers.pl">
22 <input type=hidden name=id value="<: article id:>">
23 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
24 <tr>
25 <td>
26 <table cellpadding="6" cellspacing="1" border="0" width="100%">
27 <tr>
28 <th nowrap>
29
30 <font size=2>Manage access:</font>
31 </th>
32 <td bgcolor="#FFFFFF">
33 <select name=adminid>
08123550
TC
34<:iterator begin adminusers:>
35<option value=<:iadminuser id:>>User <:iadminuser logon:>
36<:iterator end adminusers:>
37<:iterator begin admingroups:>
38<option value=<:iadmingroup id:>>Group <:iadmingroup name:>
39<:iterator end admingroups:>
abf5bbc6
TC
40 </select>
41 <input type=submit name="a_showobjectart" value="Manage">
42 </td>
43 <td bgcolor="#FFFFFF"><:help access manage:>
44 </td>
45 </tr>
46 </table>
47 </td>
48 </tr>
49 </table>
50 </form>
51<br>
759c295d 52<:or Or:><:eif Or:><:eif:>
55753022 53<form action="<:script:>" enctype="multipart/form-data" method="POST">
35c0719f 54 <input type="hidden" name="id" value="<:product id:>">
35c0719f 55 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
5bc24704
TC
56 <tr>
57 <td>
27feb834 58 <table border=0 cellpadding="6" cellspacing="1" width="100%">
759c295d 59 <tr>
27feb834 60 <th align="left" bgcolor="#FFFFFF">Catalog:</th>
caa7299c 61 <td bgcolor="#FFFFFF">
abf5bbc6 62<:ifFieldPerm parentid:><select name="parentid"><:list:></select><:or:><:parent title:> (<:parent id:>)<:eif:></td>
35c0719f 63 <td nowrap bgcolor="#FFFFFF"><:help product catalog:></td>
759c295d
TC
64 </tr>
65 <tr>
66 <th align="left" bgcolor="#FFFFFF">Title*:</th>
67 <td bgcolor="#FFFFFF"><:ifFieldPerm title:><input type="text" name="title" value="<:old title:>" size="60"><:or:><:product title:><:eif:> </td>
68 <td nowrap bgcolor="#FFFFFF"><:help product title:> <:error_img title:></td>
5bc24704 69 </tr>
ca9aa2bf 70 <tr>
759c295d
TC
71 <th nowrap align="left" bgcolor="#FFFFFF">Summary*:</th>
72 <td nowrap bgcolor="#FFFFFF"><:ifFieldPerm summary:><input type="text" name="summary" value="<:old summary:>" size=60><:or:><:product summary:><:eif:> </td>
73 <td nowrap bgcolor="#FFFFFF"><:help product summary:> <:error_img
74 summary:></td>
ca9aa2bf 75 </tr>
27feb834 76 <tr>
35c0719f 77 <th align="left" bgcolor="#FFFFFF" valign="top"> Body:</th>
27feb834 78 <td bgcolor="#FFFFFF">
759c295d 79 <:ifFieldPerm body:><textarea name=body rows=15 cols=60 wrap=virtual><:old body product body:></textarea><:or:><:bodytext product body:><:eif:>
5bc24704 80 </td>
35c0719f 81 <td nowrap bgcolor="#FFFFFF" valign="top"><:help body body:></td>
759c295d
TC
82 </tr>
83 <tr>
84 <th nowrap align="left" bgcolor="#FFFFFF">Template:</th>
85 <td nowrap bgcolor="#FFFFFF"><:ifFieldPerm template:><:templates:><:or:><:product template:><:eif:></td>
86 <td nowrap bgcolor="#FFFFFF"><:help product template:></td>
87 </tr>
88 <tr>
89 <th nowrap bgcolor="#FFFFFF" align="left">List article:</th>
90 <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>
91 <td bgcolor="#FFFFFF"><:help edit listed:></td>
92 </tr>
93 <tr>
94 <th nowrap bgcolor="#FFFFFF" align="left">Flags:</th>
95 <td bgcolor="#FFFFFF" width="100%"><:iterator begin flags:><:if FieldPerm flags:>
96 <input type=checkbox name=flags value="<:flag id:>" <:ifFlagSet [flag id]:>checked<:or:>
97 <:eif:>><:or FieldPerm:><:ifFlagSet [flag id]:>Yes<:or:>No<:eif:>
98 <:eif FieldPerm:><:flag desc:><:iterator end flags:></td>
99 <td bgcolor="#FFFFFF"><:help edit listed:></td>
5bc24704
TC
100 </tr>
101 <tr>
27feb834 102 <th nowrap align="left" bgcolor="#FFFFFF">Lead time:</th>
5bc24704 103 <td nowrap bgcolor="#FFFFFF">
759c295d
TC
104 <:ifFieldPerm leadTime:>
105 <input type="text" name="leadTime" value="<:old leadTime:>" size=5><:or:><:product leadTime:><:eif:>
5bc24704 106 days</td>
35c0719f 107 <td nowrap bgcolor="#FFFFFF"><:help product leadtime:></td>
5bc24704
TC
108 </tr>
109 <tr>
27feb834 110 <th align="left" bgcolor="#FFFFFF">Retail price:</th>
5bc24704 111 <td bgcolor="#FFFFFF">$
759c295d
TC
112 <:ifFieldPerm retailPrice:><input type="text" name="retailPrice" value="<:old retailPrice money product retailPrice:>" size=7>
113 (0.00)<:or:><:money product retailPrice:><:eif:> </td>
114 <td nowrap bgcolor="#FFFFFF"><:help product retail:> <:error_img retailPrice:></td>
5bc24704
TC
115 </tr>
116 <tr>
27feb834 117 <th align="left" bgcolor="#FFFFFF">Wholesale price:</th>
5bc24704 118 <td bgcolor="#FFFFFF">$
759c295d 119 <:ifFieldPerm wholesalePrice:><input type="text" name="wholesalePrice" value="<:old wholesalePrice money product wholesalePrice:>" size=7>
abf5bbc6 120 (0.00)<:or:><:money product wholesalePrice:><:eif:></td>
759c295d 121 <td nowrap bgcolor="#FFFFFF"><:help product wholesale:> <:error_img wholesalePrice:></td>
5bc24704
TC
122 </tr>
123 <tr>
27feb834 124 <th align="left" bgcolor="#FFFFFF">GST:</th>
5bc24704 125 <td bgcolor="#FFFFFF">$
759c295d 126 <:ifFieldPerm gst:><input type="text" name="gst" value="<:old gst money product gst:>" size=7>
abf5bbc6 127 (0.00)<:or:><:money product gst:><:eif:></td>
759c295d 128 <td nowrap bgcolor="#FFFFFF"><:help product gst:> <:error_img gst:></td>
5bc24704
TC
129 </tr>
130 <tr>
27feb834 131 <th align="left" bgcolor="#FFFFFF">Release date:</th>
5bc24704 132 <td bgcolor="#FFFFFF">
759c295d 133 <:ifFieldPerm release:><input type="text" name="release" value="<:old release date "%d/%m/%Y" product release:>" size=11>
abf5bbc6 134 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product release:><:eif:></td>
35c0719f 135 <td nowrap bgcolor="#FFFFFF"><:help product release:></td>
5bc24704
TC
136 </tr>
137 <tr>
27feb834 138 <th align="left" bgcolor="#FFFFFF">Expiry date:</th>
5bc24704 139 <td bgcolor="#FFFFFF">
759c295d 140 <:ifFieldPerm expire:><input type="text" name="expire" value="<:old expire date "%d/%m/%Y" product expire:>" size=11>
abf5bbc6 141 (dd/mm/yyyy)<:or:><:date "%d/%m/%Y" product expire:><:eif:></td>
35c0719f 142 <td nowrap bgcolor="#FFFFFF"><:help product expire:></td>
5bc24704 143 </tr>
26094672
TC
144 <tr>
145 <th nowrap align="left" bgcolor="#FFFFFF">Summary length:</th>
146 <td nowrap bgcolor="#FFFFFF">
759c295d 147 <:ifFieldPerm summaryLength:><input type="text" name="summaryLength" size="10" maxlength="10" value="<:old summaryLength product summaryLength:>"><:or:><:product summaryLength:><:eif:>
26094672 148 </td>
35c0719f 149 <td nowrap bgcolor="#FFFFFF"><:help product summary:></td>
26094672
TC
150 </tr>
151 <tr>
152 <th nowrap align="left" bgcolor="#FFFFFF">Display threshold:</th>
153 <td nowrap bgcolor="#FFFFFF">
759c295d 154 <:ifFieldPerm threshold:><input type="text" name="threshold" size=10 maxlength=10 value="<:old threshold product threshold:>"><:or:><:product threshold:><:eif:>
35c0719f
TC
155 </td>
156 <td nowrap bgcolor="#FFFFFF"><:help product threshold:></td>
26094672 157 </tr>
a11a0d7c 158 <tr>
27feb834 159 <th align="left" bgcolor="#FFFFFF">Options:</th>
a11a0d7c 160 <td bgcolor="#FFFFFF">
759c295d 161 <:ifFieldPerm options:><input type="text" name="options" value="<:old options product options:>" size=30>
abf5bbc6 162 (<:alloptions:>)<:or:><:product options:><:eif:> </td>
35c0719f 163 <td bgcolor="#FFFFFF"><:help product options:></td>
a11a0d7c 164 </tr>
27feb834 165 <tr>
35c0719f 166 <th nowrap align="left" bgcolor="#FFFFFF" valign="top">Thumbnail image:</th>
27feb834 167 <td nowrap bgcolor="#FFFFFF">
abf5bbc6 168 <:ifFieldPerm thumbImage:><input type="file" name="thumbnail"><:or:><:eif:>
35c0719f 169 <:ifProduct thumbImage:><img src="/images/<:product thumbImage:>">
abf5bbc6
TC
170 <:if FieldPerm thumbImage:><input type=checkbox name="remove_thumb">
171 Remove<:or FieldPerm:><:eif FieldPerm:><:or:><:eif:> </td>
35c0719f 172 <td nowrap bgcolor="#FFFFFF" valign="top"><:help product thumb:></td>
5bc24704 173 </tr>
759c295d 174 <:if Article id:>
27feb834 175 <tr>
35c0719f 176 <th nowrap align="left" bgcolor="#FFFFFF" valign="top"><a name="files"></a>Files:</th>
caa7299c 177 <td nowrap bgcolor="#FFFFFF"> <:if Files:>
27feb834 178 <table cellpadding="0" cellspacing="0" border="0" bgcolor="#333333">
35c0719f 179 <tr>
27feb834
TC
180 <td>
181 <table cellpadding="5" cellspacing="1" border="0">
182 <tr bgcolor="#FFFFFF">
183 <th>Filename</th>
184 <th>Size</th>
185 <th>Type</th>
35c0719f
TC
186 <th>D/l</th>
187 <th>Pay</th>
188 <th>User</th>
27feb834
TC
189 </tr>
190 <:iterator begin files:>
191 <tr bgcolor="#FFFFFF">
192 <td><:file displayName:></td>
35c0719f 193 <td align="center"><:kb file sizeInBytes:></td>
27feb834
TC
194 <td><:file contentType:></td>
195 <td align=center><:ifFile download:>Yes<:or:>No<:eif:></td>
35c0719f
TC
196 <td align=center><:ifFile forSale:>Yes<:or:>No<:eif:></td>
197 <td align=center><:ifFile requireUser:>Yes<:or:>No<:eif:></td>
27feb834
TC
198 </tr>
199 <:iterator end files:>
200 </table>
201 </td>
202 </tr>
caa7299c
TC
203 </table>
204 <p><a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a>
205 </p>
206 <:or Files:>
207 <p>No files are attached to this article. <a href="<:script:>?filelist=1&id=<:article id:>"><b>Manage Files</b></a></p><:eif Files:>
edc5d096 208 </td>
caa7299c 209 <td nowrap bgcolor="#FFFFFF" valign="top"><:help product
35c0719f 210 files:></td>
edc5d096 211 </tr>
26094672 212 <tr>
15fb10f2 213 <th valign="top" nowrap bgcolor="#FFFFFF" align="left"> Images:
35c0719f 214 </th>
caa7299c 215 <td align="center" bgcolor="#FFFFFF"> <:if Images:> <:iterator begin
55753022 216 images:> <img src="/images/<: image image :>" alt="<:image alt :>" width=
26094672
TC
217 <:image width:> height=<:image height:>> <:iterator separator images:>
218 <hr noshade size="1">
15fb10f2
TC
219 <: iterator end images :>
220 <p align="left"><a href="<:script:>?id=<:article id:>&showimages=1"><b>Manage Images</b></a></p>
221 <: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 222 <:eif Images:>
35c0719f 223 </td>
caa7299c 224 <td valign="top" bgcolor="#FFFFFF"><:help product images:></td>
35c0719f 225 </tr>
759c295d 226 <:or Article:><:eif Article:>
5bc24704
TC
227 </table>
228 </td>
229 </tr>
230 </table>
759c295d
TC
231 <p><font size="-1">*These fields cannot be modified once this product has been
232 included in an order.</font></p>
233 <:if UserCan edit_save:article:>
234 <p>
ca9aa2bf 235 <input type=submit name="save" value="Save changes">
abf5bbc6 236 </p><:or UserCan:><:eif UserCan:>
5bc24704
TC
237</form>
238
7063727a 239<p><font size="-1">BSE Release <:release:></font></p>
5bc24704
TC
240</body>
241</html>