%%02^02D^02D69B6F%%gallery.tpl.php 4.68 KB
<?php /* Smarty version 2.6.16, created on 2010-06-17 11:53:18
         compiled from gallery.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'stripslashes', 'gallery.tpl', 12, false),array('modifier', 'escape', 'gallery.tpl', 12, false),)), $this); ?>
<?php if ($this->_tpl_vars['rubric']['id'] > 0): ?><h3><?php echo $this->_tpl_vars['rubric']['name_rus']; ?>
</h3><?php endif; ?>
<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_gallery&rubID=<?php echo $_GET['rubID']; ?>
&trainingID=<?php echo $_GET['trainingID']; ?>
'">
<br>

<?php if (count ( $this->_tpl_vars['galleryAllData']['data'] )): ?>
<table cellpadding="2" cellspacing="2" width="100%">
<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><a href="<?php echo @URL; ?>
uploaded/pic/gallery/big/<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['pic_big']; ?>
" rel="lightbox[roadtrip]" title="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['name'])) ? $this->_run_mod_handler('stripslashes', true, $_tmp) : smarty_modifier_stripslashes($_tmp)))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"><img src="<?php echo @URL; ?>
uploaded/pic/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']; ?>
"></a></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']; ?>
&save_gallery&rubID=<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['rub_id']; ?>
&trainingID=<?php echo $_GET['trainingID']; ?>
&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']; ?>
&rubID=<?php echo $this->_tpl_vars['galleryAllData']['data'][$this->_sections['i']['index']]['rub_id']; ?>
&trainingID=<?php echo $_GET['trainingID']; ?>
&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; ?>
<?php endfor; endif; ?>

</table>



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