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

IP电话/视频会议

开发平台:

ASP/ASPX

  1. <!--#include file="vote_conn.asp"-->
  2. <%'On Error Resume Next
  3. set rs=server.createobject("adodb.recordset")
  4. set rs=conn.execute("select title from class where id="&request("id"))
  5. title=rs("title")
  6. rs.close
  7. sql="select * from vote where class="&request("id")&" order by id"
  8. rs.open sql,conn,3,1
  9. dscount=rs.recordcount
  10. 'Response.Write Err.description
  11. style=request("style")
  12. %>
  13. <head>
  14. <link rel="stylesheet" type="text/css" href="STYLE.CSS">
  15. <title></title>
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
  17. <!--
  18. body {
  19. background-color: #FFFFFF;
  20. }
  21. -->
  22. </style></head>
  23. <body>
  24. <div align="center">
  25.   <center>
  26.   <table width="532" height="418" border="0" cellpadding="0" cellspacing="0" class="border">
  27.     <tr>
  28.       <td height="26" class="title">
  29.           <div align="center"><strong>调 查 修 改</strong></div>
  30.         </td>
  31.     </tr>
  32.     <tr bordercolorlight="#000000">
  33.       <td class="tdbg"> <form method="POST" action="vote_save.asp?id=xg&classid=<%=request("id")%>">
  34.         <div align="center">
  35.           <table border="0" width="70%" cellspacing="0" cellpadding="0" height="334">
  36.             <tr>
  37.               <td width="100%" colspan="2" height="18"></td>
  38.             </tr>
  39.             <tr>
  40.               <td width="100%" colspan="2" height="36">标题:
  41.                   <input type="text" name="title" size="38" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #e4ebfa COLOR: #000000; FONT-SIZE: 9pt" value="<%=title%>"></td>
  42.             </tr>
  43.             <tr>
  44.               <td width="100%" colspan="2" height="40">方式:
  45.                   <input type="radio" value="radio" name="style" <%if style="radio" then%>checked<%end if%>>
  46.                   单选&nbsp;
  47.                   <input type="radio" value="checkbox" name="style" <%if style="checkbox" then%>checked<%end if%>>
  48.                   多选</td>
  49.             </tr>
  50.             <%do while not rs.eof
  51.   %>
  52.             <tr>
  53.               <td width="56%" height="30">选择:
  54.                   <input type="text" name="choose" size="20" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #e4ebfa COLOR: #000000; FONT-SIZE: 9pt" value="<%=rs("vote")%>"></td>
  55.               <td width="44%" height="30">条行柱颜色:
  56.                   <select name="color" style="font-size:12px" size="1">
  57.                     <option style="background-color:red;color:red" value="red"<%if rs("color")="red" then%> selected<%end if%>>默认</option>
  58.                     <option style="background-color:000000;color:000000" value="000000"<%if rs("color")="000000" then%> selected<%end if%>>黑色</option>
  59.                     <option style="background-color:0088FF;color:0088FF" value="0088FF"<%if rs("color")="0088FF" then%> selected<%end if%>>海蓝</option>
  60.                     <option style="background-color:0000FF;color:0000FF" value="0000FF"<%if rs("color")="0000FF" then%> selected<%end if%>>亮蓝</option>
  61.                     <option style="background-color:000088;color:000088" value="000088"<%if rs("color")="000088" then%> selected<%end if%>>深蓝</option>
  62.                     <option style="background-color:888800;color:888800" value="888800"<%if rs("color")="888800" then%> selected<%end if%>>黄绿</option>
  63.                     <option style="background-color:008888;color:008888" value="008888"<%if rs("color")="008888" then%> selected<%end if%>>蓝绿</option>
  64.                     <option style="background-color:008800;color:008800" value="008800"<%if rs("color")="008800" then%> selected<%end if%>>橄榄</option>
  65.                     <option style="background-color:8888FF;color:8888FF" value="8888FF"<%if rs("color")="8888FF" then%> selected<%end if%>>淡紫</option>
  66.                     <option style="background-color:AA00CC;color:AA00CC" value="AA00CC"<%if rs("color")="AA00CC" then%> selected<%end if%>>紫色</option>
  67.                     <option style="background-color:8800FF;color:8800FF" value="8800FF"<%if rs("color")="8800FF" then%> selected<%end if%>>蓝紫</option>
  68.                     <option style="background-color:888888;color:888888" value="888888"<%if rs("color")="888888" then%> selected<%end if%>>灰色</option>
  69.                     <option style="background-color:CCAA00;color:CCAA00" value="CCAA00"<%if rs("color")="CCAA00" then%> selected<%end if%>>土黄</option>
  70.                     <option style="background-color:FF8800;color:FF8800" value="FF8800"<%if rs("color")="FF8800" then%> selected<%end if%>>金黄</option>
  71.                     <option style="background-color:CC3366;color:CC3366" value="CC3366"<%if rs("color")="CC3366" then%> selected<%end if%>>暗红</option>
  72.                     <option style="background-color:FF00FF;color:FF00FF" value="FF00FF"<%if rs("color")="FF00FF" then%> selected<%end if%>>紫红</option>
  73.                     <option style="background-color:3366CC;color:3366CC" value="3366CC"<%if rs("color")="3366CC" then%> selected<%end if%>>蓝黑</option>
  74.                 </select></td>
  75.             </tr>
  76.             <%rs.movenext
  77.   loop
  78.   for i=1 to 4
  79.   %>
  80.             <tr>
  81.               <td width="56%" height="30">选择:
  82.                   <input type="text" name="choose" size="20" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #e4ebfa COLOR: #000000; FONT-SIZE: 9pt"></td>
  83.               <td width="44%" height="30">条行柱颜色:
  84.                   <select name="color" style="font-size:12px" size="1">
  85.                     <option style="background-color:red;color:red" value="red" selected>默认</option>
  86.                     <option style="background-color:000000;color:000000" value="000000">黑色</option>
  87.                     <option style="background-color:0088FF;color:0088FF" value="0088FF">海蓝</option>
  88.                     <option style="background-color:0000FF;color:0000FF" value="0000FF">亮蓝</option>
  89.                     <option style="background-color:000088;color:000088" value="000088">深蓝</option>
  90.                     <option style="background-color:888800;color:888800" value="888800">黄绿</option>
  91.                     <option style="background-color:008888;color:008888" value="008888">蓝绿</option>
  92.                     <option style="background-color:008800;color:008800" value="008800">橄榄</option>
  93.                     <option style="background-color:8888FF;color:8888FF" value="8888FF">淡紫</option>
  94.                     <option style="background-color:AA00CC;color:AA00CC" value="AA00CC">紫色</option>
  95.                     <option style="background-color:8800FF;color:8800FF" value="8800FF">蓝紫</option>
  96.                     <option style="background-color:888888;color:888888" value="888888">灰色</option>
  97.                     <option style="background-color:CCAA00;color:CCAA00" value="CCAA00">土黄</option>
  98.                     <option style="background-color:FF8800;color:FF8800" value="FF8800">金黄</option>
  99.                     <option style="background-color:CC3366;color:CC3366" value="CC3366">暗红</option>
  100.                     <option style="background-color:FF00FF;color:FF00FF" value="FF00FF">紫红</option>
  101.                     <option style="background-color:3366CC;color:3366CC" value="3366CC">蓝黑</option>
  102.                 </select></td>
  103.             </tr>
  104.             <%next%>
  105.           </table>
  106.         </div>
  107.         <p align="center">
  108.           <input type="submit" value="提交" name="B1" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #e4ebfa COLOR: #000000; FONT-SIZE: 9pt">
  109.       &nbsp;&nbsp;&nbsp;&nbsp;
  110.           <input type="reset" value="全部重写" name="B2" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #e4ebfa COLOR: #000000; FONT-SIZE: 9pt">
  111. </p>
  112.       </form>        </td>
  113.     </tr>
  114.   </table>
  115.   </center>
  116. </div>
  117. <%rs.close
  118. set rs=nothing
  119. conn.close
  120. set conn=nothing
  121. %>