<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="PollList.aspx.cs" Inherits="web.PollList" %>
<link rel="stylesheet" href="images/skin_big/style.css" type="text/css"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<!--#include file="inc/head.inc"-->
	</HEAD>
	<body >
		<div  class="mframe">
			<table width="460" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<table width="460" cellspacing="0" cellpadding="0">
							<tr>
								<td class="tl" width="113"><div class="tt"><%=GetResourceString("All_Polls")%></div></td>
								<td class="tm">&nbsp;</td>
								<td class="tr" width="5"></td>
							</tr>
						</table>
						<table width="100%" cellspacing="0" cellpadding="0">
							<tr>
								<td class="ml"></td>
								<td class="mm">
									<ASP:DataGrid id="dgList" runat="server" Width="100%" PageSize="15" ShowHeader="false" ShowFooter="false"
										CellPadding="4" AutoGenerateColumns="false" DataKeyField="PollID" AllowPaging="true" HeaderStyle-CssClass="summary-title"
										CellSpacing="0" AllowCustomPaging="True">
										<HeaderStyle CssClass="summary-title"></HeaderStyle>
										<Columns>
											<asp:TemplateColumn>
												<ItemTemplate>
													<%#DataBinder.Eval(Container.DataItem,"title")%>
													(<a href='pollView.aspx?type=view&amp;PollID=<%#DataBinder.Eval(Container.DataItem,"PollID")%>'>查看</a>
													-
													<%# GetVote(DataBinder.Eval(Container.DataItem,"Vote").ToString())%>
													票)
												</ItemTemplate>
											</asp:TemplateColumn>
										</Columns>
										<PagerStyle NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
									</ASP:DataGrid>
								</td>
								<td class="mr"></td>
							</tr>
						</table>
						<table width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
					</td>
				</tr>
			</table>
		</div>
		
	</body>
</HTML>
