<?php
	!defined('IN_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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="admin/template/images/tm_right.css" type="text/css" rel="stylesheet" />
<link href="statics/ui-jquery/jquery-ui.css" type="text/css" rel="stylesheet" />
<title>网站后台管理</title>
<script language="javascript" src="statics/ui-jquery/jquery-1.8.3.js"></script>
<script language="javascript" src="statics/ui-jquery/jquery-ui.js"></script>
<script language="javascript" src="admin/template/images/tm-core.js"></script>
</head>

<body>
	<div class="top-tips">
		<div class="tips-wrap">
			<div class="title">安装模块</div>
			在这里可以对网站未安装功能模块进行导入
		</div>
	</div>
	<div class="manage-tips">
	<a href="?mod=config&file=config&action=module_import" class="add">安装模块</a>
	<a href="?mod=config&file=config&action=module_install" class="top">自定义模块</a>
	</div>
	<table class="table-list" cellpadding="1" cellspacing="1">
		<tr>
			<th>模块名称</th>
			<th>更新日期</th>
			<th>模块文件夹</th>
			<th>模块作者</th>
			<th>操作</th>
		</tr>
		<?php if($result){foreach($result as $val){?>
		<tr class="light">
			<td><?php echo $val['name'];?></td>
			<td><?php echo $moduleobj->version($val['folder']);?></td>
			<td><?php echo $val['folder'];?></td>
			<td title="<?php echo $val['author'];?>"><?php echo $val['author'];?></td>
			<td><a href="?mod=config&file=config&action=module_import&folder=<?php echo $val['folder'];?>">安装</a></td>
		</tr>
		<?php }?>
		<?php }else{?>
			<tr><td colspan="5" bgcolor="#FFFFFF">暂未任何待安装模块</td></tr>
		<?php }?>
		
	</table>
</body>
</html>
