<?php /* Smarty version 2.6.10, created on 2010-02-07 21:29:28
         compiled from admin_mods.tpl */ ?>
<?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);
 ?>


  <h2>Administration - Modules</h2>
  <h4>Module List</h4>
  <div class="mcenter">
    <form method="post" action="admin.php">
    <div>
      <input type="hidden" name="op"     value="modules" />
      <input type="hidden" name="action" value="updatestatus" />
      <table class="mcenter tracktable" style="width:640px;">
      <thead>
        <tr class="trackheader">
          <th>Name</th>
          <th>Status</th>
          <th>User</th>
          <th>Admin</th>
          <th>functions</th>
          <!--<th>Modify</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']):
?>
        <tr>
          <td><?php if ($this->_tpl_vars['mod']['modstate'] == 1): ?><a href="module.php?name=<?php echo $this->_tpl_vars['mod']['modname']; ?>
" title="<?php echo $this->_tpl_vars['mod']['modname']; ?>
"><?php endif;  echo $this->_tpl_vars['mod']['modname'];  if ($this->_tpl_vars['mod']['modstate'] == 1): ?></a><?php endif; ?></td>
          <td><?php echo $this->_tpl_vars['mod']['modstate']; ?>
</td>
          <td><?php if ($this->_tpl_vars['mod']['user']): ?>Yes<?php else: ?>No<?php endif; ?></td>
          <td><?php if ($this->_tpl_vars['mod']['admin']): ?>Yes<?php else: ?>No<?php endif; ?></td>
          <td><?php if ($this->_tpl_vars['mod']['modstate'] == 0): ?><a href="admin.php?op=modules&amp;modname=<?php echo $this->_tpl_vars['mod']['modname']; ?>
&amp;func=install" title="Install <?php echo $this->_tpl_vars['mod']['modname']; ?>
">Install</a><?php elseif ($this->_tpl_vars['mod']['modstate'] == 1): ?><a href="admin.php?op=modules&amp;modname=<?php echo $this->_tpl_vars['mod']['modname']; ?>
&amp;func=uninstall" title="Install <?php echo $this->_tpl_vars['mod']['modname']; ?>
">Uninstall</a><?php endif; ?></td>
        </tr>
      <?php endforeach; endif; unset($_from); ?>
        <tr>
          <td colspan="5"><input type="submit" value="Update" /></td>
        </tr>
      </tbody>
      </table>
    </div>
    </form>
  </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);
 ?>