home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / classleft.tpl < prev    next >
Encoding:
Text File  |  2004-03-24  |  2.7 KB  |  39 lines

  1. <?php /* Smarty version 2.5.0, created on 2003-04-23 16:53:42
  2.          compiled from classleft.tpl */ ?>
  3. <?php if (count((array)$this->_tpl_vars['classleftindex'])):
  4.     foreach ((array)$this->_tpl_vars['classleftindex'] as $this->_tpl_vars['subpackage'] => $this->_tpl_vars['files']):
  5. ?>
  6.   <div class="package">
  7.     <?php if ($this->_tpl_vars['subpackage'] != ""): ?><?php echo $this->_tpl_vars['subpackage']; ?>
  8. <br /><?php endif; ?>
  9.     <?php if (isset($this->_sections['files'])) unset($this->_sections['files']);
  10. $this->_sections['files']['name'] = 'files';
  11. $this->_sections['files']['loop'] = is_array($this->_tpl_vars['files']) ? count($this->_tpl_vars['files']) : max(0, (int)$this->_tpl_vars['files']);
  12. $this->_sections['files']['show'] = true;
  13. $this->_sections['files']['max'] = $this->_sections['files']['loop'];
  14. $this->_sections['files']['step'] = 1;
  15. $this->_sections['files']['start'] = $this->_sections['files']['step'] > 0 ? 0 : $this->_sections['files']['loop']-1;
  16. if ($this->_sections['files']['show']) {
  17.     $this->_sections['files']['total'] = $this->_sections['files']['loop'];
  18.     if ($this->_sections['files']['total'] == 0)
  19.         $this->_sections['files']['show'] = false;
  20. } else
  21.     $this->_sections['files']['total'] = 0;
  22. if ($this->_sections['files']['show']):
  23.  
  24.             for ($this->_sections['files']['index'] = $this->_sections['files']['start'], $this->_sections['files']['iteration'] = 1;
  25.                  $this->_sections['files']['iteration'] <= $this->_sections['files']['total'];
  26.                  $this->_sections['files']['index'] += $this->_sections['files']['step'], $this->_sections['files']['iteration']++):
  27. $this->_sections['files']['rownum'] = $this->_sections['files']['iteration'];
  28. $this->_sections['files']['index_prev'] = $this->_sections['files']['index'] - $this->_sections['files']['step'];
  29. $this->_sections['files']['index_next'] = $this->_sections['files']['index'] + $this->_sections['files']['step'];
  30. $this->_sections['files']['first']      = ($this->_sections['files']['iteration'] == 1);
  31. $this->_sections['files']['last']       = ($this->_sections['files']['iteration'] == $this->_sections['files']['total']);
  32. ?>
  33.     <?php if ($this->_tpl_vars['subpackage'] != ""): ?>  <?php endif; ?>
  34.         <?php if ($this->_tpl_vars['files'][$this->_sections['files']['index']]['link'] != ''): ?><a href="<?php echo $this->_tpl_vars['files'][$this->_sections['files']['index']]['link']; ?>
  35. "><?php endif; ?><?php echo $this->_tpl_vars['files'][$this->_sections['files']['index']]['title']; ?>
  36. <?php if ($this->_tpl_vars['files'][$this->_sections['files']['index']]['link'] != ''): ?></a><?php endif; ?><br />
  37.     <?php endfor; endif; ?>
  38.   </div>
  39. <?php endforeach; endif; ?>