⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 votemodify.asp

📁 XXX档案美女图片站适合给图片广告的站长下载使用
💻 ASP
字号:
<!--#include file="const.asp"-->
<!--#include file="connv.asp"-->
<!--#include file="session.asp"-->
<%if session("userkey")<>4 then%>
<script language=javascript>  
alert( "错误:您无权进行版面管理!"  );
location.href = "javascript:history.back()"  
</script>
<%end if%>
<%'On Error Resume Next
set rs=server.createobject("adodb.recordset")
set rs=conn.execute("select title,kg,overtime from voteclass where id="&request("id"))
title=rs("title")
kg=rs("kg")
overtime=cstr(rs("overtime"))
overtime=formatdatetime(overtime)
years=year(overtime)
months=month(overtime)
days=day(overtime)
hours=hour(overtime)
minutes=minute(overtime)
seconds=second(overtime)
rs.close
sql="select * from vote where class="&request("id")&" order by id"
rs.open sql,conn,3,1
dscount=rs.recordcount
'Response.Write Err.description

style=request("style")

%>

<head>
<link href="../../css/sitecss.css" rel="stylesheet" type="text/css">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
	margin-top: 1px;
}
-->
</style></head>

<body bgcolor="#FFFFFF">
<div align="center">
  <center>
     <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
       <tr>
         <td height="25" bgcolor="#7C7CB5"  ><div align="right"><A href="Admin_Exit.asp"><FONT color=#ffffff>退出网站</FONT></A>&nbsp;&nbsp; <A onclick="checkclick('您是否要打开本站首页?')" href="index.asp" target=_blank><FONT color=#ffffff>网站首页</FONT></A></div></td>
       </tr>
     </table>
     <!--#include file="vmenu.asp"-->
    <table width="100%"  >
      <tr>
        <td height="25"></td>
      </tr>
    </table>
    <table width="100%" height="315" border="0" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#999999">
      <tr>
        <td height="23" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../adminManage/images/bg1.gif">
            <tr> 
              <td height="26" bgcolor="#eeeeee"> <div align="center">┊<b> 修改投票 </b>┊</div></td>
            </tr>
          </table></td>
      </tr>
      <tr> 
        <td width="746" height="263" valign="top" bgcolor="#FFFFFF"> 
          <form method="POST" action="savevote.asp?id=xg&classid=<%=request("id")%>">
            <div align="center"> 
              <table border="0" width="70%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr> 
                  <td width="100%" colspan="2" height="18"></td>
                </tr>
                <tr> 
                  <td width="100%" colspan="2" height="36">标题: 
                    <input type="text" name="title" size="38" value="<%=title%>"> 
                  </td>
                </tr>
                <tr> 
                  <td width="100%" colspan="2" height="30">方式: 
                    <input type="radio" value="radio" name="style" <%if style="radio" then%>checked<%end if%>>
                    单选&nbsp; <input type="radio" value="checkbox" name="style" <%if style="checkbox" then%>checked<%end if%>>
                    多选</td>
                </tr>
                <tr> 
                  <td width="100%" colspan="2" height="30">状态: 
                    <input type="radio" name="kg" value="0"<%if kg=0 then%> checked<%end if%>>
                    开&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="kg" value="1"<%if kg=1 then%> checked<%end if%>>
                    关</td>
                </tr>
                <tr> 
                  <td width="100%" colspan="2" height="30">结束时间: 
                    <select size="1" name="years">
                      <option value="0"<%if cstr(years)="0" then%> selected<%end if%>>0</option>
                      <option value="2003"<%if cstr(years)="2003" then%> selected<%end if%>>2003</option>
                      <option value="2004"<%if cstr(years)="2004" then%> selected<%end if%>>2004</option>
                      <option value="2005"<%if cstr(years)="2005" then%> selected<%end if%>>2005</option>
                      <option value="2006"<%if cstr(years)="2006" then%> selected<%end if%>>2006</option>
                    </select>
                    <select size="1" name="months">
                      <option value="1"<%if cstr(months)="1" then%> selected<%end if%>>1</option>
                      <option value="2"<%if cstr(months)="2" then%> selected<%end if%>>2</option>
                      <option value="3"<%if cstr(months)="3" then%> selected<%end if%>>3</option>
                      <option value="4"<%if cstr(months)="4" then%> selected<%end if%>>4</option>
                      <option value="5"<%if cstr(months)="5" then%> selected<%end if%>>5</option>
                      <option value="6"<%if cstr(months)="6" then%> selected<%end if%>>6</option>
                      <option value="7"<%if cstr(months)="7" then%> selected<%end if%>>7</option>
                      <option value="8"<%if cstr(months)="8" then%> selected<%end if%>>8</option>
                      <option value="9"<%if cstr(months)="9" then%> selected<%end if%>>9</option>
                      <option value="10"<%if cstr(months)="10" then%> selected<%end if%>>10</option>
                      <option value="11"<%if cstr(months)="11" then%> selected<%end if%>>11</option>
                      <option value="12"<%if cstr(months)="12" then%> selected<%end if%>>12</option>
                    </select>
                    <select size="1" name="days">
                      <%for i=1 to 31
                response.write "<option value='"&i&"'"
                if cstr(days)=cstr(i) then
                response.write " selected"
                end if
                response.write ">"&i&"</option>"
                next%>
                    </select>
                    日&nbsp;&nbsp;&nbsp; <select size="1" name="hours">
                      <%for i=1 to 23
                response.write "<option value='"&i&"'"
                if cstr(hours)=cstr(i) then
                response.write " selected"
                end if
                response.write ">"&i&"</option>"
                next%>
                    </select>
                    <select size="1" name="minutes">
                      <option value="00">00</option>
                      <%for i=1 to 59
                if i<10 then
                response.write "<option value='0"&i&"'"
                if cstr(minutes)=cstr(i) then
                response.write " selected"
                end if
                response.write ">0"&i&"</option>"
                else
                response.write "<option value='"&i&"'"
                if cstr(minutes)=cstr(i) then
                response.write " selected"
                end if
                response.write">"&i&"</option>"
                end if
                next%>
                    </select>
                    <select size="1" name="seconds">
                      <option value="00">00</option>
                      <%for i=1 to 59
                if i<10 then
                response.write "<option value='0"&i&"'"
                if cstr(seconds)=cstr(i) then
                response.write " selected"
                end if
                response.write ">0"&i&"</option>"
                else
                response.write "<option value='"&i&"'"
                if cstr(seconds)=cstr(i) then
                response.write " selected"
                end if
                response.write">"&i&"</option>"
                end if
                next%>
                    </select> </td>
                </tr>
                <%do while not rs.eof
			  %>
                <tr> 
                  <td width="56%" height="30">选择: 
                    <input type="text" name="xg" size="20"  value="<%=rs("vote")%>"> 
                  </td>
                  <td width="44%" height="30"> <INPUT TYPE="hidden" name="yc" value="<%=rs("id")%>">
                    条行柱颜色: 
                    <select name="color" style="font-size:12px" size="1">
                      <option style="background-color:red;color:red" value="red"<%if rs("color")="red" then%> selected<%end if%>>默认</option>
                      <option style="background-color:000000;color:000000" value="000000"<%if rs("color")="000000" then%> selected<%end if%>>黑色</option>
                      <option style="background-color:0088FF;color:0088FF" value="0088FF"<%if rs("color")="0088FF" then%> selected<%end if%>>海蓝</option>
                      <option style="background-color:0000FF;color:0000FF" value="0000FF"<%if rs("color")="0000FF" then%> selected<%end if%>>亮蓝</option>
                      <option style="background-color:000088;color:000088" value="000088"<%if rs("color")="000088" then%> selected<%end if%>>深蓝</option>
                      <option style="background-color:888800;color:888800" value="888800"<%if rs("color")="888800" then%> selected<%end if%>>黄绿</option>
                      <option style="background-color:008888;color:008888" value="008888"<%if rs("color")="008888" then%> selected<%end if%>>蓝绿</option>
                      <option style="background-color:008800;color:008800" value="008800"<%if rs("color")="008800" then%> selected<%end if%>>橄榄</option>
                      <option style="background-color:8888FF;color:8888FF" value="8888FF"<%if rs("color")="8888FF" then%> selected<%end if%>>淡紫</option>
                      <option style="background-color:AA00CC;color:AA00CC" value="AA00CC"<%if rs("color")="AA00CC" then%> selected<%end if%>>紫色</option>
                      <option style="background-color:8800FF;color:8800FF" value="8800FF"<%if rs("color")="8800FF" then%> selected<%end if%>>蓝紫</option>
                      <option style="background-color:888888;color:888888" value="888888"<%if rs("color")="888888" then%> selected<%end if%>>灰色</option>
                      <option style="background-color:CCAA00;color:CCAA00" value="CCAA00"<%if rs("color")="CCAA00" then%> selected<%end if%>>土黄</option>
                      <option style="background-color:FF8800;color:FF8800" value="FF8800"<%if rs("color")="FF8800" then%> selected<%end if%>>金黄</option>
                      <option style="background-color:CC3366;color:CC3366" value="CC3366"<%if rs("color")="CC3366" then%> selected<%end if%>>暗红</option>
                      <option style="background-color:FF00FF;color:FF00FF" value="FF00FF"<%if rs("color")="FF00FF" then%> selected<%end if%>>紫红</option>
                      <option style="background-color:3366CC;color:3366CC" value="3366CC"<%if rs("color")="3366CC" then%> selected<%end if%>>蓝黑</option>
                    </select> </td>
                </tr>
                <%rs.movenext
			  loop
			  for i=1 to 4
			  %>
                <tr> 
                  <td width="56%" height="30">选择: 
                    <input type="text" name="xz" size="20" FONT-SIZE: 9pt"> </td>
                  <td width="44%" height="30">条行柱颜色: 
                    <select name="color" style="font-size:12px" size="1">
                      <option style="background-color:red;color:red" value="red" selected>默认</option>
                      <option style="background-color:000000;color:000000" value="000000">黑色</option>
                      <option style="background-color:0088FF;color:0088FF" value="0088FF">海蓝</option>
                      <option style="background-color:0000FF;color:0000FF" value="0000FF">亮蓝</option>
                      <option style="background-color:000088;color:000088" value="000088">深蓝</option>
                      <option style="background-color:888800;color:888800" value="888800">黄绿</option>
                      <option style="background-color:008888;color:008888" value="008888">蓝绿</option>
                      <option style="background-color:008800;color:008800" value="008800">橄榄</option>
                      <option style="background-color:8888FF;color:8888FF" value="8888FF">淡紫</option>
                      <option style="background-color:AA00CC;color:AA00CC" value="AA00CC">紫色</option>
                      <option style="background-color:8800FF;color:8800FF" value="8800FF">蓝紫</option>
                      <option style="background-color:888888;color:888888" value="888888">灰色</option>
                      <option style="background-color:CCAA00;color:CCAA00" value="CCAA00">土黄</option>
                      <option style="background-color:FF8800;color:FF8800" value="FF8800">金黄</option>
                      <option style="background-color:CC3366;color:CC3366" value="CC3366">暗红</option>
                      <option style="background-color:FF00FF;color:FF00FF" value="FF00FF">紫红</option>
                      <option style="background-color:3366CC;color:3366CC" value="3366CC">蓝黑</option>
                    </select> </td>
                </tr>
                <%next%>
              </table>
            </div>
            <p align="center"><strong> 
              <input type="submit" value="提交" name="B1">
              &nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="reset" value="全部重写" name="B2">
              </strong></p>
        </form></td>
      </tr>
    </table>
  </center>
</div>
<p align="center"><font color="#FF0000">注意:结束时间的</font><font color="#0000FF">年份</font><font color="#FF0000">如果为</font><font color="#0000FF">0</font><font color="#FF0000">,则表示不限定投票结束时间。</font>
<!--#include file=../../admin/Admin_Bottom.asp-->
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%></p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -