_index.tpl 3.07 KB
<table cellpadding="4" cellspacing="1" bgcolor="#94887A" width="500">
{section name=i loop=$catalogs_rubrics}
<tr bgcolor="#F2FEFA"><td>{if $catalogs_rubrics[i].parent_id>0}&nbsp;&nbsp;&nbsp;{/if}{$catalogs_rubrics[i].sort}. <a href="{$smarty.const.URL}admin.php?action={$rules_info_one.action}&rubID={$catalogs_rubrics[i].id}&parent_rubID={$catalogs_rubrics[i].parent_id}">{if $catalogs_rubrics[i].pic}<img src="{$smarty.const.URL}uploaded/pic/catalogs/rubrics/{$catalogs_rubrics[i].pic}" border="0" align="absmiddle">&nbsp;{/if}<b>{$catalogs_rubrics[i].name}</b></a>
</td>
<td width="50">
<a href="{$smarty.const.URL}admin.php?action={$rules_info_one.action}&modAction={if $catalogs_rubrics[i].id eq 96 or $catalogs_rubrics[i].parent_id eq 96}collections{else}products{/if}&rubID={$catalogs_rubrics[i].id}&parent_rubID={$catalogs_rubrics[i].parent_id}">Ïåðåéòè</a>
</td>
<td width="195">
<input type="button" class="submit_red" value="Óäàëèòü" onClick="del('{$smarty.const.URL}admin.php?action={$rules_info_one.action}&deleteID={$catalogs_rubrics[i].id}')">
<input type="button" class="submit_orange" value="Ðåäàêòèðîâàòü" onClick="document.location='{$smarty.const.URL}admin.php?action={$rules_info_one.action}&updateID={$catalogs_rubrics[i].id}'">
</td>
</tr>
{/section}
</table>
<div>&nbsp;</div>
<table cellpadding="4" cellspacing="0">
<form method="post" action="{$smarty.const.URL}admin.php?action={$rules_info_one.action}&save" enctype="multipart/form-data">
<input type="hidden" name="update_id" value="{$rubric.id}">
<tr><td bgcolor="#E5F8FD"><b>Äîáàâëåíèå ðóáðèêè</b></td></tr>
<tr><td><b>Ñîðò.:</b></td></tr>
<tr><td><input type="text" name="sort" class="input_form" size="5" value="{$rubric.sort}"></td></tr>
<tr><td><b>Ðóáðèêà:</b></td></tr>
<tr><td>
<select name="parent_id" class="input_form" style="width:160px;">
<option value=""></option>
{section name=i loop=$rubrics_begin}
<option value="{$rubrics_begin[i].id}" {if $rubric.parent_id eq $rubrics_begin[i].id}selected{/if}>{$rubrics_begin[i].name}</option>
{/section}
</select>
</td></tr>
<tr><td><b>Íàçâàíèå:</b><font color="red">*</font></td></tr>
<tr><td><input type="text" name="name_rus" class="input_form" size="60" value="{$rubric.name_rus}"></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_rus" value="{$rubric.meta_title_rus}" class="input_form" size="150"></td></tr>
  <tr><td><b>description:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="{$rubric.meta_description_rus}" name="meta_description_rus" size="150"></td></tr>
  <tr><td><b>keywords:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="{$rubric.meta_keywords_rus}" name="meta_keywords_rus" size="150"></td></tr>
  <tr><td><b>about:</b></td></td></tr>
  <tr><td><input type=text class="input_form" value="{$rubric.meta_about_rus}" name="meta_about_rus" size="150"></td></tr>


<tr><td align="center"><input type="hidden" name="save">
<input type="submit" class="submit_blue" value="Ñîõðàíèòü"></td></tr>
</form>
</table>