<!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/links_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/links_update.js"></script>
</head>
	<body data-type="generalComponents" style="overflow: hidden;">
		{% include 'component_header.tpl' %}
		<div class="tpl-page-container tpl-page-header-fixed">
			{% include 'component_left.tpl' %}
			<div class="tpl-content-wrapper ngco-Osz-marginT">
				<div class="tpl-content-page-title">
					添加友情链接
				</div>
				<ol class="am-breadcrumb">
					<li><a href="./" class="am-icon-home">首页</a></li>
					<li><a href="category_manage">友情链接管理</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> 添加友情链接
						</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="http://py.kyger.cn/kgcms_admin/environ" enctype="multipart/form-data">
									<div class="am-form-group">
										<label class="am-u-sm-3 am-form-label">链接类型 
											<span class="tpl-form-line-small-title">Type
											</span>
										</label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<label class="am-radio-inline">
												<input type="radio"  value="on" name="docInlineRadio" checked='checked'> 文字链接
											</label>
											<label class="am-radio-inline">
												<input type="radio" name="docInlineRadio" value> LOGO链接
											</label>
										</div>
									</div>
									<div class="am-form-group">
										<label for="webname" class="am-u-sm-3 am-form-label">网站名称 <span class="tpl-form-line-small-title">Webname
										</span></label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<input type="text" class="tpl-form-input" id="webname" name="webname" value="">
										</div>
									</div>
									<div class="am-form-group">
										<label for="weburl" class="am-u-sm-3 am-form-label">站点地址 <span class="tpl-form-line-small-title">Weburl
										</span></label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<input type="text" class="tpl-form-input" id="weburl" name="weburl" value="">
										</div>
									</div>
									<div class="am-form-group">
										<label for="color" class="am-u-sm-3 am-form-label">链接颜色 <span class="tpl-form-line-small-title">Color
										</span></label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<input type="text" class="tpl-form-input" id="color" name="color" value="">
										</div>
									</div>
									<div class="am-form-group">
										<label class="am-u-sm-3 am-form-label">LOGO地址 </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">
													<img src="{{kg['tpl_url']}}images/a8.png" id="finalImg" alt=""/>
												</div>
												<button type="button" class="am-btn am-btn-danger am-btn-sm" id="originalImg">
													<i class="am-icon-cloud-upload"></i> 原始上传</button>
													<input type="file" id="originalChoose" />
													<input type="hidden"  name="image" id="originalUpdate" value=''/>
												<button type="button" class="am-btn am-btn-danger am-btn-sm" id="replaceImg">
													<i class="am-icon-cloud-upload"></i> 裁切上传</button>
													<!--图片裁剪框 start-->
												<div style="display: none" class="tailoring-container">
													<div class="black-cloth" onclick="closeTailor(this)"></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" onchange="selectImg(this)">
																选择图片
																<input type="hidden"  name="image" id="imgUpdate" value=''/>
															</label>
															<div class="close-tailoring"  onclick="closeTailor(this)">×</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>
												<!--图片裁剪框 end-->
												<input id="doc-form-file" type="file" multiple="">
											</div>
										</div>
									</div>
									<div class="am-form-group">
										<label for="Webmaster" class="am-u-sm-3 am-form-label">网站管理员 <span class="tpl-form-line-small-title">Webmaster</span></label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<input type="text" class="tpl-form-input" id="Webmaster" name="Webmaster">
										</div>
									</div>
									<div class="am-form-group">
										<label for="contact" class="am-u-sm-3 am-form-label">管理员联系方式 <span class="tpl-form-line-small-title">Contact</span></label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<input type="text" class="tpl-form-input" id="contact" name="contact">
										</div>
									</div>
									<div class="am-form-group">
										<label for="info" class="am-u-sm-3 am-form-label">简要描述 <span class="tpl-form-line-small-title">Info</span></label>
										<div class="am-u-sm-6 am-u-sm-pull-3">
											<input type="text" class="tpl-form-input" id="info" name="info">
										</div>
									</div>
									<div class="am-form-group">
										<label for="sort" class="am-u-sm-3 am-form-label">排序 <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" id="sort" value="" name="sort">
										</div>
									</div>
									<div class="am-form-group">
										<label class="am-u-sm-3 am-form-label">审核是否通过</label>
										 <div class="am-u-sm-6 am-u-sm-pull-3">
											<div class="tpl-switch">
												<input type="checkbox" name="virtual" value="" class="ios-switch bigswitch tpl-switch-btn" checked="">
												<div class="tpl-switch-btn-view">
													<div>
													</div>
												</div>
											</div>
										</div>
									</div>
									<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">提交</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
				{% include 'component_footer.tpl' %}
			</div>
		</div>
	</body>
</html>
