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

  1. <?php /* Smarty version 2.5.0, created on 2003-04-23 16:55:21
  2.          compiled from basicindex.tpl */ ?>
  3. <?php if (isset($this->_sections['letter'])) unset($this->_sections['letter']);
  4. $this->_sections['letter']['name'] = 'letter';
  5. $this->_sections['letter']['loop'] = is_array($this->_tpl_vars['letters']) ? count($this->_tpl_vars['letters']) : max(0, (int)$this->_tpl_vars['letters']);
  6. $this->_sections['letter']['show'] = true;
  7. $this->_sections['letter']['max'] = $this->_sections['letter']['loop'];
  8. $this->_sections['letter']['step'] = 1;
  9. $this->_sections['letter']['start'] = $this->_sections['letter']['step'] > 0 ? 0 : $this->_sections['letter']['loop']-1;
  10. if ($this->_sections['letter']['show']) {
  11.     $this->_sections['letter']['total'] = $this->_sections['letter']['loop'];
  12.     if ($this->_sections['letter']['total'] == 0)
  13.         $this->_sections['letter']['show'] = false;
  14. } else
  15.     $this->_sections['letter']['total'] = 0;
  16. if ($this->_sections['letter']['show']):
  17.  
  18.             for ($this->_sections['letter']['index'] = $this->_sections['letter']['start'], $this->_sections['letter']['iteration'] = 1;
  19.                  $this->_sections['letter']['iteration'] <= $this->_sections['letter']['total'];
  20.                  $this->_sections['letter']['index'] += $this->_sections['letter']['step'], $this->_sections['letter']['iteration']++):
  21. $this->_sections['letter']['rownum'] = $this->_sections['letter']['iteration'];
  22. $this->_sections['letter']['index_prev'] = $this->_sections['letter']['index'] - $this->_sections['letter']['step'];
  23. $this->_sections['letter']['index_next'] = $this->_sections['letter']['index'] + $this->_sections['letter']['step'];
  24. $this->_sections['letter']['first']      = ($this->_sections['letter']['iteration'] == 1);
  25. $this->_sections['letter']['last']       = ($this->_sections['letter']['iteration'] == $this->_sections['letter']['total']);
  26. ?>
  27.     [ <a href="<?php echo $this->_tpl_vars['indexname']; ?>
  28. .html#<?php echo $this->_tpl_vars['letters'][$this->_sections['letter']['index']]['letter']; ?>
  29. "><?php echo $this->_tpl_vars['letters'][$this->_sections['letter']['index']]['letter']; ?>
  30. </a> ]
  31. <?php endfor; endif; ?>
  32.  
  33. <?php if (isset($this->_sections['index'])) unset($this->_sections['index']);
  34. $this->_sections['index']['name'] = 'index';
  35. $this->_sections['index']['loop'] = is_array($this->_tpl_vars['index']) ? count($this->_tpl_vars['index']) : max(0, (int)$this->_tpl_vars['index']);
  36. $this->_sections['index']['show'] = true;
  37. $this->_sections['index']['max'] = $this->_sections['index']['loop'];
  38. $this->_sections['index']['step'] = 1;
  39. $this->_sections['index']['start'] = $this->_sections['index']['step'] > 0 ? 0 : $this->_sections['index']['loop']-1;
  40. if ($this->_sections['index']['show']) {
  41.     $this->_sections['index']['total'] = $this->_sections['index']['loop'];
  42.     if ($this->_sections['index']['total'] == 0)
  43.         $this->_sections['index']['show'] = false;
  44. } else
  45.     $this->_sections['index']['total'] = 0;
  46. if ($this->_sections['index']['show']):
  47.  
  48.             for ($this->_sections['index']['index'] = $this->_sections['index']['start'], $this->_sections['index']['iteration'] = 1;
  49.                  $this->_sections['index']['iteration'] <= $this->_sections['index']['total'];
  50.                  $this->_sections['index']['index'] += $this->_sections['index']['step'], $this->_sections['index']['iteration']++):
  51. $this->_sections['index']['rownum'] = $this->_sections['index']['iteration'];
  52. $this->_sections['index']['index_prev'] = $this->_sections['index']['index'] - $this->_sections['index']['step'];
  53. $this->_sections['index']['index_next'] = $this->_sections['index']['index'] + $this->_sections['index']['step'];
  54. $this->_sections['index']['first']      = ($this->_sections['index']['iteration'] == 1);
  55. $this->_sections['index']['last']       = ($this->_sections['index']['iteration'] == $this->_sections['index']['total']);
  56. ?>
  57.   <hr />
  58.     <a name="<?php echo $this->_tpl_vars['index'][$this->_sections['index']['index']]['letter']; ?>
  59. "></a>
  60.     <div>
  61.         <h2><?php echo $this->_tpl_vars['index'][$this->_sections['index']['index']]['letter']; ?>
  62. </h2>
  63.         <dl>
  64.             <?php if (isset($this->_sections['contents'])) unset($this->_sections['contents']);
  65. $this->_sections['contents']['name'] = 'contents';
  66. $this->_sections['contents']['loop'] = is_array($this->_tpl_vars['index'][$this->_sections['index']['index']]['index']) ? count($this->_tpl_vars['index'][$this->_sections['index']['index']]['index']) : max(0, (int)$this->_tpl_vars['index'][$this->_sections['index']['index']]['index']);
  67. $this->_sections['contents']['show'] = true;
  68. $this->_sections['contents']['max'] = $this->_sections['contents']['loop'];
  69. $this->_sections['contents']['step'] = 1;
  70. $this->_sections['contents']['start'] = $this->_sections['contents']['step'] > 0 ? 0 : $this->_sections['contents']['loop']-1;
  71. if ($this->_sections['contents']['show']) {
  72.     $this->_sections['contents']['total'] = $this->_sections['contents']['loop'];
  73.     if ($this->_sections['contents']['total'] == 0)
  74.         $this->_sections['contents']['show'] = false;
  75. } else
  76.     $this->_sections['contents']['total'] = 0;
  77. if ($this->_sections['contents']['show']):
  78.  
  79.             for ($this->_sections['contents']['index'] = $this->_sections['contents']['start'], $this->_sections['contents']['iteration'] = 1;
  80.                  $this->_sections['contents']['iteration'] <= $this->_sections['contents']['total'];
  81.                  $this->_sections['contents']['index'] += $this->_sections['contents']['step'], $this->_sections['contents']['iteration']++):
  82. $this->_sections['contents']['rownum'] = $this->_sections['contents']['iteration'];
  83. $this->_sections['contents']['index_prev'] = $this->_sections['contents']['index'] - $this->_sections['contents']['step'];
  84. $this->_sections['contents']['index_next'] = $this->_sections['contents']['index'] + $this->_sections['contents']['step'];
  85. $this->_sections['contents']['first']      = ($this->_sections['contents']['iteration'] == 1);
  86. $this->_sections['contents']['last']       = ($this->_sections['contents']['iteration'] == $this->_sections['contents']['total']);
  87. ?>
  88.                 <dt><b><?php echo $this->_tpl_vars['index'][$this->_sections['index']['index']]['index'][$this->_sections['contents']['index']]['name']; ?>
  89. </b></dt>
  90.                 <dd><?php echo $this->_tpl_vars['index'][$this->_sections['index']['index']]['index'][$this->_sections['contents']['index']]['listing']; ?>
  91. </dd>
  92.             <?php endfor; endif; ?>
  93.         </dl>
  94.     </div>
  95.     <a href="<?php echo $this->_tpl_vars['indexname']; ?>
  96. .html#top">top</a><br>
  97. <?php endfor; endif; ?>