default thumb image
[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:>
15|</p><:if UserCan edit_images_add:article:>
35c0719f 16<h2>Add new image</h2>
f5d30ab9 17
de30d08a 18<form method="post" action="<:script:>" enctype="multipart/form-data" name="add">
f5d30ab9 19
d09682dd
TC
20<input type="hidden" name="level" value="<: level :>" />
21<input type="hidden" name="id" value="<: article id :>" />
22<input type="hidden" name="parentid" value="<: article parentid :>" />
23<input type="hidden" name="imgtype" value="<: articleType :>" />
cc9019d1 24<input type="hidden" name="_t" value="img" />
35c0719f 25 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
f5d30ab9
TC
26 <tr>
27 <td>
28 <table cellpadding="6" border="0" cellspacing="1">
29 <tr>
759c295d 30 <th bgcolor="#FFFFFF" align="left">Image file to add:</th>
f5d30ab9 31 <td bgcolor="#FFFFFF">
d09682dd 32 <input type="file" name="image" />
f5d30ab9 33 </td>
d09682dd 34 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image file:> <:error_img image:></td>
f5d30ab9
TC
35 </tr>
36 <tr>
759c295d 37 <th bgcolor="#FFFFFF" align="left">Alt text for image:</th>
f5d30ab9 38 <td bgcolor="#FFFFFF">
d09682dd 39 <input type="text" name="altIn" value="<:old altIn:>" />
f5d30ab9 40 </td>
d09682dd 41 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image alt:> <:error_img altIn:></td>
f5d30ab9 42 </tr>
5c5c6eb6 43 <tr>
759c295d 44 <th bgcolor="#FFFFFF" align="left">URL for image:</th>
5c5c6eb6 45 <td bgcolor="#FFFFFF">
d09682dd 46 <input type="text" name="url" value="<:old url:>" />
5c5c6eb6 47 </td>
d09682dd 48 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image url:> <:error_img url:></td>
5c5c6eb6 49 </tr>
4772671f
TC
50 <tr>
51 <th bgcolor="#FFFFFF" align="left">Identifier for image:</th>
52 <td bgcolor="#FFFFFF">
d09682dd 53 <input type="text" name="name" value="<:old name:>" />
4772671f 54 </td>
d09682dd 55 <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image name:> <:error_img name:></td>
4772671f 56 </tr>
f5d30ab9 57 <tr>
08123550 58 <td bgcolor="#FFFFFF" colspan="3" align="right">
d09682dd 59 <input type="submit" name="addimg" value="Add Image" />
f5d30ab9
TC
60 </td>
61 </tr>
62 </table>
63 </td>
64 </tr>
65 </table>
99ef7979 66</form>
abf5bbc6 67<:or UserCan:><:eif UserCan:>
99ef7979 68
de30d08a 69<form method="post" action="<:script:>" enctype="multipart/form-data" name="manage">
d09682dd
TC
70<input type="hidden" name="level" value="<: level :>" />
71<input type="hidden" name="id" value="<: article id :>" />
72<input type="hidden" name="parentid" value="<: article parentid :>" />
73<input type="hidden" name="imgtype" value="<: articleType :>" />
cc9019d1 74<input type="hidden" name="_t" value="img" />
35c0719f 75 <h2>Manage images</h2>
f5d30ab9 76
759c295d 77<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" class="table">
f5d30ab9
TC
78 <tr>
79 <td>
759c295d 80 <table width="100%" border="0" cellpadding="6" cellspacing="1">
daee3409 81 <:if Images:><:if Eq [article id] "-1":><:or Eq:><tr>
4772671f 82 <th valign="top" bgcolor="#FFFFFF" colspan="5">First Image Position</th>
35c0719f 83 </tr>
759c295d 84 <tr>
4772671f 85 <td bgcolor="#FFFFFF" colspan="5">
08123550
TC
86 <table width="100%" border="0" cellspacing="0" cellpadding="0">
87 <tr>
88 <td width="100%" align="center"><input type="radio" name="imagePos" value="tl" <: ifEq [article imagePos] "tl":>checked<:or:><:eif:>
d09682dd
TC
89 />Top Left &nbsp;<input type="radio" name="imagePos" value="tr" <: ifEq [article imagePos] "tr":>checked<:or:><:eif:>
90 />Top Right &nbsp; <input type="radio" name="imagePos" value="bl" <: ifEq [article imagePos] "bl":>checked<:or:><:eif:>
91 />Bottom Left &nbsp; <input type="radio" name="imagePos" value="br" <: ifEq [article imagePos] "br":>checked<:or:><:eif:>
92 />Bottom Right</td>
08123550
TC
93 <td bgcolor="#FFFFFF"><:help image file:> </td>
94 </tr>
95 </table>
96
ca9aa2bf 97 </td>
daee3409 98 </tr><:eif Eq:>
27feb834 99 <tr bgcolor="#FFFFFF">
4772671f 100 <th colspan="5">Image</th>
27feb834 101 </tr>
ca9aa2bf 102 <: iterator begin images :>
27feb834 103 <tr bgcolor="#FFFFFF">
4772671f 104 <td align="center" colspan="5"> <img src="/images/<: image image :>" alt="<: image alt :>" width="<:
d09682dd 105 image width :>" height="<: image height :>" /></td>
35c0719f
TC
106 </tr>
107 <tr bgcolor="#FFFFFF">
08123550 108 <th> Alt Text</th>
35c0719f 109 <th width="50%"> URL</th>
4772671f 110 <th> Identifier</th>
d09682dd
TC
111 <th nowrap="nowrap"> Modify</th>
112 <th nowrap="nowrap"> Move</th>
35c0719f
TC
113 </tr>
114 <tr bgcolor="#FFFFFF">
08123550 115 <td valign="top">
d09682dd 116 <:ifUserCan edit_images_save:article:><input type="text" name="alt" value="<: image alt :>" size="32" /><:or:><: image alt :><:eif:>
27feb834 117 </td>
35c0719f 118 <td valign="top" width="50%">
d09682dd 119 <:ifUserCan edit_images_save:article:><input type="text" name="url" value="<: image url :>" size="32" /><:or:><: image url :><:eif:>
27feb834 120 </td>
d09682dd
TC
121 <td valign="top" nowrap="nowrap">
122 <:ifUserCan edit_images_save:article:><input type="text" name="name<:image_index:>" value="<: image name :>" size="32" /> <:error_img [concatenate "name" [image_index] ]:><:or:><: image name :><:eif:>
4772671f 123 </td>
d09682dd 124 <td valign="bottom" nowrap="nowrap">
cc9019d1 125 <:ifUserCan edit_images_delete:article:><b><a href="<:script:>?id=<:article id:>&removeimg_<: image id :>=1&_t=img" onClick="return window.confirm('Are you sure you want to delete this Image')">Delete</a></b><:or:><:eif:></td>
ebe779a5 126 <td nowrap="nowrap"><:imgmove:></td>
27feb834 127 </tr>
ca9aa2bf 128 <: iterator separator images :>
27feb834 129 <tr bgcolor="#FFFFFF">
4772671f 130 <td colspan="5">&nbsp;</td>
27feb834 131 </tr>
ca9aa2bf 132 <: iterator end images :>
1df3b258 133<:ifUserCan edit_images_save:article:>
27feb834 134 <tr>
4772671f 135 <td align="right" bgcolor="#FFFFFF" colspan="5">
d09682dd 136 <input type="submit" name="process" value="Save changes" />
27feb834 137 </td>
abf5bbc6
TC
138 </tr>
139<:or:><:eif:>
daee3409
TC
140 <:or Images:><tr><td colspan="5" align="center" bgcolor="#FFFFFF"><:if Eq [article id] "-1":>There are no global images<:or Eq:>No images
141 are attached to this article<:eif Eq:></td>
759c295d 142 </tr><:eif Images:>
27feb834 143 </table>
f5d30ab9
TC
144</td>
145</tr>
146</table>
147
148 <p>
d09682dd 149 <input type="submit" name="back" value=" &lt;&lt; Back " />
35c0719f 150 </p>
f5d30ab9
TC
151
152</form>