%%30^300^300FC474%%gallery_list.tpl.php 3.96 KB
<?php /* Smarty version 2.6.16, created on 2015-07-17 11:48:27
         compiled from gallery_list.tpl */ ?>
<a href="<?php echo @URL; ?>
admin.php?action=<?php echo $this->_tpl_vars['rules_info_one']['action']; ?>
&modAction=products&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
">Âåðíóòüñÿ â ðàçäåë</a>
<br />
<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']; ?>
&modAction=<?php echo $_GET['modAction']; ?>
&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
&save'">
<br>
<?php if (count ( $this->_tpl_vars['galleryAllData']['data'] )): ?>
<table cellpadding="2" cellspacing="2">
<tr>
<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['galleryAllData']['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']);
?>
<td valign="top">
        <table cellpadding="0" cellspacing="0" border=0>

         <tr><td><img src="<?php echo @URL; ?>
uploaded/pic/catalogs/products/gallery/<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['pic']; ?>
" border="0" alt="<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['name']; ?>
" title="<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['name']; ?>
"></td></tr>

        <tr><td align="center" colspan="3" style="padding-top:2px;">
<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']; ?>
&modAction=gallery&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
&save&editID=<?php echo $this->_tpl_vars['galleryAllData']['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']; ?>
&modAction=gallery&rubID=<?php echo $_GET['rubID']; ?>
&productID=<?php echo $_GET['productID']; ?>
&deleteID=<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['id']; ?>
');">
        </td></tr>
        </table>
</td>
<?php if (! ( $this->_sections['i']['rownum'] % 4 )): ?>

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

        <?php endif;  endfor; endif; ?>

</table>



<br>
<?php if ($this->_tpl_vars['galleryAllData']['links']): ?><div class="pager">Ñòðàíèöû: <?php echo $this->_tpl_vars['galleryAllData']['links']; ?>
</div><?php endif;  endif; ?>