<?php /* Smarty version 2.6.10, created on 2010-02-07 15:53:14
         compiled from fuelbill.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'fuelbill.tpl', 8, false),array('function', 'formatnumber', 'fuelbill.tpl', 68, false),array('function', 'math', 'fuelbill.tpl', 81, 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 class="txtcenter" style="color:#aaaaaa;"><?php echo $this->_tpl_vars['days_to_refuel']; ?>
 Days Fuel bill</h3>
  <form style="text-align: center;" method="post" action="fuelbill.php">
  <p style="text-align:center;">
    <span style="color:#aaaaaa;">Days <input name="days_to_refuel" size="5" value="<?php echo $this->_tpl_vars['days_to_refuel']; ?>
" type="text" /></span>
    <?php echo smarty_function_html_options(array('name' => 'regionID','options' => $this->_tpl_vars['optregions'],'selected' => $this->_tpl_vars['regionID']), $this);?>

    <?php if ($this->_tpl_vars['access'] > 2): ?>
	<?php echo smarty_function_html_options(array('name' => 'constellationID','options' => $this->_tpl_vars['optconstellations'],'selected' => $this->_tpl_vars['constellationID']), $this);?>

	<?php echo smarty_function_html_options(array('name' => 'systemID','options' => $this->_tpl_vars['optsystems'],'selected' => $this->_tpl_vars['systemID']), $this);?>

    <?php endif; ?>
    <?php echo smarty_function_html_options(array('name' => 'use_current_levels','options' => $this->_tpl_vars['optlevels'],'selected' => $this->_tpl_vars['use_current_levels']), $this);?>

    <input type="submit" name="submit" value="Filter" /> - <a href="fuelbill.php" title="Clear Filter">Clear Filter</a>
  </p>

  <table cellspacing="0" class="mcenter" style="width:90%; padding:5px; font:11px Arial, sans-serif;">
    <tr style="background-color:#4F0202;">
      <td class="arialwhite12 billheader">POS_ID</td>
      <td class="arialwhite12 billheader">Region</td>
      <td class="arialwhite12 billheader">Constellation</td>
      <td class="arialwhite12 billheader">POS</td>
      <td class="arialwhite12 billheader">Sov</td>
      <td class="arialwhite12 billheader">Helium Isotope</td>
      <td class="arialwhite12 billheader">Hydrogen Isotope</td>
      <td class="arialwhite12 billheader">Nitrogen Isotope</td>
      <td class="arialwhite12 billheader">Oxygen Isotope</td>
      <td class="arialwhite12 billheader">Coolant</td>
      <td class="arialwhite12 billheader">En Uranium</td>
      <td class="arialwhite12 billheader">Heavy Water</td>
      <td class="arialwhite12 billheader">Liquid Ozone</td>
      <td class="arialwhite12 billheader">Mech Parts</td>
      <td class="arialwhite12 billheader">Oxygen</td>
      <td class="arialwhite12 billheader">Robotics</td>
      <td class="arialwhite12 billheader">&nbsp;</td>
    </tr>

  <?php $this->assign('linecount', 1); ?>
  <?php $_from = $this->_tpl_vars['towers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['pos']):
?>
  <?php if ($this->_tpl_vars['linecount'] == 10): ?>
    <tr style="background-color:#4F0202;">
      <td class="arialwhite12 billheader">POS_ID</td>
      <td class="arialwhite12 billheader">Region</td>
      <td class="arialwhite12 billheader">Constellation</td>
      <td class="arialwhite12 billheader">POS</td>
      <td class="arialwhite12 billheader">Sov</td>
      <td class="arialwhite12 billheader">Helium Isotope</td>
      <td class="arialwhite12 billheader">Hydrogen Isotope</td>
      <td class="arialwhite12 billheader">Nitrogen Isotope</td>
      <td class="arialwhite12 billheader">Oxygen Isotope</td>
      <td class="arialwhite12 billheader">Coolant</td>
      <td class="arialwhite12 billheader">En Uranium</td>
      <td class="arialwhite12 billheader">Heavy Water</td>
      <td class="arialwhite12 billheader">Liquid Ozone</td>
      <td class="arialwhite12 billheader">Mech Parts</td>
      <td class="arialwhite12 billheader">Oxygen</td>
      <td class="arialwhite12 billheader">Robotics</td>
      <td class="arialwhite12 billheader">&nbsp;</td>
    </tr>
    <?php $this->assign('linecount', 1); ?>
  <?php endif; ?>
    <tr<?php if ($this->_tpl_vars['pos']['pos_status'] == 1): ?> style="background-color:red;"<?php endif; ?>>
      <td class="billcontent"><?php echo $this->_tpl_vars['pos']['pos_id']; ?>
</td>
      <td class="billcontent"><?php echo $this->_tpl_vars['pos']['regionName']; ?>
</td>
      <td class="billcontent"><?php echo $this->_tpl_vars['pos']['constellationName']; ?>
</td>
      <td class="billcontent"><a style="color:white;" href="viewpos.php?i=<?php echo $this->_tpl_vars['pos']['pos_id']; ?>
" title="<?php echo $this->_tpl_vars['pos']['locationName']; ?>
"><?php echo $this->_tpl_vars['pos']['locationName']; ?>
</a></td>
      <td class="billcontent"><?php echo $this->_tpl_vars['pos']['sovereignty']; ?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['required_H_isotope']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['required_Hy_isotope']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['required_N_isotope']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['required_O_isotope']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_coolant']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_uranium']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_heavy_water']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_ozone']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_mechanical_parts']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_oxygen']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['pos']['needed_robotics']), $this);?>
</td>
      <td class="billcontent"><input type="checkbox" name="pos_ids[<?php echo $this->_tpl_vars['pos']['pos_id']; ?>
]" <?php if ($this->_tpl_vars['optposids'][$this->_tpl_vars['pos']['pos_id']]): ?>checked="checked" <?php endif; ?>/></td>
    </tr>
    <?php echo smarty_function_math(array('equation' => "x+y",'x' => $this->_tpl_vars['linecount'],'y' => 1,'assign' => 'linecount'), $this);?>

  <?php endforeach; endif; unset($_from); ?>

    <tr>
      <td class="billcontent" colspan="5" style="text-align:left;">Total m3</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_H_isotopes_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_Hy_isotopes_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_N_isotopes_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_O_isotopes_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_coolant_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_uranium_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_heavy_water_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_ozone_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_mechanical_parts_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_oxygen_size']), $this);?>
</td>
      <td class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_robotics_size']), $this);?>
</td>
      <td class="arialwhite12">&nbsp;</td>
    </tr>

    <tr>
      <td style="background-color:#4F0202;text-align:left;" class="billcontent" colspan="5">Totals</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_H_isotopes']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_Hy_isotopes']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_N_isotopes']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_O_isotopes']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_coolant']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_uranium']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_heavy_water']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_ozone']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_mechanical_parts']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_oxygen']), $this);?>
</td>
      <td style="background-color:#4F0202;" class="billcontent"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_robotics']), $this);?>
</td>
      <td class="arialwhite12">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="15" class="billcontent" style="text-align:center;"><?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['total_size']), $this);?>
 (m3)</td>
    </tr>
  </table>
  <p style="text-align:center;"><input type="submit" name="filter" value="Filter" /> - <a href="fuelbill.php" title="Clear Filter">Clear Filter</a></p>
  </form>
  <p>
    <textarea name="fuel Bill" cols="50" rows="15">
Helium Isotopes: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_H_isotopes']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_H_isotopes_size']), $this);?>
m3)
Hydrogen Isotopes: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_Hy_isotopes']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_Hy_isotopes_size']), $this);?>
m3)
Nitrogen Isotopes: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_N_isotopes']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_N_isotopes_size']), $this);?>
m3)
Oxygen Isotopes: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_O_isotopes']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_O_isotopes_size']), $this);?>
m3)
Coolant: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_coolant']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_coolant_size']), $this);?>
m3)
Enriched Uranium: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_uranium']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_uranium_size']), $this);?>
m3)
Heavy Water: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_heavy_water']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_heavy_water_size']), $this);?>
m3)
Liquid Ozone: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_ozone']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_ozone_size']), $this);?>
m3)
Mechanical Parts: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_mechanical_parts']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_mechanical_parts_size']), $this);?>
m3)
Oxygen: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_oxygen']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_oxygen_size']), $this);?>
m3)
Robotics: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_robotics']), $this);?>
 (<?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['fuel_robotics_size']), $this);?>
m3)

Total in m3: <?php echo smarty_function_formatnumber(array('value' => $this->_tpl_vars['total_size']), $this);?>

</textarea>
  </p>


<?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);
 ?>