<!--#include file="Custom_Fun.asp" -->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<link href="<%=sitepath&adminpath%>/css/checkbox.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
<div class="ibox float-e-margins">
<div class="row m-t">
<form method="post" action="?act=add" class="form-horizontal" id="contentform">
<div class="col-sm-12">
  <div class="ibox float-e-margins">
    <div class="ibox-title">
      <h5>参数添加</h5>
      <div class="ibox-tools"> <i class="fa fa fa-chevron-up"></i> </div>
    </div>
    <div class="ibox-content">
      <div class="form-group">
        <label class="control-label">更多扩展功能请访问启点在线官方网站<a href="http://www.kelvinvt.com" target="_blank">kelvinvt.com</a> 点我直接会话QQ：<a href="http://wpa.qq.com/msgrd?v=3&uin=15038883&site=qq&menu=yes" target="_blank">15038883</a></label>

         </div>
      
    </div><br/>
        <div class="col-sm-12">
          <div class=" col-sm-10 col-md-offset-1">
        <button class="btn btn-primary" type="submit"><i class="fa fa-floppy-o"></i>　保存内容</button>
          <button class="btn btn-white" onClick="closelayer()" type="reset"><i class="fa fa-close"></i> 返回</button>
      </div>
    </div>
  </div>
</div>
</form>
<!-- End Panel Other -->
</div>
<script>
$(".CustomClass").change(function() {
    var checkValue = $(this).val();
    if (checkValue == "1") {
        $(".numtype").show();
        $("#customValues").val(0);
    } else if (checkValue > 3 && checkValue < 7) {
        $("#options").text("备选内容不能为空，用逗号分隔");
        $(".numtype").hide();
		$("#customValues").val("");
		$("#customOptions").val("")
	} else if (checkValue== 7) {
        $("#options").text("可指定上传类型（pdf,xls），用逗号分隔");
        $(".numtype").hide();
		$("#customValues").val("");
		$("#customOptions").val("");
    } else if (checkValue ==10) {
        $(".numtype").hide();
		$("#customValues").val("");
        $("#customOptions").val(" isinitVal:true");
        $("#options").html("<a href='http://www.kelvinvt.com' target='_blank'>日期类型备选请参照帮助</a>")
    } else {
        $(".numtype").hide();
		$("#customValues").val("");
        $("#customOptions").val("");
        $("#options").html("备选内容应为空")
    }
})
$("#about").click(function () {if ($(this).is(":checked")) {$(this).parent().siblings().find("input").removeAttr("checked").attr("disabled","disabled");}else{$(this).parent().siblings().find("input").removeAttr("disabled")} });
$("#brand").click(function () {if ($(this).is(":checked")) {$(this).parent().siblings().find("input").removeAttr("checked").attr("disabled","disabled");}else{$(this).parent().siblings().find("input").removeAttr("disabled")} });
$("#gbook").click(function () {if ($(this).is(":checked")) {$(this).parent().siblings().find("input").removeAttr("checked").attr("disabled","disabled");$(".CustomClass option[value='7']").attr("disabled", true); $(".CustomClass option[value='8']").attr("disabled", true); $(".CustomClass option[value='9']").attr("disabled", true); $(".CustomClass option[value='10']").attr("disabled", true);  }else{$(this).parent().siblings().find("input").removeAttr("disabled");$(".CustomClass option[value='7']").removeAttr("disabled") ;$(".CustomClass option[value='8']").removeAttr("disabled") ;$(".CustomClass option[value='9']").removeAttr("disabled") ; ;$(".CustomClass option[value='10']").removeAttr("disabled") ;}
});
</script>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<link href="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script> 
<script src="<%=sitepath&adminPath%>js/content.min.js"></script>
</body>
</html>
