<!--#include file=CONN.ASP-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,sheng,paixu
if request("fox")="ok" then
call ok()
response.end
end if
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [FOX_sheng] where id="&cstr(request("id"))
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write "<li>参数错误！"
response.end
end if
sheng=rs("sheng")
paixu=rs("paixu")
rs.close
set rs=nothing
%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改总分类</title>
<link rel="stylesheet" type="text/css" href="images/fox.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>

</head>

<body topmargin="0" leftmargin="0">

<center>
<form method="POST" action="diquedit.asp?fox=ok&id=<%=request("id")%>">
<table style="border-width:1px; border-collapse: collapse" borderColor="#CC0000" height="68" cellSpacing="0" cellPadding="0" width="322" border="1">
  <tr>
    <td width="322" bgColor="#CC0000" height="25">
    <p align="center"><font color="#FFFFFF">大类修改</font></td>
  </tr>
  <tr>
    <td style="border-bottom: medium none" align="middle" width="322" height="21">
    大类名称：<input name="sheng" size="20" value="<%=sheng%>"></td>
  </tr>
  <tr>
    <td style="border-top: medium none; border-bottom: medium none" align="middle" width="322" height="25">
    排序数字：<input value="<%=paixu%>" name="paixu" size="20"></td>
  </tr>
  <tr>
    <td style="border-top: medium none" width="322" height="25">
    <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input style="color: #000000; border: 0px solid #000000; background-color: #eeeeee" type="submit" value="确认修改" name="B1"></td>
  </tr>
</table>
</form>
</center>
</body>
</html>
<%
sub ok()
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [FOX_sheng] where id="&cstr(request("id"))
rs.open sql,conn,1,3
rs("sheng")=request("sheng")
rs("paixu")=request("paixu")
rs.update
rs.close
set rs=nothing
response.write "<li>修改大类成功！<br>"
response.write "<li>刷新后可以看到结果！"
response.write "<meta http-equiv=refresh content=""1;URL=diqu.asp"">"
end sub
closedb
%></body></html>