<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" href="{{ kg['tpl_url'] }}style/navig_manage.css">
<script src="{{ kg['tpl_url'] }}script/jquery.min.js"></script>
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{ kg['tpl_url'] }}script/navig_manage.js"></script>
</head>
<body data-type="generalComponents" style="overflow-y: hidden;">
{% include 'component_header.tpl' %}
	<div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
		{% include 'component_left.tpl' %}
		<div class="tpl-content-wrapper">
			<div class="tpl-content-page-title">
				系统及导航管理
			</div>
			<ol class="am-breadcrumb">
				<li><a href="./" class="am-icon-home">首页</a></li>
				<li class="am-active">系统及导航管理</li>
			</ol>
			<div class="tpl-portlet-components">
				<div class="portlet-title">
					<div class="caption font-green bold">
						<span class="am-icon-code"></span>&nbsp;系统及导航管理
					</div>
					<div class="tpl-portlet-input tpl-fz-ml am-no-margintop ">
						<div class="portlet-input input-small input-inline">
							<div class="input-icon right am-fr">
								<div class="am-btn-group am-btn-group-xs">
									<a class="am-btn am-btn-default am-btn-success am-edit am-btn-xs am-btn-add" href="#"><span class="am-icon-plus"></span>&nbsp;添加导航</a>
								</div>
							</div>
							<div class="am-cf"></div>
						</div>
					</div>
				</div>
				<div class="am-g">
					<div class="am-u-sm-12 ngco-No-paddingR">
						<form method="post">
							
							<table class="am-table am-table-striped am-table-hover table-main ngco-Esz-mgibdr">
								<thead>
									<tr>
										<th class="table-title">排序</th>
										<th class="table-title">图标</th>
										<th class="table-title">识别码</th>
										<th class="table-title">导航标题</th>
										<th class="table-title">菜单数量</th>
										<th class="table-set">调用脚本</th>
										<th class="table-title">创建时间</th>
										<th class="table-title">操作</th>
									</tr>
								</thead>
								<tbody>
									{% for row in data %}
									<tr>
										<td>
											<div class="ng4_width ng4-width-border">
												<input name="ngw" value="{{row['sort']}}" type="text" size="4" class="zty-sort">
												<input type="hidden" name="sort[]" value="{{row['id']}},{{row['sort']}}">
											</div>
										</td>
										<td>
											<ul data-am-widget="gallery" class="am-gallery sm-block-grid-2 md-block-grid-3 lg-block-grid-4 am-gallery-default"
												data-am-gallery="{ pureview: true }">
												<li>
													<div class="am-gallery-item">
														<a>
															<img src="{%if row['logo']%}{{row['logo']}}{%else%}{{kg['tpl_url']}}images/admin_default_image.png{%endif%}"
																alt="" style="width: 30px;" />
														</a>
													</div>
												</li>
											</ul>
										</td>
										<td class='aid'>{{row['aid']}}</td>
										<td class='title'>{{row['title']}}</td>
										<td>{{row['menu']}}</td>
										<td>{{'{{ %d|navbar }}' % row['id']}}</td>
										<td>{{row['addtime']}}</td>
										<td>
											<div class="am-btn-toolbar">
												<div class="am-btn-group am-btn-group-xs">
													<a class="am-btn am-btn-default am-btn-xs am-text-secondary title2div" href="navig_update?navid={{row['id']}}"
														title="导航菜单管理"><span class="am-icon-table"></span>&nbsp;菜单</a>
													<a class="am-edit am-btn am-btn-default am-btn-xs am-text-secondary am-btn-edit title2div" title="修改导航">
														<span class="am-icon-pencil-square-o"></span>&nbsp;修改
														<input type="hidden" name="xiugai2" value="{{row['id']}}">
													</a>
													<a href="navig_manage?action=del&id={{row['id']}}"
														class="am-btn am-btn-default am-btn-xs am-text-danger ngro-Jclick-shanchubi title2div" title="删除导航">
														<span class="am-icon-trash-o"></span>&nbsp;删除
													</a>
												</div>
											</div>
										</td>
									</tr>
									{% endfor %}
								</tbody>
							</table>
							{% if not data %}<div class="no-data"><ul>没有相关数据</ul></div>{% endif %}
							<div class="tpl-portlet-input tpl-fz-ml tpl-add-fl">
								<div class="am-btn-toolbar">
									<div class="am-btn-group am-btn-group-xs ng4-width-byn">
										<input type="hidden" name="action" value="sort"/>
										<button class="am-btn am-btn-success" id="addList" type="submit"><span class="am-icon-refresh"></span>&nbsp;更新</button>
									</div>
								</div>
							</div>
							<div class="am-alert am-alert-success success-info">
								<ul class="margin-bottom-none padding-left-lg">
									<li class="am-verify">
										<span class="am-icon-info-circle am-icon-sm am-white"></span>&nbsp;&nbsp;调用方法:{{'{{ id|navbar }}'}}<br />
									</li>
								</ul>
							</div>
						</form>
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		</div><!-- /.scrollbar-wrap -->
	</div>
	<div class="am-modal am-modal-prompt" tabindex="-1" id="my-prompt">
		<div class="am-modal-dialog">
			<div class="am-modal-hd" id="modal-title"></div>
			<div class="am-modal-bd">
				<div class="modal-box">
					<form action="" id="editTwo" method="post">
						<label>标题:&nbsp;&nbsp;</label>
						<input type="text" class="am-modal-prompt-input" placeholder="请输入新标题" name="title"><br>
						<label >识别码:&nbsp;&nbsp;</label>
						<input type="text" class="am-modal-prompt-input" id="aid-input" placeholder="请输入识别码" name="aid"><br>
						<label class="img-label">图标:&nbsp;&nbsp;</label>
						<img src="{{kg['tpl_url']}}images/admin_default_image.png" alt="" id="modal-pic" width='80' height="80" class="default-img" />
						<div class="ewm-upload" id="qrcodeUpload">
							<input type="file" class="input-file" id="qrcodeInput">
							<input type="hidden" id="ewmGather" value="" name="img">
							<div class="shuline"></div>
							<div class="hengline"></div>
							<input type="hidden" name="nav_id" value="" class="modal-input" id="modal-input">
							<input type="hidden" name="action" value="submit" class="modal-input" id="modal-input2">
						</div>
					</form>
				</div>
			</div>
			<div class="am-modal-footer">
				<span class="am-modal-btn" data-am-modal-cancel>取消</span>
				<span class="am-modal-btn" data-am-modal-confirm>提交</span>
			</div>
		</div>
	</div>
	<script>
		 kg.title2div('title2div');	 //调用此方法， 把该元素的title属性替换成div
	</script>
</body>
</html>