fix the audit logging for deleting users
[bse.git] / site / templates / admin / article_img.tmpl
CommitLineData
d09682dd 1<:wrap admin/xbase.tmpl title=>"Image Wizard" :>
daee3409 2<h1><:ifEq [article id] "-1":>Global<:or:><: articleType :><:eif:> Image Wizard</h1>
35c0719f
TC
3<:ifMessage:>
4<p><b><:message:> </b></p>
5<:or:><:eif:>
daee3409
TC
6<p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> |
7<:switch:>
8<:case Match [article generator] "Product":><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
9 product</a> | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a>
10<:case Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit shop</a>
11<:case Eq [article id] "-1":><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit sections</a>
12<:case default:><a href="/cgi-bin/admin/add.pl?id=<:article id:>"><:ifMatch
13 [article generator] "Catalog":>Edit catalog<:or:>Edit article<:eif:></a>
14<:endswitch:>
ab2cd916
TC
15|
16<:if Thumbs:><a href="<:script:>?id=<:article id:>&amp;_t=img&amp;f_showfull=1">Full size images</a> |<:or Thumbs:><:ifCanThumbs:><a href="<:script:>?id=<:article id:>&amp;_t=img">With Thumbnails</a> |<:or:><:eif:><:eif Thumbs:>
17</p>
18<:if UserCan edit_images_add:article:>
35c0719f 19<h2>Add new image</h2>
f5d30ab9 20
de30d08a 21<form method="post" action="<:script:>" enctype="multipart/form-data" name="add">
f5d30ab9 22
d09682dd
TC
23<input type="hidden" name="level" value="<: level :>" />
24<input type="hidden" name="id" value="<: article id :>" />
25<input type="hidden" name="parentid" value="<: article parentid :>" />
26<input type="hidden" name="imgtype" value="<: articleType :>" />
cc9019d1 27<input type="hidden" name="_t" value="img" />
aa6896b6 28<:csrfp admin_add_image hidden:>
35c0719f 29 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
f5d30ab9
TC
30 <tr>
31 <td>
32 <table cellpadding="6" border="0" cellspacing="1">
33 <tr>
759c295d 34 <th bgcolor="#FFFFFF" align="left">Image file to add:</th>
f5d30ab9 35 <td bgcolor="#FFFFFF">
d09682dd 36 <input type="file" name="image" />
f5d30ab9 37 </td>
d09682dd 38 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image file:> <:error_img image:></td>
f5d30ab9
TC
39 </tr>
40 <tr>
759c295d 41 <th bgcolor="#FFFFFF" align="left">Alt text for image:</th>
f5d30ab9 42 <td bgcolor="#FFFFFF">
d09682dd 43 <input type="text" name="altIn" value="<:old altIn:>" />
f5d30ab9 44 </td>
d09682dd 45 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image alt:> <:error_img altIn:></td>
f5d30ab9 46 </tr>
5c5c6eb6 47 <tr>
759c295d 48 <th bgcolor="#FFFFFF" align="left">URL for image:</th>
5c5c6eb6 49 <td bgcolor="#FFFFFF">
d09682dd 50 <input type="text" name="url" value="<:old url:>" />
5c5c6eb6 51 </td>
d09682dd 52 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image url:> <:error_img url:></td>
5c5c6eb6 53 </tr>
4772671f
TC
54 <tr>
55 <th bgcolor="#FFFFFF" align="left">Identifier for image:</th>
56 <td bgcolor="#FFFFFF">
d09682dd 57 <input type="text" name="name" value="<:old name:>" />
4772671f 58 </td>
d09682dd 59 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image name:> <:error_img name:></td>
4772671f 60 </tr>
e63c3728
TC
61 <tr>
62 <th bgcolor="#FFFFFF" align="left">Storage:</th>
63 <td bgcolor="#FFFFFF">
64<select name="storage">
65<option value="">(Auto)</option>
66<:iterator begin image_stores:>
67<option value="<:image_store name:>"><:image_store description:></option>
68<:iterator end image_stores:>
69</select>
70 </td>
71 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image storage:> <:error_img storage:></td>
72 </tr>
f5d30ab9 73 <tr>
08123550 74 <td bgcolor="#FFFFFF" colspan="3" align="right">
d09682dd 75 <input type="submit" name="addimg" value="Add Image" />
f5d30ab9
TC
76 </td>
77 </tr>
78 </table>
79 </td>
80 </tr>
81 </table>
99ef7979 82</form>
abf5bbc6 83<:or UserCan:><:eif UserCan:>
99ef7979 84
de30d08a 85<form method="post" action="<:script:>" enctype="multipart/form-data" name="manage">
d09682dd
TC
86<input type="hidden" name="level" value="<: level :>" />
87<input type="hidden" name="id" value="<: article id :>" />
88<input type="hidden" name="parentid" value="<: article parentid :>" />
89<input type="hidden" name="imgtype" value="<: articleType :>" />
cc9019d1 90<input type="hidden" name="_t" value="img" />
aa6896b6 91<:csrfp admin_save_images hidden:>
35c0719f 92 <h2>Manage images</h2>
f5d30ab9 93
759c295d 94<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" class="table">
f5d30ab9
TC
95 <tr>
96 <td>
759c295d 97 <table width="100%" border="0" cellpadding="6" cellspacing="1">
daee3409 98 <:if Images:><:if Eq [article id] "-1":><:or Eq:><tr>
4772671f 99 <th valign="top" bgcolor="#FFFFFF" colspan="5">First Image Position</th>
35c0719f 100 </tr>
759c295d 101 <tr>
4772671f 102 <td bgcolor="#FFFFFF" colspan="5">
08123550
TC
103 <table width="100%" border="0" cellspacing="0" cellpadding="0">
104 <tr>
105 <td width="100%" align="center"><input type="radio" name="imagePos" value="tl" <: ifEq [article imagePos] "tl":>checked<:or:><:eif:>
d09682dd
TC
106 />Top Left &nbsp;<input type="radio" name="imagePos" value="tr" <: ifEq [article imagePos] "tr":>checked<:or:><:eif:>
107 />Top Right &nbsp; <input type="radio" name="imagePos" value="bl" <: ifEq [article imagePos] "bl":>checked<:or:><:eif:>
108 />Bottom Left &nbsp; <input type="radio" name="imagePos" value="br" <: ifEq [article imagePos] "br":>checked<:or:><:eif:>
109 />Bottom Right</td>
08123550
TC
110 <td bgcolor="#FFFFFF"><:help image file:> </td>
111 </tr>
112 </table>
113
ca9aa2bf 114 </td>
daee3409 115 </tr><:eif Eq:>
ab2cd916
TC
116<:if Thumbs:>
117 <tr bgcolor="#FFFFFF">
118 <th>Image</th>
119 <th colspan="2"> &nbsp;</th>
120 <th nowrap="nowrap"> Modify</th>
121 <th nowrap="nowrap"> Move</th>
122 </tr>
123<:iterator begin images:>
124 <tr>
e63c3728 125 <td rowspan="5" align="center" valign="center" bgcolor="#FFFFFF"><a href="#" onclick="window.open('<:image src:>', 'fullimage', 'width=<:arithmetic [image width]+20:>,height=<:arithmetic [image height] + 30:>,location=no,status=no,menubar=no,scrollbars=yes'); return false;"><:thumbimage editor:></a></th>
ab2cd916
TC
126 <th>Alt text:</th>
127 <td valign="top" bgcolor="#FFFFFF">
b95fc3a0 128 <:ifUserCan edit_images_save:article:><input type="text" name="alt<:image id:>" value="<: oldi [concatenate alt [image id] ] 0 image alt :>" size="32" /><:or:><: image alt :><:eif:>
ab2cd916 129 </td>
e63c3728 130 <td valign="top" nowrap="nowrap" rowspan="5" bgcolor="#FFFFFF">
aa6896b6 131 <:ifUserCan edit_images_delete:article:><b><a href="<:script:>?id=<:article id:>&amp;removeimg_<: image id :>=1&amp;_t=img&amp;_csrfp=<:csrfp admin_remove_image:>" onClick="return window.confirm('Are you sure you want to delete this Image')">Delete</a></b><:or:><:eif:>
b95fc3a0 132<:ifUserCan edit_images_save:article:><a href="<:script:>?a_edit_image=1&amp;id=<:article id:>&image_id=<: image id :>">Edit</a><:or:><:eif:></td>
e63c3728 133 <td nowrap="nowrap" bgcolor="#FFFFFF" rowspan="5"><:imgmove:></td>
ab2cd916
TC
134 </tr>
135 <tr>
136 <th>URL:</th>
e63c3728 137 <td valign="top" width="50%" bgcolor="#FFFFFF" colspan="1">
b95fc3a0 138 <:ifUserCan edit_images_save:article:><input type="text" name="url<:image id:>" value="<: oldi [concatenate url [image id] ] 0 image url :>" size="32" /><:or:><: image url :><:eif:>
ab2cd916
TC
139 </td>
140 </tr>
141 <tr>
142 <th>Identifier:</th>
e63c3728 143 <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF" colspan="1">
b95fc3a0
TC
144 <:ifUserCan edit_images_save:article:><input type="text" name="name<:image id:>" value="<: oldi [concatenate name [image id] ] 0 image name :>" size="32" /> <:error_img [concatenate "name" [image id] ]:><:or:><: image name :><:eif:>
145 </td>
146 </tr>
147 <tr>
148 <th>Image file:</th>
e63c3728 149 <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF" colspan="1">
b95fc3a0 150 <:ifUserCan edit_images_save:article:><input type="file" name="image<:image id:>" size="32" /> <:error_img [concatenate "image" [image id] ]:><:or:><: image displayName :><:eif:>
ab2cd916
TC
151 </td>
152 </tr>
e63c3728
TC
153 <tr>
154 <th>Stored:</th>
155 <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF" colspan="1">
156 <:ifUserCan edit_images_save:article:><select name="storage<:image id:>">
157<option value="">(Auto)</option>
158<:iterator begin image_stores:>
159<option value="<:image_store name:>" <:ifEq [oldi [concatenate storage [image id] ] 0 image storage] [image_store name]:>selected="selected"<:or:><:eif:>><:image_store description:></option>
160<:iterator end image_stores:>
161</select><:error_img [concatenate "storage" [image id] ]:><:or:><: image storage :><:eif:>
162 </td>
163 </tr>
ab2cd916
TC
164<:iterator end images:>
165<:or Thumbs:>
27feb834 166 <tr bgcolor="#FFFFFF">
4772671f 167 <th colspan="5">Image</th>
27feb834 168 </tr>
ca9aa2bf 169 <: iterator begin images :>
27feb834 170 <tr bgcolor="#FFFFFF">
f40af7e2 171 <td align="center" colspan="5"><:image:></td>
35c0719f
TC
172 </tr>
173 <tr bgcolor="#FFFFFF">
08123550 174 <th> Alt Text</th>
35c0719f 175 <th width="50%"> URL</th>
4772671f 176 <th> Identifier</th>
d09682dd
TC
177 <th nowrap="nowrap"> Modify</th>
178 <th nowrap="nowrap"> Move</th>
35c0719f
TC
179 </tr>
180 <tr bgcolor="#FFFFFF">
08123550 181 <td valign="top">
b95fc3a0 182 <:ifUserCan edit_images_save:article:><input type="text" name="alt<:image id:>" value="<: oldi [concatenate alt [image id] ] 0 image alt :>" size="32" /><:or:><: image alt :><:eif:>
27feb834 183 </td>
35c0719f 184 <td valign="top" width="50%">
b95fc3a0 185 <:ifUserCan edit_images_save:article:><input type="text" name="url<:image id:>" value="<: oldi [concatenate url [image id] ] 0 image url :>" size="32" /><:or:><: image url :><:eif:>
27feb834 186 </td>
d09682dd 187 <td valign="top" nowrap="nowrap">
b95fc3a0 188 <:ifUserCan edit_images_save:article:><input type="text" name="name<:image id:>" value="<: oldi [concatenate name [image id] ] 0 image name :>" size="32" /> <:error_img [concatenate "name" [image id] ]:><:or:><: image name :><:eif:>
4772671f 189 </td>
d09682dd 190 <td valign="bottom" nowrap="nowrap">
aa6896b6 191 <:ifUserCan edit_images_delete:article:><b><a href="<:script:>?id=<:article id:>&amp;removeimg_<: image id :>=1&amp;_t=img&amp;_csrfp=<:csrfp admin_remove_image:>" onClick="return window.confirm('Are you sure you want to delete this Image')">Delete</a></b><:or:><:eif:></td>
ebe779a5 192 <td nowrap="nowrap"><:imgmove:></td>
27feb834 193 </tr>
ca9aa2bf 194 <: iterator separator images :>
27feb834 195 <tr bgcolor="#FFFFFF">
4772671f 196 <td colspan="5">&nbsp;</td>
27feb834 197 </tr>
ca9aa2bf 198 <: iterator end images :>
ab2cd916 199<:eif Thumbs:>
1df3b258 200<:ifUserCan edit_images_save:article:>
27feb834 201 <tr>
4772671f 202 <td align="right" bgcolor="#FFFFFF" colspan="5">
d09682dd 203 <input type="submit" name="process" value="Save changes" />
27feb834 204 </td>
abf5bbc6
TC
205 </tr>
206<:or:><:eif:>
daee3409
TC
207 <:or Images:><tr><td colspan="5" align="center" bgcolor="#FFFFFF"><:if Eq [article id] "-1":>There are no global images<:or Eq:>No images
208 are attached to this article<:eif Eq:></td>
759c295d 209 </tr><:eif Images:>
27feb834 210 </table>
f5d30ab9
TC
211</td>
212</tr>
213</table>
214
215 <p>
d09682dd 216 <input type="submit" name="back" value=" &lt;&lt; Back " />
35c0719f 217 </p>
f5d30ab9
TC
218
219</form>