<!--#include file="Content_Fun.asp" -->

<!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">
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="<%=sitepath%>plugins/jedate/jedate.css">
<link href="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="<%=sitepath%>plugins/checkbox/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> var upfolder="<%=Stype%>"; </script>
<script type="text/javascript" charset="utf-8" src="../../inc/webuploader/config.asp"></script>
<script type="text/javascript" charset="utf-8" src="../../inc/ueditor/ueditor.config.asp"></script>
<script type="text/javascript" charset="utf-8" src="../../inc/ueditor/ueditor.js"></script>
<script type="text/javascript" src="../../inc/webuploader/js/webuploader.js"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/imgupload.js"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/fileupload.js"></script> 
<script type="text/javascript" src="../../inc/webuploader/js/oneupload.js"></script> 
</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-6">
          <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">
              <div class="form-group">
                <label class="col-sm-2 control-label">分类</label>
                <div class="col-sm-4">
                  <select class="form-control m-b col-sm-2" name="SID">
                    <%=Loadsortlist%>
                  </select>
                </div>
                <%=getbrand(Stype,0)%> </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">标题</label>
                <div class="col-sm-10">
                  <input type="text" name="C_title" required id="title" value="" class="form-control" style="color:<%=C_Color%>">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">颜色</label>
                <div id="color" class="colorpicker-component">
                  <div class="col-sm-4">
                    <div class="input-group" >
                      <input type="text" name="C_Color" class="form-control" value="#000"/>
                      <span class="input-group-addon"><i></i></span> </div>
                  </div>
                </div>
                <label class="col-sm-2 control-label">时间</label>
                <div class="col-sm-4">
                  <div class="input-group">
                    <input type="text" class="form-control time" name="C_AddTime" id="addtime"  placeholder="YYYY-MM-DD hh:mm:ss" >
                    <span class="input-group-addon"> <i class="fa fa-calendar"></i></span> </div>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label"> <a class="button" id="getpinyin"><i class="fa fa-text-width" title="自动拼音标题"></i>网址</a></label>
                <div class="col-sm-7">
                  <input type="text" name="C_PageName" oldvalue="" id="pytitle" placeholder="点击网址自动生成" value="" class="form-control">
                </div>
                <div class="col-sm-3  control-label"><span>拼音后利于收录</span></div>
              </div>
            </div>
          </div>
        </div>

        <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">
              <div class="form-group">
                <div class="col-sm-12">
                  <textarea class="textarea textarea-editor" style="width:100%; height:300px" name="C_Content" id="content"></textarea>
                  <script>var $cmsEditor = new UE.getEditor('content');</script>
                  </div>
                 <div class="col-sm-12">   
                  <div class="input-group m-b"><span class="input-group-addon">TAB标签</span>
                    <input type="text" name="C_tag" id="tag" value="" class="form-control" onFocus="layer.tips('用逗号分隔',this)">
                     <a class="input-group-addon  btn-info"  id="select_tag" data-toggle="modal"  data-target="#systag">选择标签</a>                 
                    </div>                     
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="modal fade" id="systag" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button><h4 class="modal-title">选择系统TAG</h4></div><div class="modal-body">
		<% dim data,i : data=dbload("[dbpre]tag","T_Name","","t_onoff=1","TID asc" )
		if ubound(data)>=0 then 
		for i=0 to ubound(data,2)
		 echo "<a class='btn btn-link addtag'>"&data(0,i)&"</a>" 
		next
		end if
		 %></div><div class="modal-footer"><button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button></div></div></div></div>

        
        <div class="col-sm-12">
          <div class="ibox float-e-margins"> <a class="collapse-link">
            <div class="ibox-title">
              <h5>SEO管理</h5>
              <div class="ibox-tools"> <i class="fa fa-chevron-up"></i> </div>
            </div>
            </a>
            <div class="ibox-content SEO">
              <div class="form-group">
                <div class="col-sm-12">
                  <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>
          <div class="ibox-content col-sm-12">
            <div class=" col-sm-10 col-md-offset-1">
              <div class="col-sm-6">
                <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>
    </div>
  </div>
  <!-- End Panel Other --> 
</div>
<script type="text/javascript" src="<%=sitepath%>plugins/jedate/jquery.jedate.js"></script> 
<script src="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.js"></script> 
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/content.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
</body>
</html>