<%@Page Language="C#" Inherits="IWMS.Admin.LinkSortMan" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<script type="text/javascript">
	function confirmDelete(){
		return confirm("确定删除?");
	}
	</script>
</asp:Content>
<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"
				AllowPaging="true"
				AutoGenerateColumns="false"
				DataKeyField="id"
				OnEditCommand="MyDataGrid_Edit"
				OnDeleteCommand="MyDataGrid_Delete"
				OnCancelCommand="MyDataGrid_Cancel"
				OnUpdateCommand="MyDataGrid_Update"
				OnPageIndexChanged="MyDataGrid_Page"
				OnItemCreated="MyDataGrid_ItemCreated"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="6"
				CellSpacing="0" >
			<EditItemStyle CssClass="tdbg-dark" />
			<PagerStyle Mode="NumericPages" PageButtonCount="10" />
		
			<Columns>
				<asp:BoundColumn
					HeaderText="ID"
					DataField="id"
					ReadOnly="true" >
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="40"/>
				</asp:BoundColumn>
				<asp:EditCommandColumn
					ButtonType="LinkButton"
					EditText="修改"
					UpdateText="更改"
					CancelText="取消"
					>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="70"/>
				</asp:EditCommandColumn>
				<asp:BoundColumn
					HeaderText="分类名"
					DataField="name" />
				<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>