<!--#include file="Content_Fun.asp" -->
<%getContent%>
<!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=edit&Stype=<%=stype%>&CID=<%=Cid%>" 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"  id="sortlist">
                    <%=Loadsortlist%>
                  </select>
                </div>
                <%=getbrand(stype,C_brand)%> </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="<%=C_Title%>" 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="<%=C_Color%>"/>
                      <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" id="addtime" name="C_AddTime" value="<%=C_AddTime%>" >
                    <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="<%=C_pagename%>" id="pytitle" placeholder="点击网址自动生成" value="<%=C_pagename%>" class="form-control">
                </div>
                <div class="col-sm-3  control-label"><span>拼音后利于收录</span></div>
              </div>
            </div>
          </div>
        </div>
        <div class="col-sm-6">
          <div class="ibox float-e-margins">
            <div class="ibox-content">
                <%
					dim file_view,downurls,downnames,file_lilist,i,j
					if not isnul(C_DownUrl) then 
						file_view=" style='display:block'"
						if ifstrin(C_DownURL,",") then
							downurls=split(C_DownUrl,",")
							downnames=split(C_DownName&",",",")
							for i=0 to ubound(downurls)
							  if ubound(downnames)>=i then j=i
							  if not isnul(downurls(i)) then
							  file_lilist=file_lilist&"<tr class='fileli'><td>"&iif(isfile(downurls(i)),GetFileExt(downurls(i)),"<b>已删除</b>")&"</td><td><input name='C_DownName' value='"&trim(downnames(j))&"' placeholder='附件名称' /></td><td><input name='C_DownURL' value='"&trim(downurls(i))&"' placeholder='下载地址' /></td><td><i class='fa fa-arrow-up'></i> <i class='fa fa-arrow-down'></i> <i class='fa fa-remove'></i></td></tr>"
							  end if
							next
						end if
					else
					  	file_view=""
						file_lilist=""
					end if						
				%>
                            
            </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"><%=C_Content%></textarea>
                  <script>var $cmsEditor = new UE.getEditor('content');</script> <br>
                  <div class="input-group m-b"><span class="input-group-addon">TAB标签</span>
                    <input type="text" name="C_tag" id="tag" value="<%=C_tag%>" class="form-control"  onfocus="layer.tips('用逗号分隔',this)">
                    <a class="input-group-addon btn-info" id="select_tag" class="btn btn-info" type="button"  data-toggle="modal"  data-target="#systag">选择标签</a></div>
                </div>
               </div>
              <div class="form-group "> </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 : 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>相册管理</h5>
              <div class="ibox-tools"> <i class="fa fa-chevron-up"></i></div>
            </div>
            </a>
            <div class="ibox-content">
              <div class="form-group">
                 <div class="input-group m-l m-r"> <span class="input-group-addon" height="30">缩略图</span>
                    <input type="text" name="pic" id="indexpic" class="form-control" value="<%=C_pic%>" >
                      <span class="input-group-addon no-padding no-borders"><img src="<%=C_pic%>" id="indeximg" height="30" ></span></div>
                  </div>
             <%
		   dim picurls,pictitles,pics_list,dndArea,statusBar,selected
		   if not isnul(C_picsUrl) then
		    picurls=split(C_picsUrl,",")
			pictitles=split(C_picsName&",",",")
			dndArea="element-invisible"
			statusBar=""
			pics_list="<ul class='filelist'>"		
		   	For i=0 To Ubound(picurls)	
				if ubound(pictitles)>=i then j=i
				if trim(picurls(i))=C_pic then selected="selected" else selected=""
				pics_list=pics_list&"<li class='state-complete'><p class='title'> </p><p class='imgWrap'><img src='"&picurls(i)&"'></p><p class='progress'><span style='display: none; width: 0px;'></span></p><div class='file-panel' style='height: 0px;'><i class='cancel'>删除</i><i class='moveRight'>向右</i><i class='moveLeft'>向左</i></div><input value='"&picurls(i)&"' name='picsurl'><input value='"&pictitles(j)&"' name='picsname'><span class='success "&selected&"'></span></li>"	
			next
			pics_list=pics_list&"</ul>"
		   else
		   	dndArea=""
			statusBar="style='display:none;'"
		   end if
		   %>
           <div id="uploader">
                <div class="queueList">
                  <div id="dndArea" class="placeholder <%=dndArea%>">
                    <div id="imgPicker" style=" padding-right:20%"></div>
                  </div>
                 <%=pics_list%>
                </div>
                <div class="statusBar" <%=statusBar%>>
                  <div class="progress"> <span class="text">0%</span> <span class="percentage"></span> </div>
                  <div class="info"></div>
                  <div class="btns">
                  </div>
                </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>SEO管理</h5>
              <div class="ibox-tools"> <i class="fa fa-chevron-down"></i> </div>
            </div>
            </a>
            <div class="ibox-content SEO">
              <div class="form-group">
                  <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-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>-->
      </form>
    </div>
  </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>