<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_SubSite_SiteList, QianboCMS" EnableEventValidation="false" %>
<%@ 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 href="../Css/layout.css" rel="Stylesheet" type="text/css" />
</head>

<body>
    <form id="form1" runat="server">
        <table align="center" cellpadding="0" cellspacing="1" class="wzdh">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; 分站列表
				</td>
            </tr>
        </table>
        <table align="center" cellpadding="0" cellspacing="1" class="border">
            <tr>
                <td class="wzlist"><a href="SetSub.aspx">新增分站</a></td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr class="title">
                <td width="60px">编号</td>
                <td>站点名</td>
                <td width="90px">状态</td>
                <td width="210px">管理员</td>
                <td width="120px">创建时间</td>
                <td width="120px">开通时间</td>
                <td width="120px">常规操作</td>
            </tr>
            <asp:Repeater ID="rptSite" runat="server" OnItemCommand="rptSite_ItemCommand">
                <ItemTemplate>
                    <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
                        <td><%#Eval("Id") %></td>
                        <td><%#Eval("Name") %>（<%#Eval("EnName") %>）</td>
                        <td><%#Eval("Status").ToString() == "1"?"<span style='color: green;'>已开通</span>":"<span style='color: red;'>未开通</span>" %></td>
                        <td><%#GetAdmin(Eval("Id")) %></td>
                        <td><%#Eval("AddTime") %></td>
                        <td><%#Eval("OpenTime") %></td>
                        <td><a href='UpdateSub.aspx?Id=<%#Eval("Id") %>'>修改</a> | <a href='DelSubSite.aspx?SiteId=<%#Eval("Id")%>'>删除</a> | <asp:LinkButton ID="lnkbtnSet" runat="server" Enabled='<%#GetAdmin(Eval("Id")) != string.Empty%>' CommandName="Set" CommandArgument='<%#Eval("Id") %>'><%#Eval("Status").ToString()=="1"?"关闭":"开通" %>分站</asp:LinkButton></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <table cellpadding="0" cellspacing="1" class="border" align="center">
            <tr>
                <td class="wzlist">
                    <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页" OnPageChanging="Pager_PageChanging" PageSize="20" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowInputBox="Never" ShowNavigationToolTip="True" Width="99%" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager>
				</td>
            </tr>
        </table>
    </form>
</body>
</html>