<!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" type="text/css" href="{{kg['tpl_url']}}style/adminpage_update.css">
<script src="{{kg['tpl_url']}}script/jquery.min.js"></script>
<script src="{{kg['tpl_url']}}script/cropper.min.js"></script>
<script src="{{kg['tpl_url']}}script/amazeui.datetimepicker.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/adminpage_update.js"></script>
</head>
<body data-type="generalComponents" style="overflow: 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">
				{{kg['lang'][action][0]}}
			</div>
			<ol class="am-breadcrumb">
				<li><a href="./" class="am-icon-home">首页</a></li>
				<li><a href="adminpage_manage">后台模块管理</a></li>
				<li class="am-active">{{kg['lang'][action][1]}}</li>
			</ol>
			<div class="tpl-portlet-components">
				<div class="portlet-title">
					<div class="caption font-green bold">
						<span class="am-icon-code"></span>&nbsp;{{kg['lang'][action][2]}}
					</div>
				</div>
				<div class="tpl-block">
					<div class="am-g">
						<div class="tpl-form-body tpl-form-line">
							<form class="am-form tpl-form-line-form" method="post" action="#">
								<div class="am-form-group am-form-icon am-form-feedback">
									<label for="user-name" class="am-u-sm-3 am-form-label">模块名称&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Title
										</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input ngco_Ojs_bitian" id="title" name="title" value="{{data['name']}}">
										<i class=""></i>
									</div>
								</div>
								<div class="am-form-group default-tpl">
									<label class="am-u-sm-3 am-form-label">所属模块&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Module</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3 posi_box2 showslelect">
										<select name="module" data-am-selected="{searchBox: 1}" id="module" style="display: none;">
											<option value="-1">请选择所属模块</option>
											<option {% if data['upper']==0 %}selected="selected" {% endif %}value="0">作为一级模块</option>
											{% for row in module %}
											<option {% if row['id']==data['upper'] %}selected="selected" {% endif %} value="{{row['id']}}">{{row['name']}}</option>
											{% endfor %}
										</select>
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">栏目图片&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Img</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<!-- 图片区域 -->
										<div class="am-form-group am-form-file">
											<div class="tpl-form-file-img ngco-none-display2" id="ngac_Nfu_box">
												<img src="{% if data['image'] %}{{data['image']}}{% else %}/{% endif %}" id="finalImg" alt="" />
											</div>
											<div>
												<button type="button" class="am-btn am-btn-danger am-btn-sm title2div" title="未选择任何图片" id="originalImg">
													<i class="am-icon-cloud-upload"></i>&nbsp;原始上传
												</button>
												<input type="file" id="originalChoose" class="ngco-No-widht" />
												<input type="hidden" name="image" id="originalUpdate" value='' />
												<button type="button" class="am-btn am-btn-danger am-btn-sm title2div" title="未选择任何图片" id="replaceImg">
													<i class="am-icon-cloud-upload"></i>&nbsp;裁切上传
												</button>
											</div>
											<!--图片裁剪框 -->
											<div style="display: none" class="tailoring-container">
												<div class="black-cloth ngad-Jsj-click"></div>
												<div class="tailoring-content">
													<div class="tailoring-content-one">
														<label title="上传图片" for="chooseImg" class="l-btn choose-btn">
															<input type="file" name="filename" accept="image/*" id="chooseImg" class="hidden ngad-Ksj-change">
															选择图片
															<input type="hidden" name="image" id="imgUpdate" value='' />
														</label>
														<div class="close-tailoring ngad-Usj-click">×</div>
													</div>
													<div class="tailoring-content-two">
														<div class="tailoring-box-parcel">
															<img id="tailoringImg" src="/" alt="" />
														</div>
														<div class="preview-box-parcel">
															<p>图片预览：</p>
															<div class="square previewImg"></div>
															<div class="circular previewImg"></div>
														</div>
													</div>
													<div class="tailoring-content-three">
														<button class="l-btn cropper-reset-btn" type="button">复位</button>
														<button class="l-btn cropper-rotate-btn" type="button">旋转</button>
														<button class="l-btn cropper-scaleX-btn" type="button">换向</button>
														<button class="l-btn sureCut" id="sureCut" type="button">确定</button>
													</div>
												</div>
											</div>
											<!--图片裁剪框 -->
											<input id="doc-form-file" type="file" multiple="" class="ngco-No-widht">
										</div>
										<!-- 图片区域结束 -->
									</div>
								</div>
								<div class="am-form-group page-file">
									<label class="am-u-sm-3 am-form-label">页面文件&nbsp;/&nbsp;<span class="tpl-form-line-small-title">PageFile</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" name="page" id="user-name" value="{{data['page']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">图标样式类&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Icon</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" name="icon" id="icon-input" value="{{data['icon']}}"><span class="" id="showicon"></span>
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">排序&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Sort</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" name="sort" id="user-name2" value="{{data['sort']}}">
									</div>
								</div>
								<div class="am-form-group">
									<label class="am-u-sm-3 am-form-label">启用&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Enable</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<div class="tpl-switch">
											<input name="enable" {% if data['enable']==1 %}checked="checked" {% endif %} value="1" id="default2" type="checkbox" class="ios-switch bigswitch tpl-switch-btn">
											<div class="tpl-switch-btn-view">
												<div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<div class="am-form-group page-file">
									<label class="am-u-sm-3 am-form-label">快捷添加&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Plus</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<div class="tpl-switch">
											<input name="plus" {% if data['plus']==1 %}checked="checked" {% endif %} value="1" id="default" type="checkbox" class="ios-switch bigswitch tpl-switch-btn">
											<div class="tpl-switch-btn-view">
												<div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<input type="hidden" value="submit" name="action">
								<div class="am-form-group">
									<div class="am-u-sm-9 am-u-sm-push-3">
										<button type="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success">{{kg['lang'][action][3]}}</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		</div><!-- /.scrollbar-wrap -->
	</div>
	<script>
	kg.title2div('title2div'); //调用此方法， 把该元素的title属性替换成div
	</script>
</body>
</html>