%%3C^3CF^3CF67553%%sale.tpl.php 3.67 KB
<?php /* Smarty version 2.6.16, created on 2015-07-10 17:10:11
         compiled from sale.tpl */ ?>
<input type="button" class="submit_green" value="Ñîçäàòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&save'">
<br>

<?php if (count ( $this->_tpl_vars['saleAllData']['data'] )): ?>
<form method="post" action="">
   <table cellpadding="2" cellspacing="1" width="100%">
 <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['saleAllData']['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
 <tr><td>
        <div style="border-bottom:1px solid #878787;padding-bottom:2px;"><b><?php echo $this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['url']; ?>
</b></div>
 </td></tr>
    <tr height="70" valign="top">
    <td>

         <?php if ($this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['pic']): ?><img id="imgBorder" src="<?php echo @URL; ?>
uploaded/pic/news/<?php echo $this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['pic']; ?>
" border="0" align="left"><?php endif; ?>

    </tr>
       <tr><td>
<input type="button" class="submit_orange" value="Ïðàâèòü" onClick="document.location='<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&save&editID=<?php echo $this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['id']; ?>
';">

<input type="button" class="submit_red" value="Óäàëèòü" onClick="del('<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&deleteID=<?php echo $this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['id']; ?>
');">
ñîðò: <input type="text" name="sort[]" value="<?php echo $this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['sort']; ?>
" size="5" /> <input type="hidden" name="id[]" value="<?php echo $this->_tpl_vars['saleAllData']['data'][$this->_sections['i']['index']]['id']; ?>
" />
       </td></tr>
 <?php endfor; endif; ?>
   </table>
   <br>
   <input type="submit" value="Ñîõðàíèòü" class="submit_green" name="save_sort" />
   <form>
<br>
<?php if ($this->_tpl_vars['saleAllData']['links']): ?><div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['saleAllData']['links']; ?>
</div><?php endif;  endif; ?>