List_Edit.asp
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:3k
源码类别:

IP电话/视频会议

开发平台:

ASP/ASPX

  1. <!--#include file="../../inc/conn.asp"-->
  2. <LINK REL="stylesheet" HREF="../images/style.css" TYPE="text/css"> <META content="text/html;charset=gb2312" http-equiv="Content-Type">
  3. <%
  4. dim rs,sql
  5. sql="select * from nclass"
  6. set rs=conn.execute(sql)
  7. %>
  8. <%
  9. Dim rs2
  10. set rs2=conn.execute("select * from product where id="&request("checkbox"))
  11. %>
  12. <style type="text/css">
  13. <!--
  14. .style1 { color: #FFFFFF;
  15. font-weight: bold;
  16. }
  17. -->
  18. </style>
  19. <form name="form1" method="post" action="List_Save.asp" enctype="multipart/form-data">
  20.   <table width="100%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
  21.     <tr bgcolor="#23458B">
  22.       <td height="25" colspan="2">
  23.         <div align="center" class="style1"><b><font color="#FFFFFF">信息修改</font></b></div></td>
  24.     </tr>
  25.     <tr>
  26.       <TD WIDTH="21%" height="12">
  27.         <DIV ALIGN="center"> <FONT COLOR="#FF0000"> * </FONT>产品名称:</DIV></TD>
  28.       <td width="79%" height="12">
  29.         <input name="title" type="text" id="title" value="<%=rs2("title")%>" size="50">      </td>
  30.     </tr>
  31.     <tr>
  32.       <TD height="13"><div align="center"><FONT COLOR="#FF0000">* </FONT>产品类别:</div></TD>
  33.       <td width="79%" height="13"><%
  34.     sql="select * from class"
  35.     set rs=conn.execute(sql)
  36.     if not rs.eof then
  37.     %>
  38.         一类:
  39.           <select name="classid" >
  40.             <%
  41. do while not rs.eof
  42. if rs("id") = rs2("classid") then
  43. sel = "selected"
  44. selclass = rs("id")
  45. else
  46. sel = ""
  47. end if
  48. %>
  49.             <option value="<%=rs("id")%>" <%=sel%>><%=rs("classname")%></option>
  50.             <%rs.movenext
  51.         loop
  52. rs.close
  53.         %>
  54.           </select>
  55.           <%else%>
  56.       添加类别
  57.       <%end if%>
  58. &nbsp;</td>
  59.     </tr>
  60.     <tr>
  61.       <TD WIDTH="21%" height="25">
  62.         <DIV ALIGN="center"> <FONT COLOR="#FF0000">*</FONT> 产品信息:</DIV></TD>
  63.       <td width="79%" height="25"><input name="content" type="hidden" id="content" value="<%=replace(rs2("content"),"""","")%>">
  64.         <IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420"></IFRAME></td>
  65.     </tr>
  66.     <tr>
  67.       <TD WIDTH="21%" height="12">
  68.         <div align="center"><FONT COLOR="#FF0000">*</FONT> 产品图片(大):</div></TD>
  69.       <td width="79%" height="12">
  70.         <%IF RS2("pic")<>"" THEN%>
  71.         <a href="../../upload/<%=rs2("pic")%>" target="_blank">点击查看图片</a><br>
  72.         <%END IF%>
  73.       <input name="file" type="file" id="file" size="35">      </td>
  74.     </tr>
  75.     <tr>
  76.       <td height="25" colspan="2">        <div align="center">
  77.           <input type="submit" name="Submit2" value="修改">
  78.           <input name="button" type="button" onClick="history.go(-1)" value="取消">
  79.           <input type="hidden" name="operation" value="edit">
  80.           <input type="hidden" name="id" value="<%=request("checkbox")%>">
  81.       </div></td>
  82.     </tr>
  83.   </table>
  84.   <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" height="34"> 
  85. <tr> <td> <div align="center">说明:<font color="#FF0000">*</font> 为必须填写的内容</div></td></tr> 
  86. </table></form>
  87.   <script language="JavaScript" src="../../Inc/func.js">
  88. </script>
  89. <script>
  90. //ClassSelect(form1.classid,"<%=rs2("classid")%>");
  91. //ClassSelect(form1.nclassid,"<%=rs2("nclassid")%>");
  92. </script>
  93. <%
  94. call COCLS
  95. %>