<%@ 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"%>
<!--_meta 作为公共模版分离出去-->
<!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="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/icheck/icheck.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" />

	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/index/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/index/layer/layer.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/validate-methods.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/messages_zh.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/icheck/jquery.icheck.min.js"></script>

	<script type="text/javascript">
        // $(function () {
        //     $("#sub").click(function(){
        //         var  title = $("input[name='title']").val();
        //
        //
        //         if(title == null || title == ''){
        //             layer.msg("英文名称不能为空~");
        //             return false;
        //         }
        //
        //         $('#subform').submit();
        //     });
        // });
        function update() {
            $.post("updateDetailCaseType.html",$("#subform").serialize(),function (data) {

                if (data.is) {
                    window.location.href = "caseTypeManage.html";
                }else{
                    layer.msg("修改失败", {icon: 2, time: 1000});
                }
            },"json")

        }
	</script>

<title>管理员管理</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i>案例管理
	<a href="/admin/caseTypeManage.html"><i class="Hui-iconfont">&gt;</i>案例分类</a>
	<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>
<article class="page-container">
	<form action="/admin/updateDetailCaseType.html" method="post" enctype="multipart/form-data" class="form form-horizontal" id="subform">
		<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="${caseType.id}">
			</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="typename" value="${caseType.typename}">
			</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="typeinfo" value="${caseType.typeinfo}">
			</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="typeweight" value="${caseType.typeweight}">
				<label style="color: red" >权重越大越靠前</label>
			</div>
		</div>

		<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" onclick="update()" id="sub" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
			</div>
		</div>
	</form>
</article>

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">

</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>