<%@Page Language="C#" Inherits="IWMS.Admin.PollMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form id="myForm" runat="server">
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">管理调查</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnDeleteCommand="MyDataGrid_Delete"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="6"
				CellSpacing="0" >
			<EditItemStyle CssClass="tdbg-dark" />
			
			<Columns>
				<asp:TemplateColumn
					>
					<ItemTemplate>
						<a href="admin_pollAdd.aspx?id=<%#Eval("id")%>">修改</a>
					</ItemTemplate>
					<ItemStyle Width="40" HorizontalAlign="center" />
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="内容"
					DataField="title"
					>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="多选">
					<ItemTemplate>
						<%#(bool)Eval("multiple") ? "<strong>Yes</strong>" : "No"%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="首页">
					<ItemTemplate>
						<%#(bool)Eval("inindex") ? "<strong>Yes</strong>" : "No"%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:ButtonColumn
					ButtonType="LinkButton"
					CommandName="Delete"
					Text="删除" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:ButtonColumn>
					
			</Columns>
		</ASP:DataGrid>	
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	</form>

</asp:Content>