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

  1. <?php /* Smarty version 2.5.0, created on 2003-10-12 23:16:39
  2.          compiled from top_frame.tpl */ ?>
  3. <?php $this->_load_plugins(array(
  4. array('function', 'assign', 'top_frame.tpl', 22, false),)); ?><?php echo '<?xml'; ?>
  5.  version="1.0" encoding="iso-8859-1"<?php echo '?>'; ?>
  6.  
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8.   <html xmlns="http://www.w3.org/1999/xhtml">
  9.         <head>
  10.             <!-- template designed by Marco Von Ballmoos -->
  11.             <title><?php echo $this->_tpl_vars['title']; ?>
  12. </title>
  13.             <link rel="stylesheet" href="<?php echo $this->_tpl_vars['subdir']; ?>
  14. media/stylesheet.css" />
  15.             <link rel="stylesheet" href="<?php echo $this->_tpl_vars['subdir']; ?>
  16. media/banner.css" />
  17.             <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
  18.         </head>
  19.         <body>
  20.             <div class="banner">
  21.                 <div class="banner-title"><?php echo $this->_tpl_vars['package']; ?>
  22. </div>
  23.                 <div class="banner-menu">
  24.                     <form>
  25.                         <table cellpadding="0" cellspacing="0" style="width: 100%">
  26.                             <tr>
  27.                                 <td>
  28.                                     <?php if (count ( $this->_tpl_vars['ric'] ) >= 1): ?>
  29.                                         <?php echo smarty_function_assign(array('var' => 'last_ric_name','value' => ""), $this) ; ?>
  30.  
  31.                                         <?php if (isset($this->_sections['ric'])) unset($this->_sections['ric']);
  32. $this->_sections['ric']['name'] = 'ric';
  33. $this->_sections['ric']['loop'] = is_array($this->_tpl_vars['ric']) ? count($this->_tpl_vars['ric']) : max(0, (int)$this->_tpl_vars['ric']);
  34. $this->_sections['ric']['show'] = true;
  35. $this->_sections['ric']['max'] = $this->_sections['ric']['loop'];
  36. $this->_sections['ric']['step'] = 1;
  37. $this->_sections['ric']['start'] = $this->_sections['ric']['step'] > 0 ? 0 : $this->_sections['ric']['loop']-1;
  38. if ($this->_sections['ric']['show']) {
  39.     $this->_sections['ric']['total'] = $this->_sections['ric']['loop'];
  40.     if ($this->_sections['ric']['total'] == 0)
  41.         $this->_sections['ric']['show'] = false;
  42. } else
  43.     $this->_sections['ric']['total'] = 0;
  44. if ($this->_sections['ric']['show']):
  45.  
  46.             for ($this->_sections['ric']['index'] = $this->_sections['ric']['start'], $this->_sections['ric']['iteration'] = 1;
  47.                  $this->_sections['ric']['iteration'] <= $this->_sections['ric']['total'];
  48.                  $this->_sections['ric']['index'] += $this->_sections['ric']['step'], $this->_sections['ric']['iteration']++):
  49. $this->_sections['ric']['rownum'] = $this->_sections['ric']['iteration'];
  50. $this->_sections['ric']['index_prev'] = $this->_sections['ric']['index'] - $this->_sections['ric']['step'];
  51. $this->_sections['ric']['index_next'] = $this->_sections['ric']['index'] + $this->_sections['ric']['step'];
  52. $this->_sections['ric']['first']      = ($this->_sections['ric']['iteration'] == 1);
  53. $this->_sections['ric']['last']       = ($this->_sections['ric']['iteration'] == $this->_sections['ric']['total']);
  54. ?>
  55.                                             <?php if ($this->_tpl_vars['last_ric_name'] != ""): ?> | <?php endif; ?>
  56.                                             <a href="<?php echo $this->_tpl_vars['ric'][$this->_sections['ric']['index']]['file']; ?>
  57. " target="right"><?php echo $this->_tpl_vars['ric'][$this->_sections['ric']['index']]['name']; ?>
  58. </a>
  59.                                             <?php echo smarty_function_assign(array('var' => 'last_ric_name','value' => $this->_tpl_vars['ric'][$this->_sections['ric']['index']]['name']), $this) ; ?>
  60.  
  61.                                         <?php endfor; endif; ?>
  62.                                     <?php endif; ?>
  63.                                 </td>
  64.                                 <td style="width: 2em"> </td>
  65.                                 <td style="text-align: right">
  66.                                     <?php if (count ( $this->_tpl_vars['packages'] ) > 1): ?>
  67.                                         <span class="field">Packages</span> 
  68.                                         <select class="package-selector" onchange="window.parent.left_bottom.location=this[selectedIndex].value">
  69.                                         <?php if (isset($this->_sections['p'])) unset($this->_sections['p']);
  70. $this->_sections['p']['name'] = 'p';
  71. $this->_sections['p']['loop'] = is_array($this->_tpl_vars['packages']) ? count($this->_tpl_vars['packages']) : max(0, (int)$this->_tpl_vars['packages']);
  72. $this->_sections['p']['show'] = true;
  73. $this->_sections['p']['max'] = $this->_sections['p']['loop'];
  74. $this->_sections['p']['step'] = 1;
  75. $this->_sections['p']['start'] = $this->_sections['p']['step'] > 0 ? 0 : $this->_sections['p']['loop']-1;
  76. if ($this->_sections['p']['show']) {
  77.     $this->_sections['p']['total'] = $this->_sections['p']['loop'];
  78.     if ($this->_sections['p']['total'] == 0)
  79.         $this->_sections['p']['show'] = false;
  80. } else
  81.     $this->_sections['p']['total'] = 0;
  82. if ($this->_sections['p']['show']):
  83.  
  84.             for ($this->_sections['p']['index'] = $this->_sections['p']['start'], $this->_sections['p']['iteration'] = 1;
  85.                  $this->_sections['p']['iteration'] <= $this->_sections['p']['total'];
  86.                  $this->_sections['p']['index'] += $this->_sections['p']['step'], $this->_sections['p']['iteration']++):
  87. $this->_sections['p']['rownum'] = $this->_sections['p']['iteration'];
  88. $this->_sections['p']['index_prev'] = $this->_sections['p']['index'] - $this->_sections['p']['step'];
  89. $this->_sections['p']['index_next'] = $this->_sections['p']['index'] + $this->_sections['p']['step'];
  90. $this->_sections['p']['first']      = ($this->_sections['p']['iteration'] == 1);
  91. $this->_sections['p']['last']       = ($this->_sections['p']['iteration'] == $this->_sections['p']['total']);
  92. ?>
  93.                                             <option value="<?php echo $this->_tpl_vars['packages'][$this->_sections['p']['index']]['link']; ?>
  94. "><?php echo $this->_tpl_vars['packages'][$this->_sections['p']['index']]['title']; ?>
  95. </option>
  96.                                         <?php endfor; endif; ?>
  97.                                         </select>
  98.                                     <?php endif; ?>
  99.                                 </td>
  100.                             </tr>
  101.                         </table>
  102.                     </form>
  103.                 </div>
  104.             </div>
  105.         </body>
  106.     </html>
  107.