gallery_list.tpl 1.67 KB
<a href="{$smarty.const.URL}admin.php?action={$rules_info_one.action}&modAction=products&rubID={$smarty.get.rubID}&productID={$smarty.get.productID}">Âåðíóòüñÿ â ðàçäåë</a>
<br />
<input type="button" class="submit_green" value="Ñîçäàòü" onClick="document.location='{$smarty.const.URL}admin.php?action={$rules_info_one.action}&modAction={$smarty.get.modAction}&rubID={$smarty.get.rubID}&productID={$smarty.get.productID}&save'">
<br>
{if count($galleryAllData.data)}
<table cellpadding="2" cellspacing="2">
<tr>
{section name=i loop=$galleryAllData.data}
<td valign="top">
        <table cellpadding="0" cellspacing="0" border=0>

         <tr><td><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/gallery/{$galleryAllData.data[i].pic}" border="0" alt="{$galleryAllData.data[i].name}" title="{$galleryAllData.data[i].name}"></td></tr>

        <tr><td align="center" colspan="3" style="padding-top:2px;">
<input type="button" class="submit_orange" value="Ïðàâèòü" onClick="document.location='{$smarty.const.URL}admin.php?action={$rules_info_one.action}&modAction=gallery&rubID={$smarty.get.rubID}&productID={$smarty.get.productID}&save&editID={$galleryAllData.data[i].id}';">

   <input type="button" class="submit_red" value="Óäàëèòü" onClick="del('{$smarty.const.URL}admin.php?action={$rules_info_one.action}&modAction=gallery&rubID={$smarty.get.rubID}&productID={$smarty.get.productID}&deleteID={$galleryAllData.data[i].id}');">
        </td></tr>
        </table>
</td>
{if not ($smarty.section.i.rownum mod 4)}

                        </TR><TR width="100%">

        {/if}
{/section}

</table>



<br>
{if $galleryAllData.links}<div class="pager">Ñòðàíèöû: {$galleryAllData.links}</div>{/if}
{/if}