{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="main">
			<div class="col-xs-2 leftmenu">
				{x2;include:menu}
			</div>
			<div id="datacontent">
				<div class="box itembox" style="margin-bottom:0px;border-bottom:1px solid #CCCCCC;">
					<div class="col-xs-12">
						<ol class="breadcrumb">
							<li><a href="index.php?core-master">全局</a></li>
							<li class="active">导航管理</li>
						</ol>
					</div>
				</div>
				<div class="box itembox" style="padding-top:20px;margin-bottom:0px;">
					<h4 class="title" style="padding:10px;">
						导航管理
						<a class="btn btn-primary pull-right" href="index.php?core-master-navs-add">添加导航</a>
					</h4>
					<form action="index.php?core-master-navs-lite" method="post">
						<table class="table table-bordered table-hover">
							<thead>
							<tr class="info">
								<th width="40"><input type="checkbox" class="checkall" target="delids"/></th>
								<th width="60">权重</th>
								<th width="60">
									ID
								</th>
								<th>
									导航名称
								</th>
								<th>
									地址
								</th>
								<th width="120">
									状态
								</th>
								<th width="80">
									操作
								</th>
							</tr>
							</thead>
							<tbody>
							{x2;tree:$navs['data'],nav,nid}
							<tr>
								<td><input type="checkbox" name="delids[{x2;v:nav['navid']}]" value="1"></td>
								<td><input class="form-control" type="text" name="ids[{x2;v:nav['navid']}]" value="{x2;v:nav['navsequence']}" style="width:36px;padding:2px 5px;"/></td>
								<td>{x2;v:nav['navid']}</td>
								<td>
									{x2;v:nav['navtitle']}
								</td>
								<td>
									{x2;v:nav['navurl']}
								</td>
								<td>
									{x2;if:v:nav['navstatus']}启用{x2;else}禁用{x2;endif}
								</td>
								<td class="actions">
									<div class="btn-group">
										<a class="btn" href="index.php?core-master-navs-modify&navid={x2;v:nav['navid']}" title="修改"><em class="glyphicon glyphicon-edit"></em></a>
									</div>
								</td>
							</tr>
							{x2;endtree}
							</tbody>
						</table>
						<div class="form-group">
							<label class="radio-inline">
								<input type="radio" name="action" value="lite" checked/>排序
							</label>
							<label class="radio-inline">
								<input type="radio" name="action" value="open" />启用
							</label>
							<label class="radio-inline">
								<input type="radio" name="action" value="close" />禁用
							</label>
							<label class="radio-inline">
								<input type="radio" name="action" value="delete" />删除
							</label>
							{x2;tree:$search,arg,sid}
							<input type="hidden" name="search[{x2;v:key}]" value="{x2;v:arg}"/>
							{x2;endtree}
							<label class="radio-inline">
								<button class="btn btn-primary" type="submit">提交</button>
							</label>
							<input type="hidden" name="modifycontentsequence" value="1"/>
							<input type="hidden" name="courseid" value="{x2;$course['csid']}"/>
							<input type="hidden" name="page" value="{x2;$page}"/>
						</div>
						<ul class="pagination pull-right">
							{x2;$nav['pages']}
						</ul>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
{x2;include:footer}
</body>
</html>