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 info 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">
  65.         <select name="wz" id="wz">
  66.           <option value="a" <%if rs2("wz")="a" then response.write "selected='selected'"%>>中文</option>
  67.           <option value="b" <%if rs2("wz")="b" then response.write "selected='selected'"%>>英文</option>
  68.         </select>      </td>
  69.     </tr>
  70.     <tr> 
  71.       <TD WIDTH="21%" height="25"> 
  72.         <DIV ALIGN="center"> <FONT COLOR="#FF0000">*</FONT> 信息:</DIV>
  73.       </TD>
  74.       <td width="79%" height="25">
  75.         <input name="content" type="hidden" id="content" value="<%=replace(rs2("content"),"""","")%>">
  76.         <IFRAME ID="eWebEditor1" SRC="../eWebEditor/ewebeditor.asp?id=content&style=s_light" FRAMEBORDER="0" SCROLLING="no" WIDTH="630" HEIGHT="420"></IFRAME></td>
  77.     </tr>
  78.     <tr> 
  79.       <td height="25" colspan="2"> 
  80.         <div align="center"> 
  81.           <input type="submit" name="Submit2" value="修改">
  82.           <input name="button" type="button" onClick="history.go(-1)" value="取消">
  83.           <input type="hidden" name="operation" value="edit">
  84.           <input type="hidden" name="id" value="<%=request("checkbox")%>">
  85.         </div>
  86.       </td>
  87.     </tr>
  88.   </table>
  89.   <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" height="34"> 
  90. <tr> <td> <div align="center">说明:<font color="#FF0000">*</font> 为必须填写的内容</div></td></tr> 
  91. </table></form>
  92.   <script language="JavaScript" src="../../Inc/func.js">
  93. </script>
  94. <script>
  95. //ClassSelect(form1.classid,"<%=rs2("classid")%>");
  96. //ClassSelect(form1.nclassid,"<%=rs2("nclassid")%>");
  97. </script>
  98. <%
  99. call COCLS
  100. %>