<script type="text/javascript">
//<!--
	function doModShowHide(id) {
		obj = document.getElementById('modshow_'+id);
		obj.style.display = (obj.style.display == 'block') ? 'none' : 'block';
	}
//-->
</script>
<h2>{V_BLOCK_SUBTITLE}</h2>

<!--if($V_MODULES)-->
<h3>{L_INSTALLED_MODULES}</h3>
<form action="{C_SITE.REL_URL}modules/modules/main.act.php" method="post">
<input type="hidden" name="action" value="set_default" />
<input type="hidden" name="auth" value="{C_AUTH_STR}" />
<table class="data">
<tr class="head">
	<td style="width: 30px;">{L_DEFAULT}</td>
	<td>{L_MODULE}</td>
</tr>
<!--{bgn: module}-->
<tr>
	<td class="id" style="text-align:center;">{V_DEFAULT.RADIO}</td>
	<td>
		<h3>{V_ID} - <a name="{V_MODULE}" href="{C_SITE.REL_URL}index.php/admin/modules/{V_MODULE}">{V_MODULE}</a></h3>

		<div class="small">

		<h4>{L_MODULE_SETTINGS}</h4>
		<b>{L_AUTH_EXEC}:</b> {V_AUTH_EXEC}<br />
		<b>{L_AUTH_MANAGE}:</b> {V_AUTH_MANAGE}<br />

		<div id="modshow_{V_ID}" style="display:none">
		<hr />
		<h4>{L_MODULE_INFO}</h4>
		<b>{L_AUTHOR}:</b> {V_AUTHOR}<br />
		<b>{L_HOMEPAGE}:</b> {V_HOMEPAGE}<br />
		<b>{L_VERSION}:</b> {V_VERSION}<br />
		<b>{L_RELEASE_AUTHOR}:</b> {V_RELEASE_AUTHOR}<br />
		<b>{L_NOTES}:</b><br />
		{V_NOTES}<br />
		<b>{L_CHANGELOG}:</b><br />
		{V_CHANGELOG}<br />

		</div>

		<a href="javascript:doModShowHide('{V_ID}')">[{L_TOGGLE_EXPAND}]</a>

	</td>
</tr>
<!--{end: module}-->
</table>
<div class="buttons">
	{B_RESET} {B_SUBMIT}
</div>
<input type="hidden" name="return" value="{V_RETURN}" />
</form>
<!--endif-->

<!--if($V_PACKAGES)-->
<form action="{C_SITE.REL_URL}modules/modules/main.act.php" method="post">
<input type="hidden" name="action" value="install" />
<input type="hidden" name="auth" value="{C_AUTH_STR}" />
<h3>{L_NEW_PACKAGES}</h3>
<table class="data">
	<tr class="head">
		<td>{L_MODULE}</td>
		<td>{L_TIMESTAMP}</td>
	</tr>
	<!--{bgn: package}-->
	<tr>
		<td>
		<input type="checkbox" name="module[]" value="{V_MODULE}" />
		{V_MODULE}
		</td>
		<td>{V_TIMESTAMP}</td>
	</tr>
	<!--{end: package}-->
</table>
<div class="buttons">
	{B_RESET} {B_SUBMIT}
</div>
<input type="hidden" name="return" value="{V_RETURN}" />
</form>
<!--endif-->
