<!--#include file="../fy.Function.asp"-->
<!--#include file="../include/fy.F.asp"-->
<!--#include file="../../editor/index.asp"-->
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>栏目管理</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>
<%=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>
<script type='text/javascript' src='../../fy_inc/js/lhg/lhgdialog.min.js'></script>
</head>
<body>
<%
Dim ClassName,EnName,ActLink,ismenu,tg,rootid,CMS_Extension,disabled,content,makehtmlname
Dim ClassID,ClassKeywords,ClassDescription,Getrootid,ConTentTemplate,FolderTemplate,FilePathName,addrootid
Dim GroupIDClass,TGGroupID,OrderID,TiesDomain,ModeName,ModeID,classnames,fycms_DIY,moresite,sitepath,siteurl
Dim ClassPurview,ClassArrGroupID,ClassReadPoint,ClassChargeType ,ClassPitchTime,ClassReadTimes,ClassDividePercent
Dim SEOtitle,ClassPicUrl,labelfor,i,classmake
 ClassID = request("ClassID")
 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)&"系该项操作权限！","")
	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}"
	FolderTemplate=fycms_DIY(22)
	ConTentTemplate=fycms_DIY(24)
classmake=3
      %>
<div class="content"> 
	<div class="breadnav">当前位置：<a href="#">后台首页</a> >> 日志管理</div>
    <div class="opers">
		<a href="fy.Class.asp" class="btn">管理首页</a>
		<a href="fy.ClassAdd.asp?Action=add" class="btn">添加根栏目</a>
		<a href="fy.ClassAddall.asp?Action=add" class="btn btn_primary">批量添加栏目</a>
		<a href="fy.Classfy.asp?Action=one" class="btn">栏目排序</a>
		<a href="fy.m.asp"  class="btn">栏目自定义字段</a>
    </div>

    <form id="Article" name="Article" method="post" action="fy.ClassSaveall.asp?action=<%= request("Action")%>">
    <div class="divtable"> 
        <dl>
            <dt>所属分类：</dt>
            <dd>
               <select name="ClassID">
				<option>请选择栏目</option>
				  <%= AF.ForClasslist(ModeID)%>
				</select> 
	（默认为顶级栏目）    
            </dd>
         </dl>
         <dl class="merger" >
            <dt  >批量添加栏目</dt> <dd></dd>
          </dl>
         <dl>
            <dt>栏目名称：</dt>
            <dd>
				<textarea id="ClassName" rows="8" cols="50" name="ClassName"></textarea>每个栏目换行,重复的会自动过滤
              </dd>
         </dl>
 
    <dl class="merger" >
            <dt>添加属性</dt> <dd></dd>
          </dl>



        <dl>
            <dt class="dbg">栏目目录：</dt>
            <dd>
                <input name="EnName" class="Ainput" type="text"   id="EnName" value="<%=EnName%>"  disabled size="35" />
        
		<% If Request("Action")="add" then %><label for="IFPinYin">
        <input  id="IFPinYin" value="1" type="checkbox"  name="IFPinYin" checked="checked" onClick="IFPinYins()" />
          栏目拼音</label>
     <font color="red">英文名称</strong>必须是字母,数字,确认后不能修改</font>
	<%Else %>
	 

	 <label for="EditEname">
        <input  id="EditEname" value="1" type="checkbox"  name="EditEname" onClick="EditEnames()" />
          修改</label>
	 
	 <% end if %>
             </dd>
         </dl><input type="hidden" name="moresite" id="moresite" value="0">
        <dl>
            <dt>栏目模板地址：</dt>
            <dd>
               <input  name="FolderTemplate"  id="FolderTemplate" type="text" class="Ainput"  size="35"  value="<%= FolderTemplate %>" />
 

 <input id="PicUrls3" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=FolderTemplate');" name="button" type="button"   value="选择模板">

             </dd>
         </dl>
        <dl>
            <dt>内容页模板地址：</dt>
            <dd>
               <input name="ConTentTemplate" id="ConTentTemplate"  type="text" class="Ainput"  size="35" value="<%= ConTentTemplate %>" />
 <input id="PicUrls4" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=ConTentTemplate');" name="button" type="button"   value="选择模板">
             </dd>
         </dl>
        <dl>
            <dt>内容生成规则：</dt>
            <dd>
               <input name="FilePathName" type="text" class="Ainput"  id="FilePathName" value="<%= FilePathName %>" size="50">
	  全部小写
             </dd>
         </dl>
        <dl>
            <dt>排列权重：</dt>
            <dd>
               <input name="OrderID" type="text" class="Ainput"  value="<%= OrderID %>" />
             </dd>
         </dl>
        <dl>
            <dt>内容模型：</dt>
            <dd>
               <select name="ModeID" id="ModeID">
          <%=AF.ACT_L_Mode(CInt(ModeID))%>
        </select>
	  <input type="button" name="Submit6" class="btn btn_primary" value="管理系统模型" onClick="window.open('../Mode/fy.MX.asp');">
             </dd>
         </dl>
        <dl>
            <dt>在导航栏显示：</dt>
            <dd>
                <label for=ismenu1>
        <input  type=radio  value=1 <%If ismenu = 1 then echo("Checked ")  %> name=ismenu id=ismenu1>
        是</label>
        <label for=ismenu2>
        <input type=radio  <%If ismenu = 0 then echo("Checked ")  %> value=0 name=ismenu id=ismenu2>
        否</label> 
             </dd>
         </dl>
        <dl>
            <dt>栏目是否生成：</dt>
            <dd>
               <label for=classmake1>
        <input  type=radio  value=1 <%If classmake = 1 then echo("Checked ")  %> name=classmake id=classmake1>
        静态</label>
        <label for=classmake2>
        <input type=radio  <%If classmake = 2 then echo("Checked ")  %> value=2 name=classmake id=classmake2>
        伪静态</label>   
        <label for=classmake3>
        <input type=radio  <%If classmake = 3 then echo("Checked ")  %> value=3 name=classmake id=classmake3>
       动态</label>  
             </dd>
         </dl>
        <dl>
            <dt>是否在循环栏目标签中显示：</dt>
            <dd>
               <label for=labelfor1>
        <input  type=radio  value=1 <%If labelfor = 1 then echo("Checked ")  %> name=labelfor id=labelfor1>
        是</label>
        <label for=labelfor2>
        <input type=radio  <%If labelfor = 0 then echo("Checked ")  %> value=0 name=labelfor id=labelfor2>
        否</label>  
             </dd>
         </dl>
        <dl  id=ClassSetting1>
            <dt>转向链接URL：</dt>
            <dd>
                <input name="LinkUrl" type="text" class="Ainput" value="<%= makehtmlname %>"  size="45" />
             </dd>
         </dl>
        <dl id=ClassSetting2>
            <dt>栏目首页文件：</dt>
            <dd>
               <input name="Extension" type="text" class="Ainput"  id="Extension" value="<%= CMS_Extension %>" size="10"> 
             <select name="select" onChange="document.Article.Extension.value=this.value">
			 <option value='index.html'>index.html</option>

			 <% IF Request("Action") = "edit" Then %>
			 <option value='<%= CMS_Extension %>' selected><%= CMS_Extension %></option>
			 <% end if  %>
            </select>
           
		   (只能选择index.html或者为空,默认不填写,路径后面不带文件名  如 www.fycms.com/anli/)

             </dd>
         </dl>
        <dl  id=ClassSetting4 >
            <dt>栏目是否允许投稿：</dt>
            <dd>
               <label for=tg1>
        <input type=radio  value=0 name=tg id=tg1 <% if tg = 0 then echo("Checked") %>>
        否</label>
        <label for=tg2>
        <input type=radio  value=1 name=tg id=tg2 <% if tg = 1 then echo("Checked") %>>
        是</label> 
             </dd>
         </dl>
        <dl>
            <dt>允许此栏目下投稿的会员组：</dt>
            <dd>
               <%= fycms.GetGroup_CheckBox("TGGroupID",TGGroupID,5)  %>
             </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 IFPinYins()
			{ if (document.Article.IFPinYin.checked==true)
			  {
			  document.Article.EnName.disabled=true;
			  document.Article.EnName.value="不能修改";
			  }
			  else
				{
				document.Article.EnName.checked=true;
				  document.Article.EnName.disabled=false;
				   document.Article.EnName.value="";
				 }
			}
function EditEnames()
			{ if (document.Article.EditEname.checked==false)
			  {
			  document.Article.EnName.disabled=true;
			  }
			  else
				{
				document.Article.EnName.checked=true;
				  document.Article.EnName.disabled=false;
				 }
			}


function CheckForm()
{ var form=document.Article;
	    form.submit();
        return true;
}
 </script>
 

 
 </body>
</html>
