<?php /* Smarty version 2.6.10, created on 2010-02-07 15:50:40
         compiled from editpos.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'editpos.tpl', 31, false),array('function', 'math', 'editpos.tpl', 136, false),array('function', 'daycalc', 'editpos.tpl', 349, 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);
 ?>

<div>
  <a href="viewpos.php?i=<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" title="Back">Back</a>
  <form method="post" action="editpos.php">
  <div>
    <input name="i" value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" type="hidden" />
  </div>
  <table class="mcenter">
  <tbody>
    <tr>
      <td rowspan="14"><img src="images/structures/256_256/<?php echo $this->_tpl_vars['tower']['typeID']; ?>
.png" alt="<?php echo $this->_tpl_vars['tower']['towerName']; ?>
" /></td>
      <td class="tracktable txtleft trackheader">Last Updated:</td>
      <td class="tracktable txtleft"><?php echo $this->_tpl_vars['last_update']; ?>
</td>
    </tr>
    <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">Was updated:</td>
      <td class="tracktable txtleft"><?php echo $this->_tpl_vars['hoursago']; ?>
 Hours Ago</td>
    </tr>
    <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">Type:</td>
      <td class="tracktable txtleft"><?php echo $this->_tpl_vars['arrposize'][$this->_tpl_vars['tower']['pos_size']]; ?>
 <?php echo $this->_tpl_vars['arrporace'][$this->_tpl_vars['tower']['pos_race']]; ?>
</td>
    </tr>
    <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">Status:</td>
      <td class="tracktable txtleft">
        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['towerstatus'],'name' => 'newstatus','selected' => $this->_tpl_vars['tower']['pos_status']), $this);?>

      </td>
    </tr>
  <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">Outpost:</td>
      <td class="tracktable txtleft">
	<?php if ($this->_tpl_vars['access'] >= 2): ?>
	        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['outpostlist'],'name' => 'outpostlist','selected' => $this->_tpl_vars['tower']['outpost_id']), $this);?>

	<?php else: ?>
		<?php echo $this->_tpl_vars['outpostlist'][$this->_tpl_vars['tower']['outpost_id']]; ?>

	<?php endif; ?>
      </td>
    </tr>
    <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">Location:</td>
      <td class="tracktable txtleft"><?php echo $this->_tpl_vars['tower']['moonName']; ?>
</td>
    </tr>
    <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">Tower Name:</td>
      <td class="tracktable txtleft">
	<?php if ($this->_tpl_vars['access'] >= 2): ?>
        	<input name="new_tower_name" type="text" value="<?php echo $this->_tpl_vars['tower']['towerName']; ?>
" />
	<?php else: ?>
		<?php echo $this->_tpl_vars['tower']['towerName']; ?>

	<?php endif; ?>
      </td>
    </tr>
    <tr>
      <td class="txtleft trackheader">Sovereignty:</td>
      <td class="txtleft"><?php if ($this->_tpl_vars['tower']['sovereignty']): ?>Yes<?php else: ?>No<?php endif; ?></td>
    </tr>
    <tr>
      <td class="txtleft trackheader">Sovereignty Status:</td>
      <td class="txtleft"><?php if ($this->_tpl_vars['tower']['sovfriendly']): ?>Friendly<?php else: ?>Hostile<?php endif; ?></td>
    </tr>

<?php if ($this->_tpl_vars['mods']): ?>
      <td class="tracktable txtleft trackheader">CPU:</td>
      <?php if ($this->_tpl_vars['tower']['current_cpu'] > $this->_tpl_vars['tower']['total_cpu']): ?>
        <td class="txtleft txtunderlined arialredbold16"><?php echo $this->_tpl_vars['tower']['current_cpu']; ?>
 / <?php echo $this->_tpl_vars['tower']['total_cpu']; ?>
</td>
      <?php else: ?>
        <td class="tracktable txtleft"><?php echo $this->_tpl_vars['tower']['current_cpu']; ?>
 / <?php echo $this->_tpl_vars['tower']['total_cpu']; ?>
</td>
      <?php endif; ?>
    </tr>
    <tr>
      <!--<td></td>-->
      <td class="tracktable txtleft trackheader">PowerGrid:</td>
       <?php if ($this->_tpl_vars['tower']['current_pg'] > $this->_tpl_vars['tower']['total_pg']): ?>
        <td class="txtleft txtunderlined arialredbold16"><?php echo $this->_tpl_vars['tower']['current_pg']; ?>
 / <?php echo $this->_tpl_vars['tower']['total_pg']; ?>
</td>
      <?php else: ?>
        <td class="tracktable txtleft"><?php echo $this->_tpl_vars['tower']['current_pg']; ?>
 / <?php echo $this->_tpl_vars['tower']['total_pg']; ?>
</td>
      <?php endif;  else: ?>
<td class="tracktable txtleft trackheader">CPU:</td>
<td class="tracktable txtleft"><input name="new_cpu" type="text" value="<?php echo $this->_tpl_vars['tower']['current_cpu']; ?>
" /> /<?php echo $this->_tpl_vars['tower']['total_cpu']; ?>
</td></tr><tr>
<td class="tracktable txtleft trackheader">PowerGrid:</td>
<td class="tracktable txtleft"><input name="new_pg" type="text" value="<?php echo $this->_tpl_vars['tower']['current_pg']; ?>
" /> /<?php echo $this->_tpl_vars['tower']['total_pg']; ?>
</td>
<?php endif; ?>
    </tr>
    <tr>
      <td class="txtleft trackheader">Fuel Tech:</td>
      <td class="txtleft"><?php echo $this->_tpl_vars['tower']['owner_name']; ?>
</td>
    </tr>
    <tr>
      <td class="txtleft trackheader">Backup Fuel Tech:</td>
      <td class="txtleft"><?php echo $this->_tpl_vars['tower']['secondary_owner_name']; ?>
</td>
    </tr>
    <tr>
      <td colspan="3" class="tracktable txtcenter"><input type="submit" name="action" value="Change Tower Information" /></td>
    </tr>
  </tbody>
  </table>
  </form>
</div>
<hr />
<div>
<form method="post" action="editpos.php">
<input name="i" value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" type="hidden" />
<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['users'],'name' => 'newowner','selected' => $this->_tpl_vars['tower']['owner_id']), $this);?>

<input type="submit" name="action" value="Assign As Fuel Tech" />
<input type="submit" name="action" value="Assign As Backup Fuel Tech" />
</div>
<hr />
<div>
  <form method="post" action="editpos.php">
  <div>
    <input name="i" value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" type="hidden" />
  </div>
  <table class="mcenter tracktable" style="width:650px; padding:5px;" cellspacing="0">
  <tbody>
    <tr>
      <th>Fuel</th>
      <th>Previously</th>
      <th>New Values</th>
      <th>Optimum</th>
      <th colspan="2">Diff</th>
    </tr>
    <tr>
      <td>Enriched Uranium</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_uranium']; ?>
</td>
      <td><input name="uranium" value="<?php echo $this->_tpl_vars['tower']['avail_uranium']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_uranium']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_uranium'],'y' => $this->_tpl_vars['tower']['avail_uranium']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_uranium'],'y' => $this->_tpl_vars['tower']['avail_uranium'],'z' => 1), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Oxygen</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_oxygen']; ?>
</td>
      <td><input name="oxygen" value="<?php echo $this->_tpl_vars['tower']['avail_oxygen']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_oxygen']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_oxygen'],'y' => $this->_tpl_vars['tower']['avail_oxygen']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_oxygen'],'y' => $this->_tpl_vars['tower']['avail_oxygen'],'z' => 1), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Mechanical Parts</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_mechanical_parts']; ?>
</td>
      <td><input name="mechanical_parts" value="<?php echo $this->_tpl_vars['tower']['avail_mechanical_parts']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_mechanical_parts']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_mechanical_parts'],'y' => $this->_tpl_vars['tower']['avail_mechanical_parts']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_mechanical_parts'],'y' => $this->_tpl_vars['tower']['avail_mechanical_parts'],'z' => 1), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Coolant</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_coolant']; ?>
</td>
      <td><input name="coolant" value="<?php echo $this->_tpl_vars['tower']['avail_coolant']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_coolant']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_coolant'],'y' => $this->_tpl_vars['tower']['avail_coolant']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_coolant'],'y' => $this->_tpl_vars['tower']['avail_coolant'],'z' => 2), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Robotics</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_robotics']; ?>
</td>
      <td><input name="robotics" value="<?php echo $this->_tpl_vars['tower']['avail_robotics']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_robotics']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_robotics'],'y' => $this->_tpl_vars['tower']['avail_robotics']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_robotics'],'y' => $this->_tpl_vars['tower']['avail_robotics'],'z' => 2), $this);?>
 m3)</td>
    </tr>
  <tr>
      <td>Charters</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_charters']; ?>
</td>
      <td><input name="charters" value="<?php echo $this->_tpl_vars['tower']['avail_charters']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_charters']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_charters'],'y' => $this->_tpl_vars['tower']['avail_charters']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_charters'],'y' => $this->_tpl_vars['tower']['avail_charters'],'z' => 0.15), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Isotopes</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_isotope']; ?>
</td>
      <td><input name="isotope" value="<?php echo $this->_tpl_vars['tower']['avail_isotope']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_isotope']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_isotope'],'y' => $this->_tpl_vars['tower']['avail_isotope']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_isotope'],'y' => $this->_tpl_vars['tower']['avail_isotope'],'z' => 0.15), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Liquid Ozone</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_ozone']; ?>
</td>
      <td><input name="ozone" value="<?php echo $this->_tpl_vars['tower']['avail_ozone']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_ozone']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_ozone'],'y' => $this->_tpl_vars['tower']['avail_ozone']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_ozone'],'y' => $this->_tpl_vars['tower']['avail_ozone'],'z' => 0.4), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Heavy Water</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_heavy_water']; ?>
</td>
      <td><input name="heavy_water" value="<?php echo $this->_tpl_vars['tower']['avail_heavy_water']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_heavy_water']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_heavy_water'],'y' => $this->_tpl_vars['tower']['avail_heavy_water']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_heavy_water'],'y' => $this->_tpl_vars['tower']['avail_heavy_water'],'z' => 0.4), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td>Strontium Calthrates</td>
      <td><?php echo $this->_tpl_vars['tower']['avail_strontium']; ?>
</td>
      <td><input name="strontium" value="<?php echo $this->_tpl_vars['tower']['avail_strontium']; ?>
" size="10" type="text" /></td>
      <td><?php echo $this->_tpl_vars['tower']['optimum_strontium']; ?>
</td>
      <td class="txtright"><?php echo smarty_function_math(array('equation' => "x-y",'x' => $this->_tpl_vars['tower']['optimum_strontium'],'y' => $this->_tpl_vars['tower']['avail_strontium']), $this);?>
</td>
      <td class="txtright">(<?php echo smarty_function_math(array('equation' => "(x-y)*z",'x' => $this->_tpl_vars['tower']['optimum_strontium'],'y' => $this->_tpl_vars['tower']['avail_strontium'],'z' => 3), $this);?>
 m3)</td>
    </tr>
    <tr>
      <td colspan="6" class="txtcenter" style="padding:10px;"><input name="action" value="Update Fuel" type="submit" /></td>
    </tr>
  </tbody>
  </table>
  </form>
</div>

<?php $this->assign('silos', $this->_tpl_vars['tower']['silos']);  $this->assign('miners', $this->_tpl_vars['tower']['miners']);  if ($this->_tpl_vars['miners']): ?>
<hr />
<div>
  <h3>Harvesters/Reactors Arrays</h3>
  <form method="post" action="editpos.php">
  <div>
    <input type="hidden" name="i"      value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" />
    <input type="hidden" name="action" value="updateminers" />
  </div>
  <table class="mcenter tracktable" style="font-size: 12px;">
  <tbody>
    <tr>
      <th>Module</th>
      <th>Material</th>
    </tr>
  <?php $_from = $this->_tpl_vars['miners']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['minerid'] => $this->_tpl_vars['miner']):
?>
    <tr>
      <td><?php echo $this->_tpl_vars['miner']['name']; ?>
 <?php echo $this->_tpl_vars['miner']['structure_id']; ?>
</td>
      <td><select name="material[<?php echo $this->_tpl_vars['miner']['structure_id']; ?>
]"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['optmaterials'],'selected' => $this->_tpl_vars['miner']['material_id']), $this);?>
</select></td>
    </tr>
  <?php endforeach; endif; unset($_from); ?>
    <tr>
      <td colspan="2" class="txtcenter"><input type="submit" value="Update Chain Info" /></td>
    </tr>
  </tbody>
  </table>
  </form>
</div>
<?php endif;  if ($this->_tpl_vars['silos']): ?>
<hr />
<div>
  <h3>Silo Arrays</h3>
  <form method="post" action="editpos.php">
  <div>
    <input type="hidden" name="i"      value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" />
    <input type="hidden" name="action" value="updatesilos" />
  </div>
  <table class="mcenter tracktable" style="font-size: 12px;">
  <tbody>
    <tr>
      <th>Silo</th>
      <th>Material</th>
      <th>Input/Output</th>
      <th>Required/Produced</th>
      <th>Available</th>
      <th>Online</th>
      <th>FULL</th>
      <th>Connected to:</th>
      <th>Linked to:</th>
    </tr>
  <?php $_from = $this->_tpl_vars['silos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['siloid'] => $this->_tpl_vars['silo']):
?>
    <tr>
      <td>Silo <?php echo $this->_tpl_vars['silo']['silo_id']; ?>
</td>
      <td><select name="material[<?php echo $this->_tpl_vars['silo']['silo_id']; ?>
]"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['optmaterials'],'selected' => $this->_tpl_vars['silo']['material_id']), $this);?>
</select></td>
            <td><select name="direction[<?php echo $this->_tpl_vars['silo']['silo_id']; ?>
]"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['optdirections'],'selected' => $this->_tpl_vars['silo']['direction']), $this);?>
</select></td>
      <td><?php echo $this->_tpl_vars['silo']['rate']; ?>
 <span style="color:#aaaaaa;">(<?php echo $this->_tpl_vars['silo']['material_volume']; ?>
m3)</span></td>
      <td><input type="text" name="new_amount[<?php echo $this->_tpl_vars['silo']['silo_id']; ?>
]" value="<?php echo $this->_tpl_vars['silo']['material_amount']; ?>
" /></td>
      <td><?php echo smarty_function_daycalc(array('hours' => $this->_tpl_vars['silo']['hourstofill']), $this);?>
</td>
      <td><?php if ($this->_tpl_vars['silo']['full']): ?>YES<?php else: ?>No<?php endif; ?></td>
      <td><select name="connection[<?php echo $this->_tpl_vars['silo']['silo_id']; ?>
]"><?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['optminers'],'selected' => $this->_tpl_vars['silo']['connection_id']), $this);?>
</select></td>
      <td><input size="6" type="text" name="links[<?php echo $this->_tpl_vars['silo']['silo_id']; ?>
]" value="<?php echo $this->_tpl_vars['silo']['silo_link']; ?>
" /></td>
          </tr>
  <?php endforeach; endif; unset($_from); ?>
    <tr>
      <td colspan="9" class="txtcenter"><input type="submit" value="Update Silo Info" /></td>
    </tr>
  </tbody>
  </table>
  </form>
</div>
<?php endif; ?>


<?php $this->assign('mods', $this->_tpl_vars['tower']['mods']); ?>
<div>
<hr />
  <form method="post" action="addstructure.php">
  <div>
    <input type="hidden" name="pos_id" value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" />
    <input type="hidden" name="struct_amount" value="1" />
    <input type="submit" name="action" value="Add Structures" />
  </form>
    <form method="post" action="importfit.php">
    <input type="hidden" name="pos_id" value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" />
    <input type="submit" name="action" value="Import Structures" />
  </div>
  </form>

</div>
<?php if ($this->_tpl_vars['mods']): ?>
<hr />
<div>
  <h3>Modules</h3>
  <form method="post" action="editpos.php">
  <div>
    <input type="hidden" name="i"      value="<?php echo $this->_tpl_vars['tower']['pos_id']; ?>
" />
    <input type="hidden" name="action" value="updatemods" />
  </div>
  <table class="mcenter tracktable" style="width:600px;font-size: 12px;border-collapse:collapse;">
  <thead>
    <tr>
      <th>Id</th>
      <th>Name</th>
      <th>CPU</th>
      <th>PG</th>
      <th>Status</th>
    </tr>
  </thead>
  <tbody>
    <?php $_from = $this->_tpl_vars['mods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['mod']):
?>
    <?php $this->assign('modid', $this->_tpl_vars['mod']['mod_id']); ?>
    <tr>
      <td class="txtleft"><?php echo $this->_tpl_vars['mod']['mod_id']; ?>
</td>
      <td class="txtleft"><?php echo $this->_tpl_vars['mod']['name']; ?>
</td>
      <td><?php echo $this->_tpl_vars['mod']['cpu']; ?>
</td>
      <td><?php echo $this->_tpl_vars['mod']['pg']; ?>
</td>
      <td><?php $_from = $this->_tpl_vars['arronline']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['modstateid'] => $this->_tpl_vars['modstate']):
?><label><input style="width: 1.5em; height: 1.5em;" name="mod[<?php echo $this->_tpl_vars['modid']; ?>
]" value="<?php echo $this->_tpl_vars['modstateid']; ?>
"<?php if ($this->_tpl_vars['mod']['online'] == $this->_tpl_vars['modstateid']): ?> checked="checked"<?php endif; ?> type="radio" /><?php echo $this->_tpl_vars['modstate']; ?>
</label><?php endforeach; endif; unset($_from); ?></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    <tr>
      <td colspan="5" class="txtcenter"><input type="submit" value="Update Module Info" /></td>
    </tr>
  </tbody>
  </table>
  </form>
</div>
<?php endif; ?>

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