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

  1. <?php /* Smarty version 2.5.0, created on 2003-04-23 22:09:15
  2.          compiled from tocentry.tpl */ ?>
  3. <UL>
  4. <?php if (isset($this->_sections['entry'])) unset($this->_sections['entry']);
  5. $this->_sections['entry']['name'] = 'entry';
  6. $this->_sections['entry']['loop'] = is_array($this->_tpl_vars['entry']) ? count($this->_tpl_vars['entry']) : max(0, (int)$this->_tpl_vars['entry']);
  7. $this->_sections['entry']['show'] = true;
  8. $this->_sections['entry']['max'] = $this->_sections['entry']['loop'];
  9. $this->_sections['entry']['step'] = 1;
  10. $this->_sections['entry']['start'] = $this->_sections['entry']['step'] > 0 ? 0 : $this->_sections['entry']['loop']-1;
  11. if ($this->_sections['entry']['show']) {
  12.     $this->_sections['entry']['total'] = $this->_sections['entry']['loop'];
  13.     if ($this->_sections['entry']['total'] == 0)
  14.         $this->_sections['entry']['show'] = false;
  15. } else
  16.     $this->_sections['entry']['total'] = 0;
  17. if ($this->_sections['entry']['show']):
  18.  
  19.             for ($this->_sections['entry']['index'] = $this->_sections['entry']['start'], $this->_sections['entry']['iteration'] = 1;
  20.                  $this->_sections['entry']['iteration'] <= $this->_sections['entry']['total'];
  21.                  $this->_sections['entry']['index'] += $this->_sections['entry']['step'], $this->_sections['entry']['iteration']++):
  22. $this->_sections['entry']['rownum'] = $this->_sections['entry']['iteration'];
  23. $this->_sections['entry']['index_prev'] = $this->_sections['entry']['index'] - $this->_sections['entry']['step'];
  24. $this->_sections['entry']['index_next'] = $this->_sections['entry']['index'] + $this->_sections['entry']['step'];
  25. $this->_sections['entry']['first']      = ($this->_sections['entry']['iteration'] == 1);
  26. $this->_sections['entry']['last']       = ($this->_sections['entry']['iteration'] == $this->_sections['entry']['total']);
  27. ?>
  28.     <LI> <OBJECT type="text/sitemap">
  29.         <param name="Name" value="<?php echo $this->_tpl_vars['entry'][$this->_sections['entry']['index']]['paramname']; ?>
  30. ">
  31. <?php if ($this->_tpl_vars['entry'][$this->_sections['entry']['index']]['isclass']): ?>        <param name="ImageNumber" value="1">
  32. <?php endif; ?><?php if ($this->_tpl_vars['entry'][$this->_sections['entry']['index']]['outputfile']): ?>        <param name="Local" value="<?php echo $this->_tpl_vars['entry'][$this->_sections['entry']['index']]['outputfile']; ?>
  33. ">
  34. <?php endif; ?>        </OBJECT>
  35.     <?php if ($this->_tpl_vars['entry'][$this->_sections['entry']['index']]['tocsubentries']): ?><?php echo $this->_tpl_vars['entry'][$this->_sections['entry']['index']]['tocsubentries']; ?>
  36. <?php endif; ?>
  37. <?php endfor; endif; ?>
  38.     <?php echo $this->_tpl_vars['tocsubentries']; ?>
  39.  
  40. </UL>