<%@Page Language="C#" Inherits="IWMS.Admin.AdvMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<%BtDelete.Attributes["onclick"] = "return confirm_batch_delete()";%>
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" 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"/>
		<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AllowPaging="true"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnPageIndexChanged="MyDataGrid_Page"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				PageSize="10"
				CellPadding="6"
				CellSpacing="0" >
			
			<Columns>
				<asp:TemplateColumn
					>
					<ItemTemplate>
						<a href="admin_advAdd.aspx?id=<%#Eval("id")%>">修改</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center"/>
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="20"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="广告名"
					DataField="name">
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="显示次数"
					DataField="hits">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="60"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="权重"
					DataField="weight">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="50"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="广告组"
					DataField="gname">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="200"/>
				</asp:BoundColumn>
			</Columns>
		</ASP:DataGrid>
		
		<table><tr><td>
			<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" Text="删除" runat="server"/>
		</td></tr>
		</table>
		
		</form>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</asp:Content>