<!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/wx_cs_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/wx_cs_update.js"></script>
</head>
<body data-type="generalComponents">
	{% 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><a href="wx_cs_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>&nbsp;修改客服资料
					</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="" enctype="multipart/form-data">
								<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">Name
										</span>
									</label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" placeholder=""  name="nickname" value="{{data['nickname']}}">
									</div>
								</div>
								<div class="am-form-group a-clic ngar-Simg">
									<label class="am-u-sm-3 am-form-label ngar-Simlab">客服头像&nbsp;/&nbsp;<span class="tpl-form-line-small-title">Portrait</span></label>
									<ul data-am-widget="gallery"style="margin-left: 10%;" data-am-gallery="{ pureview: true }" class="ngar-uljs  am-gallery sm-block-grid-2 md-block-grid-3 lg-block-grid-4 am-gallery-bordered ngsty-Iul am-no-layout" id="picture_view">
										{% if data['headingurl'] %}
										<li style="float: left; position: relative">
											<div class="tpl-table-images-content-i-info absolute-middle">
												<button type="button" class="other-btn1 btn1 btnsty am-btn-circle am-btn am-btn-success am-margin-horizontal btn-update ty-button" data-btn="update" style="display: none;"><span class="square1"><i class="am-icon-pencil-square-o"></i>&nbsp;修改</span></button>
												<button type="button" class="other-btn2 btnsty am-btn-circle am-btn am-btn-danger am-margin-horizontal btn-remove ty-button" data-btn="remove" style="display: none;"><span class="remoe1"><i class="am-icon-remove ngsty-rem"></i>&nbsp;删除</span></button>
												<button type="button" class="other-btn2 btnsty am-btn-circle am-btn am-btn-secondary am-margin-horizontal btn-search ty-button" data-btn="search" style="display: none;"><span class="search1"><i class="am-icon-search ngsty-rem"></i>&nbsp;查看</span></button>
											</div>
											<img src="{{data['headingurl']}}" height="120px" alt="" data-am-pureviewed="1">
											<input type="hidden" name="picture" value="{{data['headingurl']}}">
										</li>
										{% endif %}
									</ul>
									<div class="ewm-upload  btn-add" id="qrcodeUpload" data-btn="add" style="margin-left: 10%! important;{% if data['headingurl'] %}display:none{% endif %}">
										<input name="image" type="text" class="input-file" id="qrcodeInput">
										<div class="shuline"></div>
										<div class="hengline"></div>
									</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">Group</span></label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<select data-am-selected="{btnSize: 'sm'}" name="group">
											<option value="0">不分组</option>
											{% for row in cs_group %}
											<option {% if data['group_id'] == row['id'] %}selected="selected"{% endif %}value="{{row['id']}}">{{row['group_name']}}</option>
											{% endfor %}
										</select>
									</div>
								</div>
								<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">WeChat
										</span>
									</label>
									<div class="am-u-sm-6 am-u-sm-pull-3">
										<input type="text" class="tpl-form-input" placeholder="" id="user-name" name="wxname" value="{{data['kf_wx']}}">
									</div>
								</div>
								<input type='hidden' name='action' value="submit">
								<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" id="ngme-Yjs-sublime">保存修改</button>
									</div>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		</div><!-- /.scrollbar-wrap -->
	</div>
<!-- 模态框 -->
	<div class="am-modal am-modal-confirm modal" tabindex="-1">
		<div class="am-modal-dialog">
			<div class="am-modal-hd modal-header ngdo-D2">
			</div>
			<div class="am-modal-bd am-padding-bottom-0">
				<form class="am-form" id="imgInFo">
					<div data-am-widget="list_news" class="am-list-news am-list-news-default">
						<div class="am-list-news-bd">
							<ul class="am-list">
								<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-right border-none bg-transparent am-padding-bottom-0 ngdo-Li1">
									<div class="am-col am-u-md-8 am-list-main ngdo-D1">
										<div class="am-input-group am-input-group-primary am-margin-bottom-sm" style="    margin: 0px;">
											<div class="am-form-group am-form-file" style="margin-left: 4rem; margin-bottom: 0rem;">
												<button type="button" title="未选择任何图片" class="am-btn am-btn-danger am-btn-sm title2div ngdo-Bu1" id="originalImg">
													<i class="am-icon-cloud-upload"></i>&nbsp;原始上传
												</button>
												<input type="file" id="originalChoose" class="ngco-No-widht image" />
												<input type="hidden" name="image" id="originalUpdate" value='' />
												<button type="button" title="未选择任何图片" class="am-btn am-btn-danger am-btn-sm title2div" id="replaceImg">
													<i class="am-icon-cloud-upload"></i>&nbsp;裁切上传
												</button>
												<!--图片裁剪框 -->
												<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 class="am-form-group am-form-file am-hide">
											<input type="file" multiple>
										</div>
									</div>
									<div class="am-col am-u-md-4 am-list-thumb fubox_img">
										<img src="{{kg['tpl_url']}}images/a1.png" id="finalImg" />
										<div id="loading"></div>
									</div>
								</li>
							</ul>
						</div>
					</div>
			</div>
			<div class="am-modal-footer">
				<span class="am-modal-btn" id="false" data-am-modal-cancel>取消</span>
				<span class="am-modal-btn" id="true" data-am-modal-confirm>确定</span>
			</div>
		</div>
	</div>
</body>
</html>