{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2">
			{x2;include:menu}
		</div>
		<div class="span10">
			<ul class="breadcrumb">
				<li><a href="index.php?core-master">全局</a> <span class="divider">/</span></li>
				<li class="active">模块管理</li>
			</ul>
			<table class="table table-hover">
				<thead>
					<tr>
						<th>
							模块标识
						</th>
						<th>
							模块名称
						</th>
						<th>
							状态
						</th>
						<th>
							操作
						</th>
					</tr>
				</thead>
				<tbody>
					{x2;tree:$localapps['dir'],lapp,aid}
					<tr>
						<td>{x2;v:lapp['name']}</td>
						<td>
							{x2;if:$apps[v:lapp['name']]}{x2;$apps[v:lapp['name']]['appname']}{x2;else}未设置{x2;endif}
						</td>
						<td>
							{x2;if:$apps[v:lapp['name']]['appstatus']}正常{x2;else}禁用{x2;endif}
						</td>
						<td>
							<a class="btn" href="index.php?core-master-apps-config&appid={x2;v:lapp['name']}"><em class="icon-cog"></em></a>
						</td>
					</tr>
					{x2;endtree}
				</tbody>
			</table>
		</div>
	</div>
</div>
</body>
</html>