<%@ page import="com.baidu.ueditor.define.BaseState" %>
<%@ page import="com.baidu.ueditor.ActionEnter" %>
<%@ page import="com.baidu.ueditor.define.ActionMap" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String base = pageContext.getServletContext().getContextPath();
%>
<script type="text/javascript">
    window.UEDITOR_SERVER_URL = '<%=base%>';
</script>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		  content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<meta http-equiv="Cache-Control" content="no-siteapp"/>
	<link rel="Bookmark" href="/favicon.ico">
	<link rel="Shortcut Icon" href="/favicon.ico"/>
	<link rel="icon" href="${findicoid.icopic}" type="image/x-icon"/>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/manage/js/jquery.js"></script>
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/static/admin/manage/js/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/H-ui.js"></script>

	<!--[if lt IE 9]>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/index/js/html5shiv.js"></script>
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/static/admin/index/js/respond.min.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css"
		  href="${pageContext.request.contextPath}/static/admin/index/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css"
		  href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css"
		  href="${pageContext.request.contextPath}/static/admin/index/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css"
		  href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css"
		  href="${pageContext.request.contextPath}/static/admin/index/h-ui.admin/css/style.css"/>
	<!--[if IE 6]>
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/static/admin/index/js/DD_belatedPNG_0.0.8a-min.js"></script>
	<script>DD_belatedPNG.fix('*');</script>
	<![endif]-->
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/ue/ueditor.all.min.js"></script>

	<script type="text/javascript" src="${pageContext.request.contextPath}/static/ue/ueditor.config.js"></script>

	<script type="text/javascript" src="${pageContext.request.contextPath}/static/ue/ueditor.all.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/ue/lang/zh-cn/zh-cn.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/ue/ueditor.parse.js"></script>
	<title>${findseoid.title}-后台管理系统</title>
	<style>
		#bodydiv {
			position: relative;
			top: 100px;
			left: 250px;
		}

	</style>


</head>

<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i>关于好彩
	<span class="c-gray en">&gt;</span> 修改信息
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>

<div id="bodydiv">
	<form  method="post" id="newsForm" name="upfile" style="width: 70%" enctype="multipart/form-data">
		<%--<div class="row cl">--%>
		<%--<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-1">--%>
		<%--<button type="button" class="btn btn-success radius" id="sub" onclick="update()" name="admin-role-save"><i class="icon-ok"></i> 提交</button>--%>
		<%--</div>--%>
		<%--</div>--%>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-1"><span class="c-red">*</span>编号:</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text"  name="id"  value="${about.id}" >
			</div>
		</div>



		<%--<div>--%>
		<%--<div class="form-group">--%>
		<%--<input type="hidden" id="picture" name="newsCover" value="${data.newsCover}"/>--%>
		<%--<img id="preview" src="${data.newsCover}" style="width: 100px;height: 50px;">--%>
		<%--<a href="javascript:void(0);" onclick="upImage();" class="btn btn-primary upload-btn">--%>
		<%--<i class="Hui-iconfont">&#xe642;</i> 上传封面--%>
		<%--</a>--%>
		<%--<a href="javascript:void(0);" onclick="deleteCover();" class="btn btn-primary upload-btn">--%>
		<%--<i class="Hui-iconfont">&#xe609;</i> 删除封面--%>
		<%--</a>--%>

		<%--</div>--%>

		<%--<script>--%>
		<%--function deleteCover(){--%>
		<%--$("#picture").val("");--%>
		<%--$("#preview").attr("src", "");--%>
		<%--}--%>
		<%--</script>--%>
		<%--</div>--%>
		<%--<br>--%>
		<%--编辑器--%>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-1"><span class="c-red"></span>详情：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<script id="introduction" name="content" style="width:100%;height:200px;" type="text/plain">${about.content}</script>
                </div>
                </div>
                <div>
                <button  class="btn btn-success radius" onclick="update()" name="admin-role-save" >提交</button>
                    </div>
                </form>
                </div>
                <script>
                function update() {
                    $.post("/admin/updateAboutDetail.html",$("#newsForm").serialize(),function (data) {
                        if(data.is){
                            alert(data.msg);
                            window.location.href="/admin/updateAbout.html?id=1";
                        }else {
                            alert(date.msg);

                        }

                    },"json")
                }
				</script>
				<!--请在下方写此页面业务相关的脚本-->
				<!-- 百度文本编辑器   引用文件 -->
				<link href="<%=base%>/static/ue/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
				<script src="<%=base%>/static/ue/ueditor.config.js" type="text/javascript"></script>
				<script src="<%=base%>/static/ue/ueditor.all.js" type="text/javascript"></script>
				<script type="text/javascript" src="<%=base%>/static/ue/lang/zh-cn/zh-cn.js"></script>

				<!-- 百度文本编辑器   js -->
				<script type="text/javascript">
                    $(function(){
                        var ue = UE.getEditor('introduction',{
                            //关闭字数统计
                            wordCount:false,
                            toolbars:[['fullscreen', 'source', '|', 'undo', 'redo', '|',
                                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                                'directionalityltr', 'directionalityrtl', 'indent', '|',
                                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                                'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                                'insertimage', 'emotion', 'insertvideo',  'attachment', 'map',    'template', 'background', '|',
                                'horizontal', 'date', 'time', 'spechars',  'wordimage', '|',
                                'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
                                'print', 'preview', 'searchreplace', 'help'
                            ]],
                            //关闭elementPath
                            elementPathEnabled:false,
                        });
                    });


                    var currentBrowserId;
                    function browserImage(targetId){
                        currentBrowserId = targetId;
                        var weboxTemp = $.webox({
                            height:600,
                            width:1024,
                            bgvisibel:true,
                            title:'图片管理',
                            iframe:'<%=base%>/admin/image/imgbox.html?'+Math.random()
                        });
                    }

                    function setImagepath(imgPath){
                        $('#'+currentBrowserId).val(imgPath);
                    }

                    function closeFrame(){
                        $('#locked .span').click();
                    }
				</script>


</body>
</html>