<!-- TITLE: Manage Modules -->
<script type="text/javascript">
function DelMod(m){
if(confirm('Remove module "' + m + '" and drop related database fields and tables ?')){
document.location = 'index.php?page=mods&mod=' + m + '&act=remove&token=##TOKEN##';
}
}
function SubmitMod(act){
document.frm.act.value = act;
document.frm.submit();
}
</script>
<form method=post name=frm action="index.php?page=mods">
<input type=hidden name=act value="">
<input type=hidden name=token value="##TOKEN##">
<table border=0 width="100%" align=center>
<tr><td align=center class=txt8>
<a href="index.php?page=mods&act=regenerate&token=##TOKEN##">Regenerate</a>
</td>
</tr>
</table>
<table border=1 width="100%" cellpadding=2 cellspacing=0>
<tr>
<th><input type=checkbox name=chk_all value=1 OnClick="SwitchItemsAdm('mod[]')"></th>
<th>Module name</th>
<th>Description</th>
<th>Directory</th>
<th>State</th>
<th>Actions</th>
</tr>
<!-- TPL_INSERT : row -->
<!-- TPL_CELL : def -->
<tr>
<td><input type=checkbox name=mod[] value="##dir##"></td>
<td class=txt8><center>##name##</td>
<td class=txt8><center>##descr##</td>
<td class=txt8><center>##dir##</td>
<td class=txt8><center>##state##</td>
<td class=txt8><center>
<nobr>
##action##
<a name="##dir##" href="index.php?page=mods&mod=##dir##&act=edit&token=##TOKEN##">Edit</a>
</nobr><br />
<a href="javascript:DelMod('##dir##')">Remove</a> |
<a href="#" OnClick="popUp('../modules/##dir##/readme.txt','wHelp',50,50,670,500)">Help</a>
</td>
</tr>
<!-- /TPL_CELL : def -->
<!-- /TPL_INSERT : row -->
</table>
<br />
<center>
<input type=button value="Initialise" OnClick="SubmitMod('initialise')"
class=button><input type=button value="Activate" OnClick="SubmitMod('activate')"
class=button><input type=button value="Deactivate" OnClick="SubmitMod('deactivate')"
class=button><input type=button value="Remove" OnClick="SubmitMod('remove')"
class=button>
</center>
</form>