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

  1. <?php /* Smarty version 2.5.0, created on 2003-04-23 18:11:46
  2.          compiled from classtree.tpl */ ?>
  3.  
  4. <text size="26" justification="centre"><C:rf:2Appendix A - Class Trees>Appendix A - Class Trees
  5. </text>
  6. <?php if (isset($this->_sections['classtrees'])) unset($this->_sections['classtrees']);
  7. $this->_sections['classtrees']['name'] = 'classtrees';
  8. $this->_sections['classtrees']['loop'] = is_array($this->_tpl_vars['trees']) ? count($this->_tpl_vars['trees']) : max(0, (int)$this->_tpl_vars['trees']);
  9. $this->_sections['classtrees']['show'] = true;
  10. $this->_sections['classtrees']['max'] = $this->_sections['classtrees']['loop'];
  11. $this->_sections['classtrees']['step'] = 1;
  12. $this->_sections['classtrees']['start'] = $this->_sections['classtrees']['step'] > 0 ? 0 : $this->_sections['classtrees']['loop']-1;
  13. if ($this->_sections['classtrees']['show']) {
  14.     $this->_sections['classtrees']['total'] = $this->_sections['classtrees']['loop'];
  15.     if ($this->_sections['classtrees']['total'] == 0)
  16.         $this->_sections['classtrees']['show'] = false;
  17. } else
  18.     $this->_sections['classtrees']['total'] = 0;
  19. if ($this->_sections['classtrees']['show']):
  20.  
  21.             for ($this->_sections['classtrees']['index'] = $this->_sections['classtrees']['start'], $this->_sections['classtrees']['iteration'] = 1;
  22.                  $this->_sections['classtrees']['iteration'] <= $this->_sections['classtrees']['total'];
  23.                  $this->_sections['classtrees']['index'] += $this->_sections['classtrees']['step'], $this->_sections['classtrees']['iteration']++):
  24. $this->_sections['classtrees']['rownum'] = $this->_sections['classtrees']['iteration'];
  25. $this->_sections['classtrees']['index_prev'] = $this->_sections['classtrees']['index'] - $this->_sections['classtrees']['step'];
  26. $this->_sections['classtrees']['index_next'] = $this->_sections['classtrees']['index'] + $this->_sections['classtrees']['step'];
  27. $this->_sections['classtrees']['first']      = ($this->_sections['classtrees']['iteration'] == 1);
  28. $this->_sections['classtrees']['last']       = ($this->_sections['classtrees']['iteration'] == $this->_sections['classtrees']['total']);
  29. ?>
  30. <text size="16" justification="centre"><C:rf:3<?php echo $this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['package']; ?>
  31. >Package <?php echo $this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['package']; ?>
  32.  
  33. </text>
  34. <?php if (isset($this->_sections['trees'])) unset($this->_sections['trees']);
  35. $this->_sections['trees']['name'] = 'trees';
  36. $this->_sections['trees']['loop'] = is_array($this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['trees']) ? count($this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['trees']) : max(0, (int)$this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['trees']);
  37. $this->_sections['trees']['show'] = true;
  38. $this->_sections['trees']['max'] = $this->_sections['trees']['loop'];
  39. $this->_sections['trees']['step'] = 1;
  40. $this->_sections['trees']['start'] = $this->_sections['trees']['step'] > 0 ? 0 : $this->_sections['trees']['loop']-1;
  41. if ($this->_sections['trees']['show']) {
  42.     $this->_sections['trees']['total'] = $this->_sections['trees']['loop'];
  43.     if ($this->_sections['trees']['total'] == 0)
  44.         $this->_sections['trees']['show'] = false;
  45. } else
  46.     $this->_sections['trees']['total'] = 0;
  47. if ($this->_sections['trees']['show']):
  48.  
  49.             for ($this->_sections['trees']['index'] = $this->_sections['trees']['start'], $this->_sections['trees']['iteration'] = 1;
  50.                  $this->_sections['trees']['iteration'] <= $this->_sections['trees']['total'];
  51.                  $this->_sections['trees']['index'] += $this->_sections['trees']['step'], $this->_sections['trees']['iteration']++):
  52. $this->_sections['trees']['rownum'] = $this->_sections['trees']['iteration'];
  53. $this->_sections['trees']['index_prev'] = $this->_sections['trees']['index'] - $this->_sections['trees']['step'];
  54. $this->_sections['trees']['index_next'] = $this->_sections['trees']['index'] + $this->_sections['trees']['step'];
  55. $this->_sections['trees']['first']      = ($this->_sections['trees']['iteration'] == 1);
  56. $this->_sections['trees']['last']       = ($this->_sections['trees']['iteration'] == $this->_sections['trees']['total']);
  57. ?>
  58. <text size="12"><C:IndexLetter:<?php echo $this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['trees'][$this->_sections['trees']['index']]['class']; ?>
  59. >
  60. <?php echo $this->_tpl_vars['trees'][$this->_sections['classtrees']['index']]['trees'][$this->_sections['trees']['index']]['class_tree']; ?>
  61. </text>
  62. <?php endfor; endif; ?>
  63. <?php endfor; endif; ?>