{x2;if:!$userhash}
{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" id="datacontent">
{x2;endif}
			<ul class="breadcrumb">
				<li><a href="index.php?{x2;$_app}-master">{x2;$apps[$_app]['appname']}</a> <span class="divider">/</span></li>
				<li class="active">模型管理</li>
			</ul>
			<ul class="nav nav-tabs">
				<li class="active">
					<a href="#">模型列表</a>
				</li>
				<li class="pull-right">
					<a href="index.php?{x2;$_app}-master-module-add">添加模型</a>
				</li>
			</ul>
			<table class="table table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>模型名称</th>
						<th>模型代码</th>
						<th>模型描述</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{x2;tree:$modules,module,mid}
					<tr>
						<td>{x2;v:module['moduleid']}</td>
						<td>{x2;v:module['modulename']}</td>
						<td>{x2;v:module['modulecode']}</td>
						<td>{x2;v:module['moduledescribe']}</td>
						<td>
							<div class="btn-group">
								<a class="btn" href="index.php?{x2;$_app}-master-module-preview&moduleid={x2;v:module['moduleid']}&page={x2;$page}{x2;$u}" title="预览"><em class="icon-search"></em></a>
								<a class="btn" href="index.php?{x2;$_app}-master-module-fields&moduleid={x2;v:module['moduleid']}&page={x2;$page}{x2;$u}" title="字段管理"><em class="icon-cog"></em></a>
								<a class="btn" href="index.php?{x2;$_app}-master-module-modify&moduleid={x2;v:module['moduleid']}&page={x2;$page}{x2;$u}" title="修改模型信息"><em class="icon-edit"></em></a>
								<a class="btn ajax" href="index.php?{x2;$_app}-master-module-del&moduleid={x2;v:module['moduleid']}&page={x2;$page}{x2;$u}" title="删除模型"><em class="icon-remove"></em></a>
							</div>
						</td>
					</tr>
					{x2;endtree}
				</tbody>
			</table>
{x2;if:!$userhash}
		</div>
	</div>
</div>
</body>
</html>
{x2;endif}