<%@Page Language="C#" Inherits="IWMS.Admin.LinkCheck" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<%BtDelete.Attributes["onclick"] = "return confirm_batch_delete()";%>
</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"
				OnPageIndexChanged="MyDataGrid_Page"
				CssClass="grid"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				CellPadding="6"
				CellSpacing="0" >
			
			<Columns>
				<asp:TemplateColumn
					HeaderText="<input type=&quot;checkbox&quot; onclick=&quot;checkFormAll(this)&quot;/>"
					>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="20"/>
				</asp:TemplateColumn>
				<asp:HyperLinkColumn
					HeaderText="网站名"
					DataNavigateUrlField="url"
					DataTextField="name"
					Target="_blank"
					>
					<ItemStyle HorizontalAlign="center"/>
					<HeaderStyle Width="120"/>
				</asp:HyperLinkColumn>
				<asp:TemplateColumn
					HeaderText="Logo"
					>
					<ItemTemplate>
						<%#Eval("logo")==DBNull.Value ? "" : "<img src=\""+Eval("logo")+"\" width=\""+ config.LinkLogoWidth +"\" height=\""+ config.LinkLogoHeight +"\"/>"%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="分类"
					>
					<ItemTemplate>
						<%#Eval("sortName")==DBNull.Value ? "其它" : Eval("sortName")%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="100"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="简介"
					DataField="remark">
				</asp:BoundColumn>
			</Columns>
		</ASP:DataGrid>
		
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	
	
	<table width="90%" align="center"><tr><td align="right">
	<asp:Label id="PageList" runat="server"/>
	</td></tr>
	<tr><td>
		<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" Text="删除" runat="server"/> &nbsp;
		<asp:Button id="BtPass" OnClick="BtPass_OnClick" Text="审核通过" runat="server"/>
	</td></tr>
	</table>
	
	</form>

</asp:Content>