<meta http-equiv= "Content-language" content= "ZH-CN" >
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 4.0" >
<meta name= "ProgId" content= "FrontPage.Editor.Document" >
<link href= "New.css" Rel=stylesheet type=text/css>
<title>asp Online Survey System </title>
<meta name= "Microsoft Border" content= "None" >
<style type= "Text/css" >
<!--
. Test {FONT-SIZE:13PX}
-->
</style>
<body>
<%
Dim conn
Dim connstr
Connstr= "dbq=" +server.mappath ("Vote.mdb") + ";D efaultdir=;D river={microsoft Access DRIVER (*.mdb)};"
Set Conn=server.createobject ("ADODB. CONNECTION ")
Conn.Open ConnStr
Dim rs
Dim sql
Dim Selecta
Dim Selectb
Dim selectc
Dim selectd
Dim selecte
Dim Selectf
Dim Selectg
Dim Selecth
Dim Selecti
Dim Selectj
Dim Total
set Rs=server.createobject ("Adodb.recordset")
sql= "SELECT * from vote where id=1"
Rs.Open sql,conn,1,1
if not rs.eof then
total=rs ("Selecta") +rs ("SELECTB") +rs ("SELECTC") +rs ("SELECTD") +rs ("Selecte") +rs ("SELECTF") +rs ("SELECTG") +rs ("Selecth") +rs ("Selecti") +rs ("Selectj")
Selecta= (RS ("Selecta")/total) *100
selectb= (RS ("SELECTB")/total) *100
selectc= (RS ("SELECTC")/total) *100
selectd= (RS ("SELECTD")/total) *100
selecte= (RS ("selecte")/total) *100
selectf= (RS ("SELECTF")/total) *100
selectg= (RS ("SELECTG")/total) *100
Selecth= (RS ("Selecth")/total) *100
selecti= (RS ("Selecti")/total) *100
selectj= (RS ("SELECTJ")/total) *100
Response.Write <table cellspacing=0 cellpadding=0 border=1 ' valign= ' Middle ' width= ' 100% ' height= ' Ali gn= ' center ' bordercolor= ' #ffffff ' ><tr><td bgcolor= ' #f7f3f7 ' bordercolor= ' #808080 ' > '
Response.Write "<p align=center>::: Investigation Results:::</p>"%>
<span class= "test" ><br>
</span>
<p class= "test" >[there are <b><font color= "#FF0000" ><%=total%></font></b> People participate in this site survey]<br>
<br>
&nbsp;
<table width= "424" border= "0" cellspacing= "0" cellpadding= "0" >
<tr>
<TD width= "147" class= "test" height= ">
"
<div align= "right" > City Garden:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selecta*2)%> height=10& Gt;&nbsp;<%=rs ("Selecta")%> people
: <%=round (selecta,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "right" > New World Garden:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selectb*2)%> height=10& Gt;&nbsp;<%=rs ("SELECTB")%> people
Account: <%=round (selectb,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "right" > King Lake Garden:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selectc*2)%> height=10& Gt;&nbsp;<%=rs ("SELECTC")%> people
: <%=round (selectc,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "right" > Dong Tai Garden:</div>
</td>
<TD width= "277" class= "test" height= "" ><img src=redbar.gif (width=<%=int) selectd*2%> &nbsp;<%=rs ("SELECTD")%> people
: <%=round (selectd,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "Right" > New Century Hao Yuan:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selecte*2)%> height=10& Gt;&nbsp;<%=rs ("selecte")%> people
: <%=round (selecte,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "Right" > Heights Golf Villa:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selectf*2)%> height=10& Gt;&nbsp;<%=rs ("SELECTF")%> people
: <%=round (selectf,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "right" > Rich garden:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selectg*2)%> height=10& Gt;&nbsp;<%=rs ("SELECTG")%> people
: <%=round (selectg,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "Right" > Yong Hua Ting garden:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selecth*2)%> height=10& Gt;&nbsp;<%=rs ("Selecth")%> people
: <%=round (selecth,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "right" > Kanazawa garden:</div>
</td>
<TD width= "277" class= "test" height= "" ><img src=redbar.gif (width=<%=int) selecti*2%> &nbsp;<%=rs ("Selecti")%> people
: <%=round (selecti,2)%>% </td>
</tr>
<tr>
<td width= "147" class= "test" height= ">
"
<div align= "right" > East Lake Garden:</div>
</td>
<td width= "277" class= "test" height= "><img" Src=redbar.gif width=<%=int (selectj*2)%> height=10& Gt;&nbsp;<%=rs ("SELECTJ")%> people
: <%=round (selectj,2)%>%
<%
Else
Response.Write "No one has voted yet, you are welcome to vote!"
End If
Rs.close
Set rs=nothing
Conn.close
Set conn=nothing
%>
</td>
</tr>
</table>
</body>