set rs=server.createobject("adodb.recordset")
set rs=conn.execute("select title,kg,overtime from class 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")
%>
标题:
方式:单选
多选
状态:开 关
结束时间:
0
2003
2004
2005
2006
年
1
2
3
4
5
6
7
8
9
10
11
12
月
response.write " if cstr(days)=cstr(i) then
response.write " selected"
end if
response.write ">"&i&""
next%>
日
response.write " if cstr(hours)=cstr(i) then
response.write " selected"
end if
response.write ">"&i&""
next%>
:
00
if i response.write " if cstr(minutes)=cstr(i) then
response.write " selected"
end if
response.write ">0"&i&""
else
response.write " if cstr(minutes)=cstr(i) then
response.write " selected"
end if
response.write">"&i&""
end if
next%>
:
00
if i response.write " if cstr(seconds)=cstr(i) then
response.write " selected"
end if
response.write ">0"&i&""
else
response.write " if cstr(seconds)=cstr(i) then
response.write " selected"
end if
response.write">"&i&""
end if
next%>
%>
选择:
条行柱颜色:
默认
黑色
海蓝
亮蓝
深蓝
黄绿
蓝绿
橄榄
淡紫
紫色
蓝紫
灰色
土黄
金黄
暗红
紫红
蓝黑
loop
for i=1 to 4
%>
选择:
条行柱颜色:
默认
黑色
海蓝
亮蓝
深蓝
黄绿
蓝绿
橄榄
淡紫
紫色
蓝紫
灰色
土黄
金黄
暗红
紫红
蓝黑
注意:结束时间的年份如果为0,则表示不限定投票结束时间。 set rs=nothing
conn.close
set conn=nothing
%>