List_Add.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:4k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="../../inc/conn.asp"-->
- <%
- dim rs,sql
- sql="select * from nclass"
- set rs=conn.execute(sql)
- %>
- <script language = "JavaScript">
- var onecount;
- onecount=0;
- subcat = new Array();
- <%
- dim count
- count=0
- do while not rs.eof
- %>
- subcat[<%=count%>] = new Array("<%= trim(rs("nclassname"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("id"))%>");
- <%
- count = count + 1
- rs.movenext
- loop
- rs.close
- %>
- onecount=<%=count%>;
- function changelocation(locationid)
- {
- document.form1.nclassid.length = 0;
- var locationid=locationid;
- var i;
- for (i=0;i < onecount; i++)
- {
- if (subcat[i][1] == locationid)
- {
- document.form1.nclassid.options[document.form1.nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
- }
- }
- }
- </script>
- <LINK REL="stylesheet" HREF="../images/style.css" TYPE="text/css"> <META content="text/html;charset=gb2312" http-equiv="Content-Type">
- <style type="text/css">
- <!--
- .style1 {
- color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- <form name="form1" method="post" action="List_Save.asp" enctype="multipart/form-data">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#000000" bordercolordark="#ffffff" bgcolor="#660000">
- <tr bgcolor="#23458B">
- <td height="25" colspan="2">
- <div align="center" class="style1">信息添加</div> </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12" bgcolor="#FFFFFF">
- <div align="right"><FONT COLOR="#FF0000"> * </FONT>产品货号:</div></TD>
- <td width="79%" height="12" bgcolor="#FFFFFF">
- <input type="text" name="hh" size="40"> </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12" bgcolor="#FFFFFF">
- <div align="right"><FONT COLOR="#FF0000"> * </FONT>产品名称:</div></TD>
- <td width="79%" height="12" bgcolor="#FFFFFF">
- <input type="text" name="title" size="50"> </td>
- </tr>
- <tr>
- <TD height="13" bgcolor="#FFFFFF"><div align="right"><FONT COLOR="#FF0000">* </FONT>产品类别:</div></TD>
- <td width="79%" height="13" bgcolor="#FFFFFF"><%
- sql="select * from class"
- set rs=conn.execute(sql)
- if not rs.eof then
- %>一类:
- <select name="classid" onChange="changelocation(document.form1.classid.options[document.form1.classid.selectedIndex].value)">
- <option selected value="<%=trim(rs("id"))%>"><%=trim(rs("classname"))%></option>
- <%
- dim selclass
- selclass=rs("id")
- rs.movenext
- %>
- <%do while not rs.eof%>
- <option value="<%=rs("id")%>"><%=rs("classname")%></option>
- <%rs.movenext
- loop
- rs.close
- %>
- </select>
- 二类:
- <select name="nclassid">
- <%
- sql="select * from nclass where classid="&selclass&" "
- set rs=conn.execute(sql)
- if not(rs.eof and rs.bof) then
- do while not rs.eof%>
- <option value="<%=rs("id")%>"><%=rs("nclassname")%></option>
- <% rs.movenext
- loop
- end if
- rs.close
- %>
- </select>
- <%else%>
- 添加类别
- <%end if%> </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="25" bgcolor="#FFFFFF">
- <div align="right"><FONT COLOR="#FF0000">*</FONT> 产品信息:</div></TD>
- <td width="79%" height="25" bgcolor="#FFFFFF"><IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420">
- </IFRAME>
- <input name="content" type="hidden" id="content"></td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12" bgcolor="#FFFFFF">
- <div align="right"><FONT COLOR="#FF0000">*</FONT> 产品图片(大):</div></TD>
- <td width="79%" height="12" bgcolor="#FFFFFF">
- <input type="file" name="file" size="35"> </td>
- </tr>
- <tr>
- <td height="25" colspan="2" bgcolor="#FFFFFF">
- <div align="center">
- <input type="submit" name="Submit" value="添加">
- <input type="button" value="取消" onClick="history.go(-1)">
- <input type="hidden" name="operation" value="add">
- </div> </td>
- </tr>
- </table>
- <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" height="34">
- <tr> <td> <div align="center">说明:<font color="#FF0000">*</font> 为必须填写的内容</div></td></tr>
- </table></form>