<!--#include file="connn.asp"-->
<!--#include file="cookies.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">
<!--
function ValidateTextboxAdd(box, button)
{
 var buttonCtrl = document.getElementById( button );
 if ( buttonCtrl != null )
 {
 if (box.value == "" || box.value == box.helptext)
 {
 buttonCtrl.disabled = true;
 }
 else
 {
 buttonCtrl.disabled = false;
 }
 }
}
//-->
</script> 
<link href="images/fox.css" rel="stylesheet" type="text/css">
<style type=text/css>
BODY{
	margin:0px;
	FONT-SIZE: 12px;
	FONT-FAMILY: "宋体", "Verdana", "Arial", "Helvetica", "sans-serif";
	background-color: #CCCC99; 
	scrollbar-highlight-color: #CC9933; 
	scrollbar-arrow-color: #FFFFFF; 
	scrollbar-base-color: #CC9933
}
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#111111; text-decoration:none; }
a:hover { color:#384780;text-decoration:underline; }
.sec_menu { border-left:2px solid #CC3300; border-right:2px solid #CC3300; border-bottom:2px solid #CC3300; overflow:hidden; background:#ffffff; }
.menu_title {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title span { position:relative; top:2px; left:8px; color:#FFFF00; font-weight:bold; }
.menu_title2 {background-color: #335EA8;color: white;font-size: 12px;font-weight:bold;height: 25; }
.menu_title2 span { position:relative; top:2px; left:8px; color:#FEFEFE; font-weight:bold; }
input,select,Textarea{
font-family:宋体,Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}
</style>
<table width="99%" border="0" align="center" cellpadding="1" cellspacing=1 bgcolor="#7b869a">
<tr>
		<form name="form" method="post" action="addfl.asp?action=addcat"><td colspan="2" align="right" bgcolor="#FFFFFF">
<%
mSql="select categoryorder from FOX_category where parentID=0 order by categoryorder desc"
set mRs=conn.execute(mSql)
if not (mRs.eof and mRs.bof) then
	SumOrderID=CInt(mRs("categoryorder"))	
else
	SumOrderID=0
end if
%>
		 
添加一级分类&nbsp;
<input type=hidden name=classid value=0>
<input type=hidden name=hide value=0>
分类名称：
<input name="category" class="input_sr" onkeyup="ValidateTextboxAdd(this, 'category1')" onpropertychange="ValidateTextboxAdd(this, 'category1')">
分类排序：
<input name="categoryorder" type="text" class="input_sr" value="<%=SumOrderID%>" size="3">
<input type="submit" disabled class="input_bot" id='category1' value="添 加">
		
</td> </form>
  </tr>
</table>
<br />
<div align="center">
<table width="99%" border="0" cellspacing=1 bgcolor="#CC3300">
  <tr> 
    <td height="24" colspan="2" align="center"><span class="STYLE1"><span class="STYLE3">类别管理</span></span></td>
  </tr>
<%
sort(0)
dim ii
ii=0
sub sort(selec)
	sql="select * from FOX_category where ParentID = "&selec&" order by categoryorder"
	Set Rs1=Conn.Execute(sql)
	do while not rs1.eof
if selec=0 then
%>
  <tr bgcolor="#f7f7f7" height=25>
<td background="images/topbg.gif" bgcolor="#f7f7f7">&nbsp;&nbsp;<a href=addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=edit><b>
  <%response.write rs1("categoryorder")&".&nbsp;"&rs1("category")%></b></a></td>
<td width="300" align="right" background="images/topbg.gif">
  <strong><a href=addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=add>添加二级分类</a> | <a href=addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=edit>编辑分类</a> | 
  <a href="addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=delok" onClick="return confirm('您确定进行删除操作吗？')">删除分类</a></strong></td>
</tr>
<%
else
%>
<tr bgcolor="#FFFFFF" class=a3 height=25>
<td>　<%=string(ii*2,"　")%><a href=addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=edit><%response.write rs1("categoryorder")&".&nbsp;"&rs1("category")%></a></td>
<td width="300" align="right">
<a href=addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=add><img src="images/pic10.gif" width="20" height="15" border="0" align="absmiddle" />添加
<% = ii+2 %>
级分类</a> <img src="images/pic11.gif" width="20" height="15" align="absmiddle" /><a href=addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=edit>编辑分类</a> <img src="images/pic12.gif" width="20" height="15" align="absmiddle" /><a href="addfl.asp?categoryid=<%=int(rs1("categoryid"))%>&action=delok" onClick="return confirm('您确定进行删除操作吗？')">删除分类</a></td>
</tr>
<%
end if
ii=ii+1
	sort rs1("categoryid")
ii=ii-1
	rs1.movenext
	loop
rs1.close
Set Rs1 = Nothing
end sub

%></table>
</div>
</body></html>