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

  1. <?php /* Smarty version 2.5.0, created on 2003-04-23 18:11:47
  2.          compiled from todolist.tpl */ ?>
  3. <newpage />
  4.  
  5. <text size="26" justification="centre"><C:rf:2Appendix D - Todo List>Appendix D - Todo List
  6. </text>
  7. <?php if (count((array)$this->_tpl_vars['todos'])):
  8.     foreach ((array)$this->_tpl_vars['todos'] as $this->_tpl_vars['todopackage'] => $this->_tpl_vars['todo']):
  9. ?>
  10. <text size="16" justification="centre">In Package <?php echo $this->_tpl_vars['todopackage']; ?>
  11.  
  12.  
  13. </text>
  14. <?php if (isset($this->_sections['todo'])) unset($this->_sections['todo']);
  15. $this->_sections['todo']['name'] = 'todo';
  16. $this->_sections['todo']['loop'] = is_array($this->_tpl_vars['todo']) ? count($this->_tpl_vars['todo']) : max(0, (int)$this->_tpl_vars['todo']);
  17. $this->_sections['todo']['show'] = true;
  18. $this->_sections['todo']['max'] = $this->_sections['todo']['loop'];
  19. $this->_sections['todo']['step'] = 1;
  20. $this->_sections['todo']['start'] = $this->_sections['todo']['step'] > 0 ? 0 : $this->_sections['todo']['loop']-1;
  21. if ($this->_sections['todo']['show']) {
  22.     $this->_sections['todo']['total'] = $this->_sections['todo']['loop'];
  23.     if ($this->_sections['todo']['total'] == 0)
  24.         $this->_sections['todo']['show'] = false;
  25. } else
  26.     $this->_sections['todo']['total'] = 0;
  27. if ($this->_sections['todo']['show']):
  28.  
  29.             for ($this->_sections['todo']['index'] = $this->_sections['todo']['start'], $this->_sections['todo']['iteration'] = 1;
  30.                  $this->_sections['todo']['iteration'] <= $this->_sections['todo']['total'];
  31.                  $this->_sections['todo']['index'] += $this->_sections['todo']['step'], $this->_sections['todo']['iteration']++):
  32. $this->_sections['todo']['rownum'] = $this->_sections['todo']['iteration'];
  33. $this->_sections['todo']['index_prev'] = $this->_sections['todo']['index'] - $this->_sections['todo']['step'];
  34. $this->_sections['todo']['index_next'] = $this->_sections['todo']['index'] + $this->_sections['todo']['step'];
  35. $this->_sections['todo']['first']      = ($this->_sections['todo']['iteration'] == 1);
  36. $this->_sections['todo']['last']       = ($this->_sections['todo']['iteration'] == $this->_sections['todo']['total']);
  37. ?>
  38. <text size="12">In <b><?php echo $this->_tpl_vars['todo'][$this->_sections['todo']['index']]['link']; ?>
  39. </b>:
  40. </text>
  41. <text size="11"><ul><?php if (isset($this->_sections['t'])) unset($this->_sections['t']);
  42. $this->_sections['t']['name'] = 't';
  43. $this->_sections['t']['loop'] = is_array($this->_tpl_vars['todo'][$this->_sections['todo']['index']]['todos']) ? count($this->_tpl_vars['todo'][$this->_sections['todo']['index']]['todos']) : max(0, (int)$this->_tpl_vars['todo'][$this->_sections['todo']['index']]['todos']);
  44. $this->_sections['t']['show'] = true;
  45. $this->_sections['t']['max'] = $this->_sections['t']['loop'];
  46. $this->_sections['t']['step'] = 1;
  47. $this->_sections['t']['start'] = $this->_sections['t']['step'] > 0 ? 0 : $this->_sections['t']['loop']-1;
  48. if ($this->_sections['t']['show']) {
  49.     $this->_sections['t']['total'] = $this->_sections['t']['loop'];
  50.     if ($this->_sections['t']['total'] == 0)
  51.         $this->_sections['t']['show'] = false;
  52. } else
  53.     $this->_sections['t']['total'] = 0;
  54. if ($this->_sections['t']['show']):
  55.  
  56.             for ($this->_sections['t']['index'] = $this->_sections['t']['start'], $this->_sections['t']['iteration'] = 1;
  57.                  $this->_sections['t']['iteration'] <= $this->_sections['t']['total'];
  58.                  $this->_sections['t']['index'] += $this->_sections['t']['step'], $this->_sections['t']['iteration']++):
  59. $this->_sections['t']['rownum'] = $this->_sections['t']['iteration'];
  60. $this->_sections['t']['index_prev'] = $this->_sections['t']['index'] - $this->_sections['t']['step'];
  61. $this->_sections['t']['index_next'] = $this->_sections['t']['index'] + $this->_sections['t']['step'];
  62. $this->_sections['t']['first']      = ($this->_sections['t']['iteration'] == 1);
  63. $this->_sections['t']['last']       = ($this->_sections['t']['iteration'] == $this->_sections['t']['total']);
  64. ?>
  65.     <li><?php echo $this->_tpl_vars['todo'][$this->_sections['todo']['index']]['todos'][$this->_sections['t']['index']]; ?>
  66. </li><?php endfor; endif; ?>
  67. </ul>
  68. </text>
  69. <?php endfor; endif; ?>
  70. <?php endforeach; endif; ?>