index.tpl 1.02 KB
<h1>{$menu_one.name}</h1>

  <input type="submit" value="Ñîçäàòü" class="submit_green" onClick="document.location='{$url_lang}/admin/shops/save/'">
<br /><br />

{if count($shops.data)}
   <table cellpadding="2" cellspacing="1" width="100%">
 {section name=i loop=$shops.data}

    <tr valign="top">
    <td>

         {if $shops.data[i].pic}<img id="imgBorder" src="{$config->url}/pics/shops/{$shops.data[i].pic}" border="0" align="left">{/if}

    <font color="#C32A2F"><b>{$shops.data[i].adress|truncate:200|stripslashes|escape:"html"}</b></font>
    <br>{$shops.data[i].url|strip_tags|truncate:500|stripslashes}</a>

    </tr>
       <tr><td>
<input type="button" class="submit_orange" value="Ïðàâèòü" onClick="document.location='{$url_lang}/admin/shops/save/{$shops.data[i].id}/';">

<input type="button" class="submit_red" value="Óäàëèòü" onClick="del('{$url_lang}/admin/shops/delete/{$shops.data[i].id}/');">

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