<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>模块配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script type="text/javascript" src="admin/template/js/admin.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?file=module">网站后台</a></li>
			<li><a href="javascript:void(0);" class="on">会员中心</a></li>	
		</ul>
	</div>
	<div class="main">
		<fieldset>
		<legend>操作提示</legend>
		您可以通过模块配置完成后台以及会员中心的各种组合。
		</fieldset>
		<table cellspacing="0" class="datalist" id="list">
		<tr>
			<th width="85%" class="firstcol">模块名称</th>
			<th width="15%">模块状态</th>
		</tr>
		<?php if($r){foreach($r as $k => $_r){?>
		<tr>
		  <td width="85%"><?php echo $_r['modulename'];?></td>
			<td width="15%" align="center"><?php echo $_r['disabled']?'<font color="#999999">已卸载</font> <a href="'.ADMIN_FILE.'?file=module&action=member_disable&disabled=0&modulename='.$k.'"><u>启用</u></a>':'已启用 <a href="'.ADMIN_FILE.'?file=module&action=member_disable&disabled=1&modulename='.$k.'"><u>禁用</u></a>';?></td>
		</tr>
		<?php }?>
		<tr>
			<td colspan="2" align="left">
			<input type="button" onclick="history.back();" class="submit" value="取消操作" />
			</td>
		</tr>
		</form>
		<?php }else{?>
		<tr><td colspan="2">目前尚未安装任何模块...</td></tr>	
		<?php }?>
		</table>
	</div>
</div>
</body>
</html>