<!--#include file="../include/hf_conn.asp"-->
<!--#include file="checkadmin.asp"-->
<!--#include file="Inc/Function.asp"-->
<script language=javascript src=../include/mouse_on_title.js></script>
<%
call checkmanage("03")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>
<BODY background="../images/admin/back.gif"><%
dim sql,rsBigClass,rsSmallClass,ErrMsg
set rsBigClass=server.CreateObject("adodb.recordset")
rsBigClass.open "Select * From BigClass order by orderid",conn,1,3
%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
  if (document.form1.BigClassName.value=="")
  {
    alert("分类名称不能为空！");
    document.form1.BigClassName.focus();
    return false;
  }
}
function checkSmall()
{
  if (document.form2.BigClassName.value=="")
  {
    alert("请先添加分类名称！");
	document.form1.BigClassName.focus();
	return false;
  }

  if (document.form2.SmallClassName.value=="")
  {
    alert("小类名称不能为空！");
	document.form2.SmallClassName.focus();
	return false;
  }
}
function Confirmedit()
{
   alert("修改成功！");   
     return true;

	 
}
function ConfirmDelBig()
{
   if(confirm("确定要删除此分类吗？"))
     return true;
   else
     return false;
	 
}

function ConfirmDelSmall()
{
   if(confirm("确定要删除此类吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;
	 
}
</script>

<table width="98%" border="1"  style="border-collapse: collapse; border-style: dotted; border-width: 0px"  bordercolor="#333333" cellspacing="0" cellpadding="2">
  <tr> 
    <td align="center" valign="top">
	<br>
      <strong>产品分类管理</strong> <br>
      <br>
      管理选项：<a href="ClassAddBig.asp">添加产品分类</a><br>
      <br>
<table width="98%" border="1"  style="border-collapse: collapse; border-style: dotted; border-width: 0px"  bordercolor="#333333" cellspacing="0" cellpadding="2">
        <tr class=td>
		<td width="10%" height="25" align="center" ><strong>
		排序</strong></td>
		<td width="60%" height="25" align="center" ><strong>
		名称/英文名称</strong></td>
		<td width="30%" height="20" align="center"><strong>
		操作</strong></td>
        </tr>
        <%
	do while not rsBigClass.eof
%>
<form action="ClassModifyBig.asp" name="form1" method="post">
        <tr > 
		<td width="10%" height="22" bgcolor="#C0C0C0" align="center"><input name="border" type="text" class="input" value="<%=rsBigClass("orderid")%>" size="5"></td>
          <td width="60%" height="22" bgcolor="#C0C0C0">
			<img src="../Images/admin/plus2.gif" width="18" height="15">
          <input name="NewBigClassName" type="text" class="input" value="<%=rsBigClass("BigClassName")%>" size="20">
		  <input name="OldBigClassName" type="hidden" id="OldBigClassName" value="<%=rsBigClass("BigClassName")%>">
		   <input name="NewBigClassName_en" type="text" class="input" value="<%=rsBigClass("BigClassName_en")%>" size="20">
		  <input name="OldBigClassName_en" type="hidden" id="OldBigClassName_en" value="<%=rsBigClass("BigClassName_en")%>">
		  <input name="BigClassID" type="hidden" id="BigClassID" value="<%=rsBigClass("BigClassID")%>">		  </td>
          <td width="30%" align="center" bgcolor="#C0C0C0">
            <!--<a href="ClassModifyBig.asp?BigClassID=<%=rsBigClass("BigClassID")%>">修改</a> --><input type="image" src="../images/admin/edit.gif" onClick="return Confirmedit();">
            <a href="ClassDelBig.asp?BigClassName=<%=rsBigClass("BigClassName")%>" onClick="return ConfirmDelBig();"><img src="../images/admin/del.gif" border="0"></a>
			</td>
        </tr>
   	  </form>
	  <%
	  rsBigClass.movenext
	loop
%>
      </table> 
      <br></td>
  </tr>
</table>

<%
rsBigClass.close
set rsBigClass=nothing
call CloseConn()
%>