<%@Page Language="C#" Inherits="IWMS.Admin.KeyMan" 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" runat="server"/>
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AutoGenerateColumns="false"
				AllowPaging = "True"
				PageSize = "20"
				DataKeyField="id"
				OnDeleteCommand="MyDataGrid_Delete"
				OnItemDataBound="MyDataGrid_ItemBound"
				OnPageIndexChanged = "MyDataGrid_Page"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="6"
				CellSpacing="0"
				>
			<EditItemStyle CssClass="tdbg-dark" />
			<PagerStyle Height="20" />
			
			<Columns>
				<asp:TemplateColumn
					>
					<ItemTemplate>
						<a href="admin_keyAdd.aspx?id=<%#Eval("id")%>">修改</a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="关键字"
					DataField = "name"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:BoundColumn>
				<asp:HyperLinkColumn
					HeaderText="链接"
					DataNavigateUrlField="url"
					DataTextField = "url"
					Target="_blank"
					>
					<HeaderStyle Width="250"/>
				</asp:HyperLinkColumn>
				<asp:BoundColumn
					HeaderText="说明"
					DataField="alt"
					ReadOnly="true" >
					<ItemStyle />
				</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>