0.13 commit (no changes since last patch)
[bse.git] / site / templates / admin / article_img.tmpl
CommitLineData
f5d30ab9
TC
1<html>
2<head>
3
4 <title>Administration - <: articleType :> Image Wizard</title>
5
6 <link rel="stylesheet" type="text/css" href="/css/admin.css">
7
8</head>
9
10<body>
35c0719f
TC
11<h1><: articleType :> Image Wizard</h1>
12<:ifMessage:>
13<p><b><:message:> </b></p>
14<:or:><:eif:>
759c295d
TC
15<p>| <a href="/cgi-bin/admin/menu.pl">Admin menu</a> | <:if Match [article generator] "Product":><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
16 product</a> | <a href="/cgi-bin/admin/shopadmin.pl">Manage catalogs</a> <:or
17 Match:><:if Eq [article id] [cfg articles shop]:><a href="/cgi-bin/admin/add.pl?id=<:article id:>">Edit
18 shop</a><:or Eq:><a href="/cgi-bin/admin/add.pl?id=<:article id:>"><:ifMatch
19 [article generator] "Catalog":>Edit catalog<:or:>Edit article<:eif:></a><:eif
20 Eq:><:eif Match:> |</p><:if UserCan edit_images_add:article:>
35c0719f 21<h2>Add new image</h2>
f5d30ab9
TC
22
23<form method="POST" action="<:script:>" enctype="multipart/form-data">
24
25<input type="hidden" name="level" value="<: level :>">
26<input type="hidden" name="id" value="<: article id :>">
27<input type="hidden" name="parentid" value="<: article parentid :>">
28<input type="hidden" name="imgtype" value="<: articleType :>">
cc9019d1 29<input type="hidden" name="_t" value="img" />
35c0719f 30 <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table">
f5d30ab9
TC
31 <tr>
32 <td>
33 <table cellpadding="6" border="0" cellspacing="1">
34 <tr>
759c295d 35 <th bgcolor="#FFFFFF" align="left">Image file to add:</th>
f5d30ab9 36 <td bgcolor="#FFFFFF">
759c295d 37 <input type="file" name="image">
f5d30ab9 38 </td>
429e9103 39 <td nowrap bgcolor="#FFFFFF"><:help image file:> <:error_img image:></td>
f5d30ab9
TC
40 </tr>
41 <tr>
759c295d 42 <th bgcolor="#FFFFFF" align="left">Alt text for image:</th>
f5d30ab9 43 <td bgcolor="#FFFFFF">
759c295d 44 <input type="text" name="altIn" value="<:old altIn:>">
f5d30ab9 45 </td>
429e9103 46 <td nowrap bgcolor="#FFFFFF"><:help image alt:> <:error_img altIn:></td>
f5d30ab9 47 </tr>
5c5c6eb6 48 <tr>
759c295d 49 <th bgcolor="#FFFFFF" align="left">URL for image:</th>
5c5c6eb6 50 <td bgcolor="#FFFFFF">
759c295d 51 <input type="text" name="url" value="<:old url:>">
5c5c6eb6 52 </td>
429e9103 53 <td nowrap bgcolor="#FFFFFF"><:help image url:> <:error_img url:></td>
5c5c6eb6 54 </tr>
f5d30ab9 55 <tr>
08123550 56 <td bgcolor="#FFFFFF" colspan="3" align="right">
759c295d 57 <input type="submit" name="addimg" value="Add Image">
f5d30ab9
TC
58 </td>
59 </tr>
60 </table>
61 </td>
62 </tr>
63 </table>
99ef7979 64</form>
abf5bbc6 65<:or UserCan:><:eif UserCan:>
99ef7979 66
caa7299c 67<form method="post" action="<:script:>" enctype="multipart/form-data">
99ef7979
TC
68<input type="hidden" name="level" value="<: level :>">
69<input type="hidden" name="id" value="<: article id :>">
70<input type="hidden" name="parentid" value="<: article parentid :>">
71<input type="hidden" name="imgtype" value="<: articleType :>">
cc9019d1 72<input type="hidden" name="_t" value="img" />
35c0719f 73 <h2>Manage images</h2>
f5d30ab9 74
759c295d 75<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" class="table">
f5d30ab9
TC
76 <tr>
77 <td>
759c295d
TC
78 <table width="100%" border="0" cellpadding="6" cellspacing="1">
79 <:if Images:><tr>
918735d1 80 <th valign="top" bgcolor="#FFFFFF" colspan="4">First Image Position</th>
35c0719f 81 </tr>
759c295d 82 <tr>
918735d1 83 <td bgcolor="#FFFFFF" colspan="4">
08123550
TC
84 <table width="100%" border="0" cellspacing="0" cellpadding="0">
85 <tr>
86 <td width="100%" align="center"><input type="radio" name="imagePos" value="tl" <: ifEq [article imagePos] "tl":>checked<:or:><:eif:>
ca9aa2bf
TC
87 >Top Left &nbsp;<input type="radio" name="imagePos" value="tr" <: ifEq [article imagePos] "tr":>checked<:or:><:eif:>
88 >Top Right &nbsp; <input type="radio" name="imagePos" value="bl" <: ifEq [article imagePos] "bl":>checked<:or:><:eif:>
89 >Bottom Left &nbsp; <input type="radio" name="imagePos" value="br" <: ifEq [article imagePos] "br":>checked<:or:><:eif:>
08123550
TC
90 >Bottom Right</td>
91 <td bgcolor="#FFFFFF"><:help image file:> </td>
92 </tr>
93 </table>
94
ca9aa2bf 95 </td>
35c0719f 96 </tr>
27feb834 97 <tr bgcolor="#FFFFFF">
918735d1 98 <th colspan="4">Image</th>
27feb834 99 </tr>
ca9aa2bf 100 <: iterator begin images :>
27feb834 101 <tr bgcolor="#FFFFFF">
918735d1 102 <td align="center" colspan="4"> <img src="/images/<: image image :>" alt="<: image alt :>" width="<:
15fb10f2 103 image width :>" height="<: image height :>"></td>
35c0719f
TC
104 </tr>
105 <tr bgcolor="#FFFFFF">
08123550 106 <th> Alt Text</th>
35c0719f
TC
107 <th width="50%"> URL</th>
108 <th nowrap> Modify</th>
918735d1 109 <th nowrap> Move</th>
35c0719f
TC
110 </tr>
111 <tr bgcolor="#FFFFFF">
08123550 112 <td valign="top">
1df3b258 113 <:ifUserCan edit_images_save:article:><input type="text" name="alt" value="<: image alt :>" size="32"><:or:><: image alt :><:eif:>
27feb834 114 </td>
35c0719f 115 <td valign="top" width="50%">
1df3b258 116 <:ifUserCan edit_images_save:article:><input type="text" name="url" value="<: image url :>" size="32"><:or:><: image url :><:eif:>
27feb834 117 </td>
27feb834 118 <td valign="bottom" nowrap>
cc9019d1 119 <: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>
918735d1 120 <td><:imgmove:></td>
27feb834 121 </tr>
ca9aa2bf 122 <: iterator separator images :>
27feb834 123 <tr bgcolor="#FFFFFF">
918735d1 124 <td colspan="4">&nbsp;</td>
27feb834 125 </tr>
ca9aa2bf 126 <: iterator end images :>
1df3b258 127<:ifUserCan edit_images_save:article:>
27feb834 128 <tr>
918735d1 129 <td align="right" bgcolor="#FFFFFF" colspan="4">
27feb834
TC
130 <input type="submit" name="process" value="Save changes">
131 </td>
abf5bbc6
TC
132 </tr>
133<:or:><:eif:>
759c295d
TC
134 <:or Images:><tr><td colspan="4" align="center" bgcolor="#FFFFFF">No images
135 are attached to this article</td>
136 </tr><:eif Images:>
27feb834 137 </table>
f5d30ab9
TC
138</td>
139</tr>
140</table>
141
142 <p>
35c0719f
TC
143 <input type="submit" name="back" value=" << Back ">
144 </p>
f5d30ab9
TC
145
146</form>
147
7063727a 148<p><font size="-1">BSE Release <:release:></font></p>
f5d30ab9
TC
149</body
150></html>