<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="links.aspx.cs" Inherits="xxhome.admin.system.links" %>

<%@ Register src="../fenye.ascx" tagname="fenye" tagprefix="uc2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>友情链接</title>
		<link href="../css/table.css" rel="stylesheet" type="text/css" />
		<script language="JavaScript" src="../js/common.js" type="text/javascript"></script>
		
	    </HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">	
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr align="right">
                <td  width="95%"><asp:CheckBox ID="CheckBox2" runat="server" 
            AutoPostBack="True" oncheckedchanged="CheckBox2_CheckedChanged" Text="全选" />
        </span>
        <img height="14" src="../images/001.gif" width="14" />
        <asp:LinkButton ID="lbadd" runat="server" PostBackUrl="linksadd.aspx" Text="新增">新增</asp:LinkButton>
        <img height="14" src="../images/010.gif" width="14" />
        <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" 
            OnClientClick="return confirm('确定删除吗？无法恢复！')">删除</asp:LinkButton>
        &nbsp;&nbsp;&nbsp;
                    &nbsp;</td>
            </tr>
        </table>
        <span class="center_title_1">&nbsp;
		<br>
					 <asp:GridView ID="gdv" runat="server" AllowPaging="True" AllowSorting="True" 
                AutoGenerateColumns="False" CssClass="sys_grid" EmptyDataText="没有或没有符合条件的链接信息！" 
                OnRowDeleting="gdv_RowDeleting" OnSorting="gdv_Sorting" Width="100%">
                <HeaderStyle CssClass="sys_grid_head_cell" />
                <Columns>
                    <asp:TemplateField HeaderText="全选" HeaderStyle-Width="40px">
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="id"  HeaderStyle-Width="50px"/>
                    <asp:BoundField DataField="bianhao" HeaderText="编号" SortExpression="bianhao"  HeaderStyle-Width="50px"/>
                    <asp:BoundField DataField="title" HeaderText="网站名称" SortExpression="title" />
                    <asp:BoundField DataField="url" HeaderText="链接地址" SortExpression="url" />                    
                    <asp:TemplateField HeaderText="编辑"  HeaderStyle-Width="40px">
                        <ItemTemplate>
                            <a href="linksadd.aspx?id=<%#Eval("id") %>">编辑</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除链接吗？无法恢复！')&quot;&gt;删除&lt;/div&gt; " 
                        HeaderText="删除" ShowCancelButton="False" ShowDeleteButton="True"   HeaderStyle-Width="40px"/>
                </Columns>
                <PagerSettings Visible="False" />
                <RowStyle Height="25px" HorizontalAlign="Center" />
            </asp:GridView>
                    </TD>
				</TR>
				<TR>
					<TD vAlign="top">
                        <uc2:fenye ID="fenye1" runat="server" />
                    </TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

