<!--#include file="const.asp"-->
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.Write "<script language='javascript'>alert('请先登录！');history.go(-1);</script>"
response.End
else
if request.cookies("timesshop")("admin")="" then
response.Write "<script language='javascript'>alert('请先登录！');history.go(-1);</script>"
response.End
end if
end if
if session("rank")>2 then
response.Write "<script language='javascript'>alert('你无权管理网站设置！');history.go(-1);</script>"
response.End
end if

set rs=server.createobject("adodb.recordset")
set rs=conn.execute("select title from class where id="&request("id"))
title=rs("title")
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 rel="stylesheet" type="text/css" href="STYLE.CSS">
<title></title>
</head>

<body bgcolor="#D5D5D5">

<div align="center">
  <center>
  <table bgcolor="#e8e8e8" border="0" width="600" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" style="border-left: 2 solid #9BBCFF; border-right: 2 solid #9BBCFF" height="374">
    <tr>
      <td width="746" height="30" background="l1.gif">
        　<!--#include file="menu.asp"-->
      </td>
    </tr>
    <tr>
      <td width="744" height="349" valign="top">
        <form method="POST" action="savevote.asp?id=xg&classid=<%=request("id")%>">
          <div align="center">
            <table border="0" width="70%" cellspacing="0" cellpadding="0" height="334">
              <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" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt" value="<%=title%>"></td>
              </tr>
              <tr>
                <td width="100%" colspan="2" height="40">方式：<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>
			  <%do while not rs.eof
			  %>
              <tr>
                <td width="56%" height="30">选择：<input type="text" name="xz" size="20" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; FONT-SIZE: 9pt" value="<%=rs("vote")%>"></td>
                <td width="44%" height="30">条行柱颜色：<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" style="BORDER-BOTTOM: #FFFFFF 1px double; BORDER-LEFT: #FFFFFF 1px double; BORDER-RIGHT: #FFFFFF 1px double; BORDER-TOP: #FFFFFF 1px double; BACKGROUND: #93CF43 COLOR: #000000; 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"><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: #93CF43 COLOR: #000000; FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp;<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: #93CF43 COLOR: #000000; FONT-SIZE: 9pt"></p>
        </form>
      </td>
    </tr>
 <tr>
      <td width="746" height="18" background="l2.gif"></td>
    </tr>
  </table>
  </center>
</div>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
