catalogs_product.tpl 12.8 KB
<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>
&nbsp;&nbsp;&nbsp;<b>Öåíà:</b>&nbsp;<input type="text" class="input_form" name="cine" size="5" value="{$smarty.post.cine|default:$product.cine}">
&nbsp;&nbsp;<b>Ñòàðàÿ öåíà:</b>&nbsp;<input type="text" class="input_form" name="cine_last" size="5" value="{$smarty.post.cine_last|default:$product.cine_last}">
&nbsp;&nbsp;<b>Ïîëîâàÿ ïðèíàäëåæíîñòü:</b>&nbsp;
<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">&nbsp;</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} />&nbsp;&nbsp;<b>Öåíà 2:</b>&nbsp;<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}">&nbsp;Ìåòêà: <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}">&nbsp;Ìåòêà: <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}">&nbsp;Ìåòêà: <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}">&nbsp;Ìåòêà: <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}">&nbsp;Ìåòêà: <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}">&nbsp;Ìåòêà: <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">&nbsp;</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">&nbsp;</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">&nbsp;</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}&nbsp;&nbsp;&nbsp;{/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">&nbsp;</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>