<%@ Import Namespace="System.Data.SqlClient"%>
<%@ Import Namespace="System.Data"%>
<%@ Page CodeBehind="show.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="yn165.show" %>
<HTML>
	<HEAD>
		<TITLE>创库网络(昆明)</TITLE>
		<META http-equiv="Content-Type" content="text/html; charset=gb2312">
		<META http-equiv="Pragma" content="no-cache">
		<STYLE type="text/css">INPUT { FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	A:hover { COLOR: #ff6666; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	A { FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	TD { FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial", "Times New Roman"; TEXT-DECORATION: none }
	.unnamed1 { FONT-SIZE: 7pt; TEXT-DECORATION: none }
	.unnamed2 { FONT-SIZE: 10.5pt; TEXT-DECORATION: none }
	.unnamed3 { FONT-SIZE: 14pt; TEXT-DECORATION: none }
	</STYLE>
		<!--web design:zheng guiwen E-mail:guiwen@zheng.com.cn -->
		<META content="MSHTML 5.00.2614.3500" name="GENERATOR">
	</HEAD>
	<BODY text="#000000" vLink="#000000" aLink="#000000" link="#000000" bgColor="#ffffff" leftMargin="0" topMargin="0" onload="" marginheight="0" marginwidth="0">
		<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
			
  <tr vAlign="middle" align="center"> 
    <td> 
      <table cellSpacing="5" cellPadding="0" width="300" border="0">
						<tr align="middle">
							<td class="unnamed2"><font color="#ff0000">在线调查结果：</font></td>
						</tr>
						<tr>
							<td><font color="#669900">您是从何种渠道了解到我们网站的？</font></td>
						</tr>
					</table>
					<table cellSpacing="4" cellPadding="0" width="300" border="0">
						<form action="003.aspx" method="post">
							<%
SqlConnection conn = new SqlConnection("server=211.155.254.117;database=yn165;uid=yn165;pwd=159753");
conn.Open();
string sql="select * from poll";
SqlCommand cmd = new SqlCommand(sql,conn);
SqlDataReader reader = cmd.ExecuteReader();
int total,i=0;
if (reader.Read())
{	
total=Convert.ToInt16(reader.GetValue(0))+Convert.ToInt16(reader.GetValue(1))+Convert.ToInt16(reader.GetValue(2))+Convert.ToInt16(reader.GetValue(3))+Convert.ToInt16(reader.GetValue(4));
%>
							<tr>
								<td width="82" height="18">① 网络广告：</td>
								<td width="210" height="18"><font color="#ff6600"><IMG id=img1 height=5 src="img/tu1.gif" width="<% =Convert.ToInt16(reader.GetValue(0))*150/total  %>" >&nbsp;<%=reader.GetValue(0).ToString()%>
										人</font></td>
							</tr>
							<tr>
								<td width="82" height="18">② 搜索引擎：</td>
								<td width="210" height="18"><font color="#ff6600"><IMG id=img2 height=5 src="img/tu2.gif" width="<% =Convert.ToInt16(reader.GetValue(1))*150/total  %>" >
										<%=reader.GetValue(1).ToString()%>
										人 </font>
								</td>
							</tr>
							<tr>
								<td width="82" height="18">③ 报刊广告：</td>
								<td width="210" height="18"><font color="#ff6600"><IMG id=img3 height=5 src="img/tu3.gif" width="<% =Convert.ToInt16(reader.GetValue(2))*150/total  %>" >
										<%=reader.GetValue(2).ToString()%>
										人 </font>
								</td>
							</tr>
							<tr>
								<td width="82" height="18">④ 邮件广告：</td>
								<td width="210" height="18"><font color="#ff6600"><IMG id=img4 height=5 src="img/tu4.gif" width="<% =Convert.ToInt16(reader.GetValue(3))*150/total  %>" >
										<%=reader.GetValue(3).ToString()%>
										人 </font>
								</td>
							</tr>
							<tr>
								<td width="82" height="18">⑤ 技术论坛：</td>
								<td width="210" height="18"><font color="#ff6600"><img src="img/tu5.gif" width="<% =Convert.ToInt16(reader.GetValue(4))*150/total  %>" height="5" id="img5">
										<%=reader.GetValue(4).ToString()%>
										人 </font>
								</td>
							</tr>
							<% } %>
					</form></table>
				
    </td>
			</tr>
		</table>
		
	</BODY>
</HTML>
