<!--#include file="../../fy.Function.asp"-->
<!--#include file="../../include/fy.F.asp"-->
<!--#include file="../../Mode/fy.class.M.ASP"-->
<!--#include file="../../../editor/index.asp"-->
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>fycms后台管理系统</title>
<link rel="stylesheet" type="text/css" href="../../css/base.css">
<link rel="stylesheet" type="text/css" href="../../css/content.css">
<script type='text/javascript' src='../../js/main.js'></script>
<script type="text/javascript" src="../../../fy_inc/js/jquery.js"></script>
<script type='text/javascript' src='../../../fy_inc/js/lhg/lhgdialog.min.js'></script>
<%=writejs("../../../")%>
<script type="text/javascript" src="../../../fy_inc/js/swfobject.js"></script>
<SCRIPT LANGUAGE='JavaScript'>
var U="<%=fycms.strToAsc(RSQL(Trim(Request.Cookies(fycmsN)("AdminName"))))%>";
var P="<%=fycms.strToAsc(RSQL(Trim(Request.Cookies(fycmsN)("AdminPassword"))))%>";
</SCRIPT>
</head>
<body>
<div class="content"> 
	<div class="breadnav">当前位置：<a href="#">后台首页</a> >> 栏目管理</div>
    <div class="opers">
    	<span class="btn">查看选项：</span> 
		<a href="class.index.asp" class="btn ">留言栏目</a> 
		<a href="fy.ClassAdd.asp?Action=add " class="btn btn_primary">添加栏目</a> 
		<a href="index.asp" class="btn ">留言系统</a>
		<a href="sys.asp" class="btn ">留言设置</a>
		<a href="Listm.asp" class="btn">留言自定义字段</a>
    </div>
<%
Dim title,EnName,ActLink,ismenu,tg,rootid,CMS_Extension,disabled,content,makehtmlname
Dim cid,ClassKeywords,ClassDescription,Getrootid,ConTentTemplate,FolderTemplate,FilePathName,addrootid
Dim GroupIDClass,TGGroupID,OrderID,TiesDomain,ModeName,ModeID,titles,fycms_DIY,moresite,sitepath,siteurl
Dim ClassPurview,ClassArrGroupID,ClassReadPoint,ClassChargeType ,ClassPitchTime,ClassReadTimes,ClassDividePercent
Dim SEOtitle,ClassPicUrl,labelfor,classmake,ID
Dim classTemplate
 cid = request("cid")
 ModeID = ChkNumeric(Request("ModeID"))
 if ModeID=0 or ModeID="" Then ModeID=1
 ModeName= fycms.ACT_C(ModeID,1) 
 If Not fycms.fycms_QXYZ(ModeID,"","") Then   Call fycms.Alert("对不起，您没有"&fycms.ACT_C(ModeID,1)&"系该项操作权限！","")

 IF Request("Action") = "add" Then
	fycms_DIY=Split(AF.fycms_DIY_F(ModeID,1,""),"§") 
	ClassPurview=0
 	ClassReadPoint=0
	ClassChargeType =0
	ClassPitchTime=0
	ClassReadTimes=0
	ClassDividePercent=0
	labelfor=1
	ismenu=1:tg=1:CMS_Extension="index.html":OrderID=10:moresite=0:	ActLink=1:FilePathName="{enname}/{id}"
	classmake=3

	if cid <>"" then
		Getrootid =  cid
		FolderTemplate=fycms_DIY(23)
	Else
		Getrootid = "0"
		FolderTemplate=fycms_DIY(22)
	End if
	IF cid <> "" Then 
		Dim Rs,ShowErr
		Set Rs=server.CreateObject("adodb.recordset") 
		Rs.OPen "Select * from bookclass_fy where cid="& cid &"  order by id desc",Conn,1,1
		If Not  Rs.Eof Then '判断是否为转向链接
			
				titles =fycms.bookclasslist(cid,1)
 				addrootid=fycms.bookclasslist(cid,2) 
 				classTemplate=fycms.bookclasslist(cid,3) 
			 
	   End If
		
	Else
		titles ="根栏目"
	End If
 Else
	Set Rs = server.CreateObject("adodb.recordset")
	Rs.open "select * From  bookclass_fy where cid="& cid &"",Conn,1,3
	if Not   Rs.eof then
		title = Rs("title")
		EnName = Rs("title") 
		classTemplate= Rs("classTemplate") 
		ID=rs("ID")
   		Dim Rs1
		Set Rs1=fycms.actexe("Select title From bookclass_fy Where cid=" &Rs("rootid")&" ")
		If Not Rs1.EOF Then titles=Rs1("title") Else titles ="根栏目"
		disabled="disabled=true "
	Else 
		OrderID=10
	End If
End If
     %>
    <form id="Article" name="Article" method="post" action="fy.ClassSave.asp?action=<%= request("Action")%>">
    <div class="divtable"> 
        <dl>
            <dt>所属分类：</dt>
            <dd>
               <%=titles %>   
            </dd>
         </dl>
        
        <dl>
            <dt>栏目名称：</dt>
            <dd>
               <input name="title" id="title" class="Ainput"  type="text"   value="<%= fycms.HTMLCode(title) %>" size="35" /> 
       
		<input name="cid" type="hidden" id="cid" value="<%= cid %>" readonly>
		<input name="rootid" type="hidden" id="rootid" value="<%= Getrootid %>" readonly> 
             </dd>
         </dl>
 
        <dl>
            <dt>栏目模板地址：</dt>
            <dd>
                 <input  name="classTemplate"  id="classTemplate" type="text" class="Ainput"  size="35"  value="<%= classTemplate %>" />
				<input id="PicUrls3" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=classTemplate');" name="button" type="button"   value="选择模板">
             </dd>
         </dl>
 
        <dl>
            <dt>排列权重：</dt>
            <dd>
               <input name="OrderID" type="text" class="Ainput"  value="<%= OrderID %>" />
             </dd>
         </dl>
 
 
 
            <dl>
            <dt class="vhid">提交：</dt>
            <dd>
                <a class="btn btn_primary" href="javascript:void(0);" onclick="CheckForm()">提交</a>
 				<input class="btn" type="reset" name="Submit2" value="  重置  ">
            </dd>
         </dl>
        
    </div>
    </form>


</div>

 <script type="text/javascript">
function CheckForm()
{ var form=document.Article;
   if (form.title.value=='')
    { alert("请输入栏目的分类名称!");   
	  form.title.focus();    
	   return false;
    }
	 
		 
	
	    form.submit();
        return true;
}

 </script>
</body>
</html>
