<?php /* Smarty version 2.6.10, created on 2010-07-04 22:14:46
         compiled from addpos.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'addpos.tpl', 9, false),array('function', 'html_options', 'addpos.tpl', 13, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

  <h3>Add a New Tower</h3>
  <div class="mcenter">
  <?php if ($this->_tpl_vars['step'] == 1): ?>
    <form method="post" action="addpos.php">
    <div>
      <input name="step" value="<?php echo smarty_function_math(array('equation' => 'x+1','x' => $this->_tpl_vars['step']), $this);?>
" type="hidden" />
      <table class="tracktable mcenter txtleft">
        <tr>
          <td class="trackheader">Select Region:</td>
          <td><?php echo smarty_function_html_options(array('name' => 'regionID','options' => $this->_tpl_vars['arrregions']), $this);?>
</td>
        </tr>
        <tr>
          <td colspan="2" class="txtcenter"><input type="submit" value="NEXT" /></td>
        </tr>
      </table>
    </div>
    </form>
  <?php elseif ($this->_tpl_vars['step'] == 2): ?>
    <form method="post" action="addpos.php">
    <div>
      <input name="step" value="<?php echo smarty_function_math(array('equation' => 'x+1','x' => $this->_tpl_vars['step']), $this);?>
" type="hidden" />
      <input name="regionID" value="<?php echo $this->_tpl_vars['regionID']; ?>
" type="hidden" />
      <table class="tracktable mcenter txtleft">
        <tr>
          <td class="trackheader">Select Constellation:</td>
          <td><?php echo smarty_function_html_options(array('name' => 'constellationID','options' => $this->_tpl_vars['arrconstellation']), $this);?>
</td>
        </tr>
        <tr>
          <td colspan="2" class="txtcenter"><input type="submit" value="NEXT" /></td>
        </tr>
      </table>
    </div>
    </form>
  <?php elseif ($this->_tpl_vars['step'] == 3): ?>
    <form method="post" action="addpos.php">
    <div>
      <input name="step" value="<?php echo smarty_function_math(array('equation' => 'x+1','x' => $this->_tpl_vars['step']), $this);?>
" type="hidden" />
      <input name="regionID" value="<?php echo $this->_tpl_vars['regionID']; ?>
" type="hidden" />
      <input name="constellationID" value="<?php echo $this->_tpl_vars['constellationID']; ?>
" type="hidden" />
      <table class="tracktable mcenter txtleft">
        <tr>
          <td class="trackheader">Select System:</td>
          <td><?php echo smarty_function_html_options(array('name' => 'solarSystemID','options' => $this->_tpl_vars['arrsystems']), $this);?>
</td>
        </tr>
        <tr>
          <td colspan="2" class="txtcenter"><input type="submit" value="NEXT" /></td>
        </tr>
      </table>
    </div>
    </form>
  <?php elseif ($this->_tpl_vars['step'] == 4): ?>
    <form method="post" action="addpos.php">
    <div>
      <input name="step" value="<?php echo smarty_function_math(array('equation' => 'x+1','x' => $this->_tpl_vars['step']), $this);?>
" type="hidden" />
      <input name="regionID" value="<?php echo $this->_tpl_vars['regionID']; ?>
" type="hidden" />
      <input name="solarSystemID" value="<?php echo $this->_tpl_vars['solarSystemID']; ?>
" type="hidden" />
      <input name="constellationID" value="<?php echo $this->_tpl_vars['constellationID']; ?>
" type="hidden" />
      <table class="tracktable mcenter txtleft">
        <tr>
          <td class="trackheader">Select Moon:</td>
          <td><?php echo smarty_function_html_options(array('name' => 'moonID','options' => $this->_tpl_vars['arrmoons']), $this);?>
</td>
        </tr>
        <tr>
          <td colspan="2" class="txtcenter"><input type="submit" value="NEXT" /></td>
        </tr>
      </table>
    </div>
    </form>
  <?php elseif ($this->_tpl_vars['step'] == 5): ?>
    <form method="post" action="addpos.php">
    <div>
      <input name="step" value="<?php echo smarty_function_math(array('equation' => 'x+1','x' => $this->_tpl_vars['step']), $this);?>
" type="hidden" />
      <input name="moonID" value="<?php echo $this->_tpl_vars['moonID']; ?>
" type="hidden" />
      <input name="regionID" value="<?php echo $this->_tpl_vars['regionID']; ?>
" type="hidden" />
      <input name="solarSystemID" value="<?php echo $this->_tpl_vars['solarSystemID']; ?>
" type="hidden" />
      <input name="constellationID" value="<?php echo $this->_tpl_vars['constellationID']; ?>
" type="hidden" />
      <table class="tracktable mcenter txtright" style="width:400px;">
        <tr>
          <td class="trackheader txtleft">Size:</td>
          <td><?php echo smarty_function_html_options(array('name' => 'pos_size','options' => $this->_tpl_vars['arrposize']), $this);?>
</td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Race:</td>
          <td><?php echo smarty_function_html_options(array('name' => 'pos_race','options' => $this->_tpl_vars['arrporace']), $this);?>
</td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Tower Name:</td>
          <td><input name="towerName" size="20" type="text" value="" /></td>
        </tr>
                <tr>
          <td class="trackheader txtleft">Enriched Uranium</td>
          <td><input name="uranium" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Oxygen</td>
          <td><input name="oxygen" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Mechanical Parts</td>
          <td><input name="mechanical_parts" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Coolant</td>
          <td><input name="coolant" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Robotics</td>
          <td><input name="robotics" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Isotopes</td>
          <td><input name="isotope" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Liquid Ozone</td>
          <td><input name="ozone" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Heavy Water</td>
          <td><input name="heavy_water" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader txtleft">Strontium Calthrates</td>
          <td><input name="strontium" size="20" type="text" value="0" /></td>
        </tr>
        <tr>
          <td class="trackheader">Status:</td>
          <td>
            <select name="status">
              <option value="0"></option>
              <option value="4">Online</option>
              <option value="1">Offline</option>
              <option value="3">Reinforced</option>
              <!--<option value="3">War fuel mode</option>
              <option value="4">Template</option>
              <option value="5">Research</option>
              <option value="6">Cyno</option>-->
            </select>
          </td>
        </tr>
        <tr>
          <td colspan="2" class="txtcenter"><input type="submit" value="Add Structures" /></td>
        </tr>
      </table>
    </div>
    </form>
  <?php endif; ?>
  </div>



<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>