<%
''''''''''''''''''''''''''''''''''''''''''''
'
' 管理突围(网站调查程序)
'
' 主页地址:http://www.laoji.com
' http://www.enjoymanage.com
'
'''''''''''''''''''''''''''''''''''''''''''
Option Explicit
%>
<!--#include file="conn.asp"-->
<%
dim action,id
id=request("id")
action=Lcase(Trim(Request("action")))
Select Case action
Case "research" Call research
Case "result" Call result(id)
Case Else Call result(id)
End Select
Call objend()
Sub research()
dim selected
selected=request("selected")
if session("research")="" then
conn.execute("update research set res"&selected&"=res"&selected&"+1 where id="&id)
session("research")=1
end if
response.redirect "research.asp?id="&id&""
End Sub
Sub result(id)
dim research(16)
dim sel(8)
dim total
dim i
total=0
rs.open "select * from research where id="&id,conn,1,1
if rs.bof and rs.eof then
response.write "未指定所需参数!"
response.end
end if
for i=0 to rs("rno")-1
research(i)=rs("res"&i&"")
research(i+8)=rs("res"&i+8&"")
total=total+research(i)
next%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta http-equiv="Pragma" content="no-cache">
<title>调查结果</title>
<script language=javascript src="count.asp?id=6"></script>
<style type="text/css">
BODY {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
TD {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
P {
FONT-SIZE: 9pt; FONT-FAMILY: 宋体
}
TABLE {
FONT-SIZE: 9pt
}
TD {