<%@ Page language="c#" Codebehind="PollList.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.PollList" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<!--#include file="inc/head.inc"-->
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<div id="container">
		<div class="mframe" style="margin-top:10px;">
			<div class="tl"></div>
			<div class="tr"></div>
			<div class="tm">
			    <div class="on"><%=GetResourceString("All_Polls")%></div>
			</div>
			<div class="ml"></div>
			<div class="mr"></div>
			<div class="mm">
				<ASP:DataGrid id="dgList" runat="server" Width="95%" 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>
			</div>
			<div class="bl"></div>
			<div class="br"></div>
			<div class="bm"></div>
		</div>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
	</body>
</HTML>
