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. <script language = "JavaScript">
  9. //________________栏目选择变化的代码______________
  10. var onecount;
  11. onecount=0;
  12. subcat = new Array();
  13. <%
  14. dim count
  15. count=0
  16. do while not rs.eof 
  17. %>
  18. subcat[<%=count%>] = new Array("<%= trim(rs("nclassname"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("id"))%>");
  19. <%
  20. count = count + 1
  21. rs.movenext
  22. loop
  23. rs.close
  24. %>
  25. onecount=<%=count%>;
  26. function changelocation(locationid)
  27.     {
  28.     document.form1.nclassid.length = 0; 
  29.     var locationid=locationid;
  30.     var i;
  31.     for (i=0;i < onecount; i++)
  32.         {
  33.             if (subcat[i][1] == locationid)
  34.             { 
  35.                 document.form1.nclassid.options[document.form1.nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
  36.             }        
  37.         }
  38.         
  39.     } 
  40. </script>
  41. <%
  42. Dim rs2
  43. set rs2=conn.execute("select * from gslr where id="&request("checkbox"))
  44. %>
  45. <style type="text/css">
  46. <!--
  47. .style1 { color: #FFFFFF;
  48. font-weight: bold;
  49. }
  50. -->
  51. </style>
  52. <form name="form1" method="post" action="List_Save.asp" enctype="multipart/form-data">
  53.   <table width="100%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolordark="#ffffff" bordercolorlight="#000000">
  54.     <tr bgcolor="#23458B"> 
  55.       <td height="25" colspan="2"> 
  56.         <div align="center" class="style1"><b><font color="#FFFFFF">信息修改</font></b></div>
  57.       </td>
  58.     </tr>
  59.     <tr> 
  60.       <TD WIDTH="21%" height="12"> 
  61.         <DIV ALIGN="center"> <FONT COLOR="#FF0000"> * </FONT>标题:</DIV>
  62.       </TD>
  63.       <td width="79%" height="12"> 
  64.         <input name="title" type="text" id="title" value="<%=rs2("title")%>" size="50"></td>
  65.     </tr>
  66.     <tr> 
  67.       <TD WIDTH="21%" height="25"> 
  68.         <DIV ALIGN="center"> <FONT COLOR="#FF0000">*</FONT> 信息:</DIV>
  69.       </TD>
  70.       <td width="79%" height="25">
  71.         <input name="content" type="hidden" id="content" value="<%=replace(rs2("content"),"""","")%>">
  72.         <IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420"></IFRAME></td>
  73.     </tr>
  74.     <tr> 
  75.       <td height="25" colspan="2"> 
  76.         <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>
  82.       </td>
  83.     </tr>
  84.   </table>
  85.   <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" height="34"> 
  86. <tr> <td> <div align="center">说明:<font color="#FF0000">*</font> 为必须填写的内容</div></td></tr> 
  87. </table></form>
  88.   <script language="JavaScript" src="../../Inc/func.js">
  89. </script>
  90. <script>
  91. //ClassSelect(form1.classid,"<%=rs2("classid")%>");
  92. //ClassSelect(form1.nclassid,"<%=rs2("nclassid")%>");
  93. </script>
  94. <%
  95. call COCLS
  96. %>