<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<%
action=request.QueryString("action")
id=request.QueryString("id")
if id="" or IsNumeric(id)<>true then
response.Write "程序错误"
response.end 
end if
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from PC_Industry where id="&id&""
	rs.open sql,conn,1,1
    H_name=rs("H_name")
	H_Px=rs("H_Px")
	rs.close
if action="edit" then
n_H_name=Replace(Replace(Left(request.Form("H_name"),10),"<","["),">","]")
n_H_Px=Replace(Replace(Left(request.Form("H_Px"),5),"<","["),">","]")
if n_H_name=""  or n_H_Px=""  then
response.Write "<script >alert('提示：\n\n对不起，有没有填写的内容...');history.back(-1);</script>"
response.end 
end if
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from PC_Industry where id="&id&""
	rs.open sql,conn,1,3
    rs("H_name")=n_H_name
	rs("H_Px")=n_H_Px
	rs.update
	rs.close
	set rs=nothing	
	response.Write "<script >alert('提示：\n\n修改成功,立即返回...');location.href='PC_Industry1.asp';</script>"
	response.End()	
end if
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,总管理中心</title>


<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<script>
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
</script>
<script>
function oa_tool1(){
window.parent.mm.rows="20,200,10,*";
}
</script>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
      <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">管理中心</a> <span class="uc_huise">&gt;权限设置</span></td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
        </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>
		
            <table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE">
			
              <tr>
                <td height="28" colspan="5" bgcolor="#FFFFFF" class="uc_huise">分类管理 </td>
              </tr>
			  <form action="PC_Industry_edit.asp?action=edit&id=<%=request.QueryString("id")%>" method="post" target="_self">
              <tr>
                <td width="78" height="28" bgcolor="#FFFFFF" class="uc_huise">分类名称：</td>
                <td width="179" bgcolor="#FFFFFF" class="uc_huise"><input name="H_name" type="text" id="H_name" value="<%=H_name%>">
                  条</td>
                <td width="48" bgcolor="#FFFFFF" class="uc_huise">排序</td>
                <td width="310" bgcolor="#FFFFFF" class="uc_huise"><input name="H_Px" type="text" id="H_Px" value="<%=H_Px%>" size="5">
                数字大靠前排</td>
                <td width="179" bgcolor="#FFFFFF" class="uc_huise"><input name="Submit2" type="submit" class="UCform" value="修 改"></td>
              </tr>
			  </form>
              
            </table>
			
	  </td>
    </tr>
</table>

<!--#include file="end.asp"-->

</BODY></HTML>
