<!--#include file="Sort_Fun.asp" -->
<%sid=isnum(dbmaxid("[dbpre]sort","sid"))+1%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<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">
<link rel="stylesheet" type="text/css" href="../../inc/webuploader/css/webuploader.css" />
<link rel="stylesheet" type="text/css" href="../../inc/webuploader/css/style.css" />
<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&Stype=<%=Stype%>" class="form-horizontal" id="contentform">
        <div class="col-sm-12">
            <div class="ibox float-e-margins"> <a class="collapse-link">
              <div class="ibox-title">
                <h5>添加分类</h5>
                <div class="ibox-tools"> <i class="fa fa fa-chevron-up"></i> </div>
              </div>
              </a>
              <div class="ibox-content">
                <input type="hidden" name="SID"  value="<%=SID%>">
                <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>
            </div>
            
        </div>
        
        <div class="col-sm-12">
          <div class="  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>
      </form>
    </div>
  </div>
  <!-- End Panel Other --> 
</div>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/webuploader.js"></script> 
<script type="text/javascript" charset="utf-8" src="../../inc/webuploader/config.asp"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/oneupload.js"></script> 
<link href="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<script src="<%=sitepath%>plugins/switchery/switchery.js"></script>
<link href="<%=sitepath%>plugins/switchery/switchery.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>

<script>
$(function(){ 
	//按钮，类型，上传目录，返回id，命名
	fileuploader("spic_upload","image","sort","spic","pic_<%=sid%>")
	fileuploader("sico_upload","image","sort","sico","ico_<%=sid%>")	
	if("<%=stype%>"!=""){
	var stp=$('#Stype').children('option:selected').attr("stp"); 
	var ctp=$('#Stype').children('option:selected').attr("ctp"); 
	var sfd=$('#Stype').children('option:selected').attr("sfd"); 
	var cfd=$('#Stype').children('option:selected').attr("cfd"); 
	var sname=$('#Stype').children('option:selected').attr("sname"); 
	var cname=$('#Stype').children('option:selected').attr("cname"); 
	$("#S_Template").prepend("<option value='"+stp+"' selected>"+stp+"</option>");
	$("#C_Template").prepend("<option value='"+ctp+"' selected>"+ctp+"</option>");
	$("#S_Folder").val(sfd);
	$("#C_Folder").val(cfd);
	$("#S_FileName").val(sname);
	$("#C_FileName").val(cname);
	}
}) 
$("#S_URL").change(function(){ 
	  var str=$(this).val();
	  $("#S_URL").val(UpperFirstLetter(str))
}) 
$('#Stype').change(function(){ 
	var stp=$(this).children('option:selected').attr("stp"); 
	var ctp=$(this).children('option:selected').attr("ctp"); 
	var sfd=$(this).children('option:selected').attr("sfd"); 
	var cfd=$(this).children('option:selected').attr("cfd"); 
	var sname=$(this).children('option:selected').attr("sname"); 
	var cname=$(this).children('option:selected').attr("cname"); 
	$("#S_Template").prepend("<option value='"+stp+"' selected>"+stp+"</option>");
	$("#C_Template").prepend("<option value='"+ctp+"' selected>"+ctp+"</option>");
	$("#S_Folder").val(sfd);
	$("#C_Folder").val(cfd);
	$("#S_FileName").val(sname);
	$("#C_FileName").val(cname);
	}) 
</script> 

</body>
</html>