<%@Page Language="C#" Inherits="IWMS.Admin.AdvGroupMan" 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="gid"
				OnDeleteCommand="MyDataGrid_Delete"
				CssClass="grid"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="6"
				CellSpacing="0" >
			<HeaderStyle HorizontalAlign="center" Height="25" />
			<EditItemStyle CssClass="tdbg-dark" />
			<ItemStyle Height="23"/>
			
			<Columns>
				<asp:BoundColumn
					HeaderText="ID"
					DataField="gid"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="30"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					>
					<ItemTemplate>
						<a href="admin_advgroupAdd.aspx?id=<%#Eval("gid")%>">修改</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="广告组名">
					<ItemTemplate>
						<%#Eval("gname")%>
					</ItemTemplate>
					<ItemStyle />
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="宽度"
					DataField="width"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:BoundColumn>
				<asp:BoundColumn
					HeaderText="高度"
					DataField="height"
					ReadOnly="true">
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:BoundColumn>
				<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>