]>
Commit | Line | Data |
---|---|---|
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:>&_t=img&f_showfull=1">Full size images</a> |<:or Thumbs:><:ifCanThumbs:><a href="<:script:>?id=<:article id:>&_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" /> |
35c0719f | 28 | <table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000" class="table"> |
f5d30ab9 TC |
29 | <tr> |
30 | <td> | |
31 | <table cellpadding="6" border="0" cellspacing="1"> | |
32 | <tr> | |
759c295d | 33 | <th bgcolor="#FFFFFF" align="left">Image file to add:</th> |
f5d30ab9 | 34 | <td bgcolor="#FFFFFF"> |
d09682dd | 35 | <input type="file" name="image" /> |
f5d30ab9 | 36 | </td> |
d09682dd | 37 | <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image file:> <:error_img image:></td> |
f5d30ab9 TC |
38 | </tr> |
39 | <tr> | |
759c295d | 40 | <th bgcolor="#FFFFFF" align="left">Alt text for image:</th> |
f5d30ab9 | 41 | <td bgcolor="#FFFFFF"> |
d09682dd | 42 | <input type="text" name="altIn" value="<:old altIn:>" /> |
f5d30ab9 | 43 | </td> |
d09682dd | 44 | <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image alt:> <:error_img altIn:></td> |
f5d30ab9 | 45 | </tr> |
5c5c6eb6 | 46 | <tr> |
759c295d | 47 | <th bgcolor="#FFFFFF" align="left">URL for image:</th> |
5c5c6eb6 | 48 | <td bgcolor="#FFFFFF"> |
d09682dd | 49 | <input type="text" name="url" value="<:old url:>" /> |
5c5c6eb6 | 50 | </td> |
d09682dd | 51 | <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image url:> <:error_img url:></td> |
5c5c6eb6 | 52 | </tr> |
4772671f TC |
53 | <tr> |
54 | <th bgcolor="#FFFFFF" align="left">Identifier for image:</th> | |
55 | <td bgcolor="#FFFFFF"> | |
d09682dd | 56 | <input type="text" name="name" value="<:old name:>" /> |
4772671f | 57 | </td> |
d09682dd | 58 | <td nowrap="nowrap" bgcolor="#FFFFFF"><:help image name:> <:error_img name:></td> |
4772671f | 59 | </tr> |
f5d30ab9 | 60 | <tr> |
08123550 | 61 | <td bgcolor="#FFFFFF" colspan="3" align="right"> |
d09682dd | 62 | <input type="submit" name="addimg" value="Add Image" /> |
f5d30ab9 TC |
63 | </td> |
64 | </tr> | |
65 | </table> | |
66 | </td> | |
67 | </tr> | |
68 | </table> | |
99ef7979 | 69 | </form> |
abf5bbc6 | 70 | <:or UserCan:><:eif UserCan:> |
99ef7979 | 71 | |
de30d08a | 72 | <form method="post" action="<:script:>" enctype="multipart/form-data" name="manage"> |
d09682dd TC |
73 | <input type="hidden" name="level" value="<: level :>" /> |
74 | <input type="hidden" name="id" value="<: article id :>" /> | |
75 | <input type="hidden" name="parentid" value="<: article parentid :>" /> | |
76 | <input type="hidden" name="imgtype" value="<: articleType :>" /> | |
cc9019d1 | 77 | <input type="hidden" name="_t" value="img" /> |
35c0719f | 78 | <h2>Manage images</h2> |
f5d30ab9 | 79 | |
759c295d | 80 | <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" class="table"> |
f5d30ab9 TC |
81 | <tr> |
82 | <td> | |
759c295d | 83 | <table width="100%" border="0" cellpadding="6" cellspacing="1"> |
daee3409 | 84 | <:if Images:><:if Eq [article id] "-1":><:or Eq:><tr> |
4772671f | 85 | <th valign="top" bgcolor="#FFFFFF" colspan="5">First Image Position</th> |
35c0719f | 86 | </tr> |
759c295d | 87 | <tr> |
4772671f | 88 | <td bgcolor="#FFFFFF" colspan="5"> |
08123550 TC |
89 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
90 | <tr> | |
91 | <td width="100%" align="center"><input type="radio" name="imagePos" value="tl" <: ifEq [article imagePos] "tl":>checked<:or:><:eif:> | |
d09682dd TC |
92 | />Top Left <input type="radio" name="imagePos" value="tr" <: ifEq [article imagePos] "tr":>checked<:or:><:eif:> |
93 | />Top Right <input type="radio" name="imagePos" value="bl" <: ifEq [article imagePos] "bl":>checked<:or:><:eif:> | |
94 | />Bottom Left <input type="radio" name="imagePos" value="br" <: ifEq [article imagePos] "br":>checked<:or:><:eif:> | |
95 | />Bottom Right</td> | |
08123550 TC |
96 | <td bgcolor="#FFFFFF"><:help image file:> </td> |
97 | </tr> | |
98 | </table> | |
99 | ||
ca9aa2bf | 100 | </td> |
daee3409 | 101 | </tr><:eif Eq:> |
ab2cd916 TC |
102 | <:if Thumbs:> |
103 | <tr bgcolor="#FFFFFF"> | |
104 | <th>Image</th> | |
105 | <th colspan="2"> </th> | |
106 | <th nowrap="nowrap"> Modify</th> | |
107 | <th nowrap="nowrap"> Move</th> | |
108 | </tr> | |
109 | <:iterator begin images:> | |
110 | <tr> | |
b95fc3a0 | 111 | <td rowspan="4" align="center" valign="center" bgcolor="#FFFFFF"><a href="#" onclick="window.open('/images/<:image image:>', 'fullimage', 'width=<:arithmetic [image width]+20:>,height=<:arithmetic [image height] + 30:>,location=no,status=no,menubar=no,scrollbars=yes'); return 0;"><:thumbimage 150 150:></a></th> |
ab2cd916 TC |
112 | <th>Alt text:</th> |
113 | <td valign="top" bgcolor="#FFFFFF"> | |
b95fc3a0 | 114 | <: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 | 115 | </td> |
b95fc3a0 TC |
116 | <td valign="top" nowrap="nowrap" rowspan="4" bgcolor="#FFFFFF"> |
117 | <: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:> | |
118 | <:ifUserCan edit_images_save:article:><a href="<:script:>?a_edit_image=1&id=<:article id:>&image_id=<: image id :>">Edit</a><:or:><:eif:></td> | |
119 | <td nowrap="nowrap" bgcolor="#FFFFFF" rowspan="4"><:imgmove:></td> | |
ab2cd916 TC |
120 | </tr> |
121 | <tr> | |
122 | <th>URL:</th> | |
123 | <td valign="top" width="50%" bgcolor="#FFFFFF"colspan="1"> | |
b95fc3a0 | 124 | <: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 |
125 | </td> |
126 | </tr> | |
127 | <tr> | |
128 | <th>Identifier:</th> | |
129 | <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"colspan="1"> | |
b95fc3a0 TC |
130 | <: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:> |
131 | </td> | |
132 | </tr> | |
133 | <tr> | |
134 | <th>Image file:</th> | |
135 | <td valign="top" nowrap="nowrap" bgcolor="#FFFFFF"colspan="1"> | |
136 | <: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 |
137 | </td> |
138 | </tr> | |
139 | <:iterator end images:> | |
140 | <:or Thumbs:> | |
27feb834 | 141 | <tr bgcolor="#FFFFFF"> |
4772671f | 142 | <th colspan="5">Image</th> |
27feb834 | 143 | </tr> |
ca9aa2bf | 144 | <: iterator begin images :> |
27feb834 | 145 | <tr bgcolor="#FFFFFF"> |
4772671f | 146 | <td align="center" colspan="5"> <img src="/images/<: image image :>" alt="<: image alt :>" width="<: |
d09682dd | 147 | image width :>" height="<: image height :>" /></td> |
35c0719f TC |
148 | </tr> |
149 | <tr bgcolor="#FFFFFF"> | |
08123550 | 150 | <th> Alt Text</th> |
35c0719f | 151 | <th width="50%"> URL</th> |
4772671f | 152 | <th> Identifier</th> |
d09682dd TC |
153 | <th nowrap="nowrap"> Modify</th> |
154 | <th nowrap="nowrap"> Move</th> | |
35c0719f TC |
155 | </tr> |
156 | <tr bgcolor="#FFFFFF"> | |
08123550 | 157 | <td valign="top"> |
b95fc3a0 | 158 | <: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 | 159 | </td> |
35c0719f | 160 | <td valign="top" width="50%"> |
b95fc3a0 | 161 | <: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 | 162 | </td> |
d09682dd | 163 | <td valign="top" nowrap="nowrap"> |
b95fc3a0 | 164 | <: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 | 165 | </td> |
d09682dd | 166 | <td valign="bottom" nowrap="nowrap"> |
cc9019d1 | 167 | <: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 | 168 | <td nowrap="nowrap"><:imgmove:></td> |
27feb834 | 169 | </tr> |
ca9aa2bf | 170 | <: iterator separator images :> |
27feb834 | 171 | <tr bgcolor="#FFFFFF"> |
4772671f | 172 | <td colspan="5"> </td> |
27feb834 | 173 | </tr> |
ca9aa2bf | 174 | <: iterator end images :> |
ab2cd916 | 175 | <:eif Thumbs:> |
1df3b258 | 176 | <:ifUserCan edit_images_save:article:> |
27feb834 | 177 | <tr> |
4772671f | 178 | <td align="right" bgcolor="#FFFFFF" colspan="5"> |
d09682dd | 179 | <input type="submit" name="process" value="Save changes" /> |
27feb834 | 180 | </td> |
abf5bbc6 TC |
181 | </tr> |
182 | <:or:><:eif:> | |
daee3409 TC |
183 | <:or Images:><tr><td colspan="5" align="center" bgcolor="#FFFFFF"><:if Eq [article id] "-1":>There are no global images<:or Eq:>No images |
184 | are attached to this article<:eif Eq:></td> | |
759c295d | 185 | </tr><:eif Images:> |
27feb834 | 186 | </table> |
f5d30ab9 TC |
187 | </td> |
188 | </tr> | |
189 | </table> | |
190 | ||
191 | <p> | |
d09682dd | 192 | <input type="submit" name="back" value=" << Back " /> |
35c0719f | 193 | </p> |
f5d30ab9 TC |
194 | |
195 | </form> |