<%@ page language="C#" autoeventwireup="true" inherits="admin_system_lmanage, s1.chapk.com" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>友情链接编辑</title>
    <link rel="stylesheet" href="../css/table.css" type="text/css" media="all" />
    <script src="../../tool/select.js" type="text/javascript"></script>     
</head>
<body>
    <form id="form1" runat="server">
    <div class="my_alt">
         友情链接管理
    </div>    
<asp:datagrid id="data1" runat="server" AutoGenerateColumns="False" BorderColor="#CCCCCC" BorderWidth="1px" Width="100%" CellPadding="3" OnItemDataBound="data1_ItemDataBound">
<Columns>
							<asp:BoundColumn Visible="False" DataField="Id" ReadOnly="True">
								<HeaderStyle Width="0px"></HeaderStyle>
							</asp:BoundColumn>
							<asp:TemplateColumn HeaderText="选择">
								<HeaderStyle Width="30px"></HeaderStyle>
								<HeaderTemplate>
								<asp:CheckBox id="chkHeader" runat="server" Text="" AutoPostBack="False" onclick="javascript:SelectAll(this);"></asp:CheckBox>
								</HeaderTemplate>
								<ItemTemplate>
									<asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
								</ItemTemplate>
                                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                    Font-Underline="False" HorizontalAlign="Center" />
							</asp:TemplateColumn>
                            <asp:BoundColumn DataField="s_lb" HeaderText="链接类型">
                                <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                    Font-Underline="False" HorizontalAlign="Left" />
                                <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                    Font-Underline="False" Width="100px" />
                            </asp:BoundColumn>
    <asp:BoundColumn DataField="s_mc" HeaderText="网站名称"></asp:BoundColumn>
                            <asp:BoundColumn DataField="s_name" HeaderText="站长"></asp:BoundColumn>
                            <asp:BoundColumn DataField="addtime" HeaderText="加入时间">
                                <HeaderStyle Width="160px" />
                            </asp:BoundColumn>
                            <asp:HyperLinkColumn DataTextField="state" DataTextFormatString="&lt;img src='../images/option{0}.gif'&gt;"
                                HeaderText="状态">
                                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                    Font-Underline="False" HorizontalAlign="Center" />
                                <HeaderStyle Width="40px" />
                            </asp:HyperLinkColumn>
                            <asp:HyperLinkColumn DataNavigateUrlField="Id" Text="&lt;img src='../Images/edit.gif' border='0'&gt;" DataNavigateUrlFormatString="LEdit.aspx?Id={0}">
                                <HeaderStyle Width="40px" />
                            </asp:HyperLinkColumn>
						</Columns>
            <HeaderStyle BackColor="#EEEFF1" Font-Bold="True" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
        Font-Underline="False" HorizontalAlign="Center" />
</asp:datagrid>
<table id="nodata1" runat="server">
<tr>
<td>暂无记录</td>
</tr>
</table>
<table width="100%">
<tr>
<td>
    <webdiyer:AspNetPager ID="Pager1" runat="server" CustomInfoHTML="共%RecordCount%条记录 页次%CurrentPageIndex%/%PageCount% 每页%PageSize%条"
            CustomInfoStyle="" FirstPageText="[首页]" LastPageText="[末页]" NextPageText="[下一页]"
            OnPageChanging="Pager1_PageChanging" PrevPageText="[上一页]" ShowCustomInfoSection="Left" AlwaysShow="True" PageSize="13">
    </webdiyer:AspNetPager>
</td>
<td>
    &nbsp;<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="审核" />
    <asp:Button ID="Button1" runat="server" Text="删除" OnClick="Button1_Click" /></td>
</tr>
</table>
    </form>
</body>
</html>
