<%@language="vbscript" codepage="936" %>
<%path="../basedata"%>
<!--#include file="../inc/function.asp"-->
<%call Loginpower%>
<%call legalpower%>
<!--#include file="../conn/conn_data.asp"-->
<%
dim id,sql,rs
id=cint(request.querystring("id"))
if not idboolean(id) then response.write errorback("有错,请返回刷新页面!"):response.end
sql="select * from class where class_id="&id
set rs=server.createobject("adodb.recordset")
	rs.open sql,conn_data,1,1
	if rs.eof and rs.bof then
	rs.close
	set rs=nothing
	conn_data.close
	set conn_data=nothing
	response.write errorback("有错,没有发现数据!"):response.end
	response.end
	end if
%>
<!-- #include file="../Inc/Head.asp" -->
<script language="JavaScript">
<!--
function checklist(){
if(document.form.classname.value==""||document.form.classname.value==null)
{
window.alert("产品大类名称不能为空!");
document.form.classname.focus();
return false;
}
if(document.form.classOrder.value==""||document.form.classOrder.value==null)
{
window.alert("你没有写顺序!");
document.form.classOrder.focus();
return false;
}
var patrn=/^[0-9]{1,3}$/;
if (!patrn.exec(document.form.classOrder.value))
{
window.alert("你写的顺序不是数字!没有必要性就不要乱填。");
document.form.classOrder.focus();
return false;
}
if(document.form.content.value==""||document.form.content.value==null)
{
window.alert("你没有写内容!");
return false;
}
if(confirm("你确定提交吗？")){document.getElementById("code1").value=1;}else{return false;}
}
//-->
</script>
<input type="hidden" value="" id="code1" name="code1" />
<br/><br/><br/>
<div style="text-align:center;">
<table border="1" bordercolor="#A5B6D6" cellpadding="0" cellspacing="2">
<form method="post" action="categories_Modify_Save.asp?ID=<%=id%>" name="form" onsubmit="return checklist();">
  <tr class="southidc"  align="center">
    <td height="25" colspan="4"><strong>大类信息增添</strong></td>
  </tr>
  <tr>
  <td height="25">&nbsp;&nbsp;栏目名称:</td>
  <td colspan="3"><input type="text" size="25" id="" value="<%=rs("class_name")%>" name="classname" style="margin:0 0 0 0;border:1px solid #999999;" onmouseover="this.style.background='#56FF10';" onmouseout="this.style.background='#ffffff'" />&nbsp;&nbsp;<span style="color: #ff0000;">*</span></td>
  </tr>
   <tr>
  <td height="25">&nbsp;&nbsp;列表打开:</td>
  <td>&nbsp;&nbsp;<input type="radio" name="classopened" value="0" <%if rs("class_opened")=0 then%>checked<%end if%> />否&nbsp;&nbsp;<input type="radio" name="classopened" value="1" <%if rs("class_opened")=1 then%>checked<%end if%> />是&nbsp;&nbsp;</td>
  <td height="25">&nbsp;&nbsp;序号:</td>
  <td height="25">
	<input type="text" value="<%=rs("class_order")%>" size="10" name="classOrder" />&nbsp;&nbsp;<span style="color: #ff0000;">*</span>
  </td>
  </tr>
    <tr  class="center">
    <td height="25" colspan="4">
    <input type="submit" value="确定" name="submit"/>
    </td>
  </tr>
</form>
</table>
</div>
<%
rs.close
set rs=nothing
conn_data.close
set conn_data=nothing
%>
<!-- #include file="../Inc/Foot.asp" -->
