<div class="panel_headline"><?php echo $headline?></div>
<div id="panel">

<?php if (!empty($modules)): ?>

<table width="100%" id="module_roster" class="management">
    <thead>
    <TR>
        <TH>Module</TH>
        <th>Current Schema</th>
        <th>Required Schema</th>
        <th>Schema Up to Date?</th>
        <TH></TH>
    </TR>
    </thead>
    <tbody>
    <?php foreach ($modules as $k => $v): ?>

    <TR>
        <TD>
        <B><?php echo $v['display_name'];?></B><BR>
        <?php echo $v['description'];?>
        </TD>
        <TD><?php echo $v['current_schema_version'];?></TD>
        <TD><?php echo $v['required_schema_version'];?></TD>
        <TD><?php echo $v['schema_uptodate'];?></TD>
        <TD class="">
        <?php if ($v['name'] != 'base'): ?>
        <?php if (isset($v['status']) && $v['status'] == 'active'): ?>
            <a href="<?php echo $this->makeLink( array('do' => 'base.moduleDeactivate', 'module' => $v['name']), false, false, false, true );?>">Deactivate</a>
        <?php else: ?>
            <a href="<?php echo $this->makeLink( array('do' => 'base.moduleActivate', 'module' => $v['name']), false, false, false, true );?>">Activate</a>
        <?php endif; ?>
        <?php endif;?>

        </TD>
    </TR>

    <?php endforeach; ?>
    </tbody>
</table>

<?php else: ?>

There are no additional modules installed.

<?php endif;?>

</div>