List_Edit.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:5k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <!--#include file="../../inc/conn.asp"-->
- <LINK REL="stylesheet" HREF="../images/style.css" TYPE="text/css"> <META content="text/html;charset=gb2312" http-equiv="Content-Type">
- <%
- 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>
- <%
- Dim rs2
- set rs2=conn.execute("select * from product1 where id="&request("checkbox"))
- %>
- <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="1" cellspacing="0" cellpadding="2" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
- <tr bgcolor="#23458B">
- <td height="25" colspan="2">
- <div align="center" class="style1"><b><font color="#FFFFFF">信息修改</font></b></div></td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12">
- <DIV ALIGN="center"> <FONT COLOR="#FF0000"> * </FONT>产品货号:</DIV></TD>
- <td width="79%" height="12">
- <input name="hh" type="text" id="hh" value="<%=rs2("hh")%>" size="40"> </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12">
- <DIV ALIGN="center"> <FONT COLOR="#FF0000"> * </FONT>产品名称:</DIV></TD>
- <td width="79%" height="12">
- <input name="title" type="text" id="title" value="<%=rs2("title")%>" size="50"> </td>
- </tr>
- <tr>
- <TD height="13"><div align="center"><FONT COLOR="#FF0000">* </FONT>产品类别:</div></TD>
- <td width="79%" height="13"><%
- 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)">
- <%
- do while not rs.eof
- if rs("id") = rs2("classid") then
- sel = "selected"
- selclass = rs("id")
- else
- sel = ""
- end if
- %>
- <option value="<%=rs("id")%>" <%=sel%>><%=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
- if rs("id") = rs2("nclassid") then
- sel = "selected"
- else
- sel = ""
- end if
- %>
- <option value="<%=rs("id")%>" <%=sel%>><%=rs("nclassname")%></option>
- <% rs.movenext
- loop
- end if
- rs.close
- %>
- </select>
- <%else%>
- 添加类别
- <%end if%>
- </td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="25">
- <DIV ALIGN="center"> <FONT COLOR="#FF0000">*</FONT> 产品信息:</DIV></TD>
- <td width="79%" height="25"><input name="content" type="hidden" id="content" value="<%=replace(rs2("content"),"""","")%>">
- <IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420"></IFRAME></td>
- </tr>
- <tr>
- <TD WIDTH="21%" height="12">
- <div align="center"><FONT COLOR="#FF0000">*</FONT> 产品图片:</div></TD>
- <td width="79%" height="12">
- <%IF RS2("pic")<>"" THEN%>
- <a href="../../upload2/<%=rs2("pic")%>" target="_blank">点击查看图片</a><br>
- <%END IF%>
- <input name="file" type="file" id="file" size="35"> </td>
- </tr>
- <tr>
- <td height="25" colspan="2"> <div align="center">
- <input type="submit" name="Submit2" value="修改">
- <input name="button" type="button" onClick="history.go(-1)" value="取消">
- <input type="hidden" name="operation" value="edit">
- <input type="hidden" name="id" value="<%=request("checkbox")%>">
- </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>
- <script language="JavaScript" src="../../Inc/func.js">
- </script>
- <script>
- //ClassSelect(form1.classid,"<%=rs2("classid")%>");
- //ClassSelect(form1.nclassid,"<%=rs2("nclassid")%>");
- </script>
- <%
- call COCLS
- %>