<!--#include file="about_Fun.asp" -->
<%getabout%>
<!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">
<script src="<%=sitepath%>js/jquery.min.js"></script>

<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
<script>var upfolder="about";</script>
<script type="text/javascript" charset="utf-8" src="../../inc/webuploader/config.asp"></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/oneupload.js"></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 src="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<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 type="text/javascript" src="<%=sitepath%>plugins/jedate/jquery.jedate.js"></script>
<link type="text/css" rel="stylesheet" href="<%=sitepath%>plugins/jedate/jedate.css">

</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&AID=<%=AID%>" class="form-horizontal" >
      <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-9">
                <input type="text" name="A_name" required id="A_name" value="<%=A_name%>" class="form-control">
                <input id="pytitle" type="hidden" value="">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">关键字</label>
              <div class="col-sm-9">
                <input type="text" value="<%=A_Key%>" name="A_Key" id="A_Key" class="form-control">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">内容摘要<br>
                SEO描述</label>
              <div class="col-sm-9">
                <textarea id="PageDesc" name="A_Desc" class="form-control"><%=A_Desc%></textarea>
                <span class="help-block m-b-none">留空将自动截取内容</span> </div>
            </div>
          </div>
        </div>
      </div>
      <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-down"></i> </div>
          </div>
          </a>
          <div class="ibox-content" style="display: none;">
            <div class="form-group">
              <label class="col-sm-2 control-label">英文标题</label>
              <div class="col-sm-10">
                <input type="text" name="A_EnName" id="A_EnName" value="<%=A_EnName%>" class="form-control">
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-2 control-label">排序</label>
              <div class="col-sm-4">
                <input type="number" name="A_Order" id="Order" value="<%=A_Order%>" class="form-control" >
              </div>
              <label class="col-sm-2 control-label">浏览</label>
              <div class="col-sm-4">
                <input type="number" name="A_Visits" id="Visits" value="<%=A_Visits%>" class="form-control" >
              </div>
            </div>
            <div class="form-group">
              <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="A_addtime"  id="addtime" value="<%=A_addtime%>">
                  <span class="input-group-addon"> <i class="fa fa-calendar"></i></span> </div>
              </div>
              <label class="col-sm-2 control-label">修改</label>
              <div class="col-sm-4">
                <input type="text" class="form-control" readonly  value="<%=A_edittime%>">
              </div>
            </div>
          </div>
        </div>
      </div>
      <%echo(getcustom(aid))%>
      <div class="col-sm-12">
        <div class="ibox float-e-margins">
          <div class="ibox-title">
            <h5>内容管理</h5>
            <div class="ibox-tools"> <a class="btn  btn-xs btn-success btn-outline" onClick="addueditorpage('{list:page}')" type="button"><i class="fa fa-upload"></i>&nbsp;&nbsp;插入分页</a> <a class="btn  btn-xs btn-info btn-outline" onClick="getContentTxt()" type="button"><i class="fa fa-upload"></i>&nbsp;&nbsp;提取摘要</a> </div>
          </div>
          <div class="ibox-content">
            <div class="form-group ">
              <div class="col-sm-12">
                <textarea class="textarea textarea-editor" style="width:100%; height:300px" name="A_content" id="content"><%=A_content%></textarea>
              </div>
              <script type="text/javascript">
                var $ZZZEditor = new UE.getEditor('content');
                </script> 
            </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">缩略图</span>
                    <input type="text" name="pic" id="indexpic" class="form-control" value="<%=A_pic%>" >
                      <span class="input-group-addon no-padding no-borders"><img src="<%=A_pic%>" id="indeximg" height="34" ></span></div>
                  </div>
                <%
		   dim picurls,pictitles,pics_list,dndArea,statusBar,selected,i
		   if not isnul(A_picsUrl) then
		    picurls=split(A_picsUrl,",")
			pictitles=split(A_picsName&",,,,,,,,,,",",")
			dndArea="element-invisible"
			statusBar=""
			pics_list="<ul class='filelist'>"		
		   	For i=0 To Ubound(picurls)	
				if trim(picurls(i))=A_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(i)&"' 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 style="position: absolute;top: 140px; left: 55%">
                      <div class="webuploader-pick" onClick=openimagemanager("about")><i class="fa fa-folder-open"></i> 选择图片</div>
                    </div>
                    <p>或将照片拖到这里，单次最多可选300张</p>
                  </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 id="imgPicker2"></div>
                    <div class="uploadBtn"  onClick=openimagemanager("about")><i class="fa fa-folder-open"></i> 选择相册</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      <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>
        </div>
      </div>
    </form>
  </div>
</div>
<!-- End Panel Other -->
</div>
<script src="<%=sitepath%>js/bootstrap.min.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 type="text/javascript">
$("#addtime").jeDate({isinitVal:true})
$(function () {
	$("#color").colorpicker().on('changeColor', function(e) {
 	 $('#title').attr("style","color:"+e.color.toHex());
   });
});
</script> 
<script src="<%=sitepath&adminPath%>js/content.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
</body>
</html>