catalogs_product.tpl
12.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<h3>{$rubric.name}</h3>
<table cellpadding="4" cellspacing="0">
<form method="post" name="form_material" action="{$smarty.const.URL}admin.php?action={$rules_info_one.action}&modAction=product_save&rubID={$smarty.get.rubID}&save" enctype="multipart/form-data">
<input type="hidden" name="update_id" value="{$product.id}">
<tr><td bgcolor="#E5F8FD"><b>Äîáàâëåíèå òîâàðà</b></td></tr>
<tr><td><b>Àêòèâíîñòü:</b></td></tr>
<tr><td>îòîáðàæàòü <input type="radio" name="active" value="1" {if $product.active==1}checked{/if} /> / íå îòîáðàæàòü <input type="radio" name="active" value="0" {if $product.active==0}checked{/if} />
<tr><td><b>Íàçâàíèå:</b><font color="red">*</font></td></tr>
<tr><td><input type="text" name="name" class="input_form" size="120" value="{$smarty.post.name|default:$product.name|stripslashes}"></td></tr>
<tr><td><b>Íàçâàíèå (Òðàíñëèò áåç ïðîáåëîâ):</b><font color="red">*</font></td></tr>
<tr><td><input type="text" name="translit" class="input_form" size="120" value="{$smarty.post.translit|default:$product.translit|stripslashes}"></td></tr>
<tr><td><b>Êðàòêîå îïèñàíèå:</b></td></tr>
<tr><td>
<textarea name="about" cols="120" rows="10" class="input_form">{$smarty.post.about|default:$product.about}</textarea>
</td></tr>
<tr><td><b>Ïîëíîå îïèñàíèå:</b><font color="red">*</font> <input type="checkbox" name="update_text" value="1" {if $product.update_text eq 1}checked{/if} /> - íå îáíîâëÿòü ïðè èìïîðòå îïèñàíèå</td></tr>
<tr><td>
<textarea name="text" cols="80" rows="15">{$smarty.post.text|default:$product.text}</textarea>
</td></tr>
<tr><td><b>Õàðàêòåðèñòèêè:</b></td></tr>
<tr><td>
<textarea name="params" class="input_form" cols="120" rows="15">
{section name=i loop=$params}{$params[i].name}*{$params[i].size}*{$params[i].metka}={/section}
</textarea>
</td></tr>
<tr><td><b>Äîêóìåíòàöèÿ:</b></td></tr>
<tr><td>
<textarea name="doc" cols="80" rows="15">{$smarty.post.doc|default:$product.doc}</textarea>
</td></tr>
<tr><td><b>Âèäåî êîä:</b></td></tr>
<tr><td>
<textarea name="video_code" cols="80" rows="7">{$smarty.post.video_code|default:$product.video_code}</textarea>
</td></tr>
<tr><td><b>Áðåíä:</b><font color="red">*</font>
<select name="brend_id" class="input_form">
<option value=""></option>
{section name=i loop=$brends}
<option value="{$brends[i].id}" {if $smarty.post.brend_id|default:$product.brend_id eq $brends[i].id}selected {/if}>{$brends[i].name}</option>
{/section}
</select>
<b>Öåíà:</b> <input type="text" class="input_form" name="cine" size="5" value="{$smarty.post.cine|default:$product.cine}">
<b>Ñòàðàÿ öåíà:</b> <input type="text" class="input_form" name="cine_last" size="5" value="{$smarty.post.cine_last|default:$product.cine_last}">
<b>Ïîëîâàÿ ïðèíàäëåæíîñòü:</b>
<br/>
<table class="font-weight:normal;" cellpadding="2" cellspacing="1">
<tr><input type="hidden" name="is_feature">
{assign var=checkbox_sex value=$smarty.post.sex|default:$product_sex}
{section name=i loop=$sex}
<tr>
<td width="200"><label for="sex_{$sex[i].id}">{$sex[i].name}</label></td><td width="10"><input id="sex_{$sex[i].id}" size="50" name="sex[]" value="{$sex[i].id}" type="checkbox" {section name=r loop=$checkbox_sex}{if $sex[i].id==$checkbox_sex[r]}checked{/if}{/section}></td><td width="20"> </td>
</tr>
{/section}
</table>
{* <select class="input_form" name="sex">
<option></option>
<option value="1" {if $smarty.post.sex|default:$product.sex eq 1}selected{/if}>Ìóæñêîé</option>
<option value="2" {if $smarty.post.sex|default:$product.sex eq 2}selected{/if}>Æåíñêèé</option>
<option value="3" {if $smarty.post.sex|default:$product.sex eq 3}selected{/if}>Äåòñêèé</option>
<option value="4" {if $smarty.post.sex|default:$product.sex eq 4}selected{/if}>Þíèñåêñ</option>
</select>*}
</td></tr>
<tr><td>
<b>Èñïîëüçîâàòü ýòó öåíó</b> <input type="checkbox" name="is_cost2" value="1" {if $smarty.post.is_cost2|default:$product.is_cost2 eq 1}checked{/if} /> <b>Öåíà 2:</b> <input type="text" class="input_form" name="cine2" size="5" value="{$smarty.post.cine2|default:$product.cine2}" />
</td></tr>
{*
<tr><td><b>Öåíà:</b></td></tr>
<tr><td><input type="hidden" name="size[0]" value="0"><input type="text" class="input_form" name="cine[0]" size="5" value="{$smarty.post.cine.0|default:$product.cine_0}"> Ìåòêà: <input type="text" class="input_form" name="size_metka[0]" size="15" value="{$smarty.post.size_metka.0|default:$product.metka_0}"></td></tr>
<tr><td><b>Öåíà:</b></td></tr>
<tr><td><input type="hidden" name="size[1]" value="1"><input type="text" class="input_form" name="cine[1]" size="5" value="{$smarty.post.cine.1|default:$product.cine_1}"> Ìåòêà: <input type="text" class="input_form" name="size_metka[1]" size="15" value="{$smarty.post.size_metka.1|default:$product.metka_1}"></td></tr>
<tr><td><b>Öåíà:</b></td></tr>
<tr><td><input type="hidden" name="size[2]" value="2"><input type="text" class="input_form" name="cine[2]" size="5" value="{$smarty.post.cine.2|default:$product.cine_2}"> Ìåòêà: <input type="text" class="input_form" name="size_metka[2]" size="15" value="{$smarty.post.size_metka.2|default:$product.metka_2}"></td></tr>
<tr><td><b>Öåíà:</b></td></tr>
<tr><td><input type="hidden" name="size[3]" value="3"><input type="text" class="input_form" name="cine[3]" size="5" value="{$smarty.post.cine.3|default:$product.cine_3}"> Ìåòêà: <input type="text" class="input_form" name="size_metka[3]" size="15" value="{$smarty.post.size_metka.3|default:$product.metka_3}"></td></tr>
<tr><td><b>Öåíà:</b></td></tr>
<tr><td><input type="hidden" name="size[4]" value="4"><input type="text" class="input_form" name="cine[4]" size="5" value="{$smarty.post.cine.4|default:$product.cine_4}"> Ìåòêà: <input type="text" class="input_form" name="size_metka[4]" size="15" value="{$smarty.post.size_metka.4|default:$product.metka_4}"></td></tr>
<tr><td><b>Öåíà:</b></td></tr>
<tr><td><input type="hidden" name="size[5]" value="5"><input type="text" class="input_form" name="cine[5]" size="5" value="{$smarty.post.cine.5|default:$product.cine_5}"> Ìåòêà: <input type="text" class="input_form" name="size_metka[5]" size="15" value="{$smarty.post.size_metka.5|default:$product.metka_5}"></td></tr>
*}
<tr><td><b>Ôîòî:</b></td></tr>
<tr><td><input type="file" class="input_form" name="pic" size="120"></td></tr>
<tr><td><b>Ôèëüòðû:</b></td></tr>
<tr><td>
<table class="font-weight:normal;" cellpadding="2" cellspacing="1">
<tr><input type="hidden" name="is_feature">
{assign var=checkbox_filter value=$smarty.post.filter|default:$product_filters}
{section name=i loop=$filters}
<td width="200"><label for="filter_{$filters[i].id}">{$filters[i].name}</label></td><td width="10"><input id="filter_{$filters[i].id}" size="50" name="filter[]" value="{$filters[i].id}" type="checkbox" {section name=r loop=$checkbox_filter}{if $filters[i].id==$checkbox_filter[r]}checked{/if}{/section}></td><td width="20"> </td>
{if not ($smarty.section.i.rownum mod 2)}
</TR><TR width="100%">
{/if}
{/section}
</table>
</td></tr>
<tr><td><b>Ôèëüòðû 2:</b></td></tr>
<tr><td>
<table class="font-weight:normal;" cellpadding="2" cellspacing="1">
<tr><input type="hidden" name="is_feature">
{assign var=checkbox_filter value=$smarty.post.filter2|default:$product_filters2}
{section name=i loop=$filters2}
<td width="200"><label for="filter_{$filters2[i].id}">{$filters2[i].name}</label></td><td width="10"><input id="filter_{$filters2[i].id}" size="50" name="filter2[]" value="{$filters2[i].id}" type="checkbox" {section name=r loop=$checkbox_filter}{if $filters2[i].id==$checkbox_filter[r]}checked{/if}{/section}></td><td width="20"> </td>
{if not ($smarty.section.i.rownum mod 2)}
</TR><TR width="100%">
{/if}
{/section}
</table>
</td></tr>
<tr><td><b>Ãîäà:</b></td></tr>
<tr><td>
<table class="font-weight:normal;" cellpadding="2" cellspacing="1">
<tr>
{assign var=checkbox_years value=$smarty.post.years|default:$product_years}
{section name=i loop=$years}
<td width="200"><label for="year_{$years[i].id}">{$years[i].name}</label></td><td width="10"><input id="year_{$years[i].id}" size="50" name="years[]" value="{$years[i].id}" type="checkbox" {section name=r loop=$checkbox_years}{if $years[i].id==$checkbox_years[r]}checked{/if}{/section}></td><td width="20"> </td>
{if not ($smarty.section.i.rownum mod 2)}
</TR><TR width="100%">
{/if}
{/section}
</table>
</td></tr>
<tr class="v14">
<td align="left"><b>Íîìåðà ôèëüòðîâ äëÿ ïðîäóêòîâ ïî òåìå:</b></td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<input class="input_form" value="{$smarty.post.strnumber|default:$product.strnumber|stripslashes|escape:"html"}" size="60" name="strnumber" type="text">
</td>
</tr>
<tr class="v14">
<td align="left"><b>Íîìåðà ðóáðèê äëÿ àêöèé:</b></td>
</tr>
<tr class="v14">
<td class="v10" nowrap="nowrap">
<div style="overflow: scroll;width:220px;height:400px;"><div id="check_box">
<table cellpadding="4" cellspacing="1" bgcolor="#94887A" width="200">
{assign var=checkbox_akcii value=$smarty.post.akcii|default:$product_akcii}
<tr bgcolor="#F2FEFA"><td style="font-weight:bold;color:red;"><input type="checkbox" name="akcii[]" value="0" {if count($checkbox_akcii)}{section name=r loop=$checkbox_akcii}{if 0==$checkbox_akcii[r]}checked{/if}{/section}{else}{/if} />Ãëàâíàÿ ÀÊÖÈÈ</td></tr>
<tr bgcolor="#F2FEFA"><td style="font-weight:bold;color:red;"><input type="checkbox" name="akcii[]" value="111" {if count($checkbox_akcii)}{section name=r loop=$checkbox_akcii}{if 111==$checkbox_akcii[r]}checked{/if}{/section}{else}{/if} />ÀÊÖÈÈ</td></tr>
{section name=i loop=$rubrics}
<tr bgcolor="#F2FEFA"><td {if $rubrics[i].parent_id==0}style="font-weight:bold;"{/if}>{if $rubrics[i].parent_id>0} {/if}<input type="checkbox" name="akcii[]" id="ch{$rubrics[i].parent_id}_{$rubrics[i].id}" onClick="check('ch{$rubrics[i].id}_');" value="{$rubrics[i].id}" {if count($checkbox_akcii)}{section name=r loop=$checkbox_akcii}{if $rubrics[i].id==$checkbox_akcii[r]}checked{/if}{/section}{else}{/if} />{$rubrics[i].name}</td></tr>
{/section}
</table>
</div></div>
</td>
</tr>
<tr><td><b>Ãîðîäà:</b></td></tr>
<tr><td>
<table class="font-weight:normal;" cellpadding="2" cellspacing="1">
<tr><input type="hidden" name="is_feature">
{assign var=checkbox_cities value=$smarty.post.city|default:$product_cities}
{section name=i loop=$cities}
<td width="200"><label for="city_{$cities[i].id}">{$cities[i].name}</label></td><td width="10"><input id="city_{$cities[i].id}" size="50" name="city[]" value="{$cities[i].id}" type="checkbox" {if count($checkbox_cities)}{section name=r loop=$checkbox_cities}{if $cities[i].id==$checkbox_cities[r]}checked{/if}{/section}{else}checked{/if}></td><td width="20"> </td>
{if not ($smarty.section.i.rownum mod 2)}
</TR><TR width="100%">
{/if}
{/section}
</table>
</td></tr>
<tr bgcolor="#959595"><td colspan="2"><font color="#ffffff"><b>META</b></font></td><td>
<tr><td><b>title:</b></td></td></tr>
<tr><td><input type=text name="meta_title" value="{$smarty.post.meta_title|default:$product.meta_title|stripslashes}" class="input_form" size="120"></td></tr>
<tr><td><b>description:</b></td></td></tr>
<tr><td><input type=text class="input_form" value="{$smarty.post.meta_description|default:$product.meta_description|stripslashes}" name="meta_description" size="120"></td></tr>
<tr><td><b>keywords:</b></td></td></tr>
<tr><td><input type=text class="input_form" value="{$smarty.post.meta_keywords|default:$product.meta_keywords|stripslashes}" name="meta_keywords" size="120"></td></tr>
<tr><td><b>about:</b></td></td></tr>
<tr><td><input type=text class="input_form" value="{$smarty.post.meta_about|default:$product.meta_about|stripslashes}" name="meta_about" size="120"></td></tr>
<tr><td align="center"><input type="hidden" name="save"><input type="hidden" name="rubric_id" value="{$smarty.get.rubID}">
<input type="submit" class="submit_blue" value="Ñîõðàíèòü"></td></tr>
</form>
</table>