<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Down_DownLoadServerList, QianboCMS" EnableEventValidation="false" %>
<!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" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../Js/Common.js"></script>
<script type="text/javascript" src="../../Js/XmlHttp.js"></script>
</head>

<body>
<form id="form1" runat="server">
  <asp:Literal ID="litMsg" runat="server"></asp:Literal>
  <table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
    <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 cellpadding="0" cellspacing="1" class="border" align="center">
    <tr class="wzlist">
      <td>镜像服务器列表管理 | <a href="SetDownLoadServer.aspx">新增镜像服务器</a></td>
    </tr>
  </table>
  <table cellpadding="0" cellspacing="1" class="border" align="center">
    <asp:Repeater ID="repServerType" runat="server" OnItemCommand="repServerType_ItemCommand" OnItemDataBound="repServerType_ItemDataBound">
      <HeaderTemplate>
        <tr class="title">
          <td>服务器名称</td>
          <td>服务器地址</td>
          <td width="60px">日下载</td>
          <td width="90px">总下载</td>
          <td width="60px">是否开启</td>
          <td width="90px">添加时间</td>
          <td width="240px">常规操作</td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
          <asp:Label runat="server" ID="lbID" Text='<%#Eval("TypeId")%>' Font-Bold="true" Visible="false"></asp:Label>
          <td align="left"><span style="color: red;">-</span> <strong><%#Eval("TypeName")%></strong></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td align="right"><a href="SetDownLoadServer.aspx?TypeId=<%#Eval("TypeId") %>&Type=AddType">添加下载服务器路径</a> | <a href="SetDownLoadServer.aspx?TypeId=<%#Eval("TypeId") %>&Type=EditType">服务器设置</a> | <asp:LinkButton runat="server" ID="btnDeleteType" CommandName="deleteType" OnClientClick='return confirm("是否确定删除所选类别？")'>删除</asp:LinkButton></td>
        </tr>
        <asp:Repeater runat="server" ID="repServerName" OnItemCommand="repServerName_ItemCommand">
          <ItemTemplate>
            <tr class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
              <asp:Label runat="server" ID="lbDownServerId" Text='<%#Eval("DownLoadServerDataId")%>' Visible="false"></asp:Label>
              <td align="left">.├┈ <%#Eval("DownLoadServerName")%></td>
              <td align="left"><%#Eval("DownLoadServerDir")%></td>
              <td><%#Eval("DayDownNum")%></td>
              <td><%#Eval("AllDownNum")%></td>
              <td><%#GetIsOpened(Eval("IsOpened"))%></td>
              <td><%#Eval("AddTime","{0:yyyy-MM-dd}")%></td>
              <td align="right"><asp:LinkButton ID="btnIsOpened" runat="server" Text='<%# GetBtnText(Eval("IsOpened")) %>' CommandName="state" /> | <a href="SetDownLoadServer.aspx?TypeId=<%#Eval("TypeId") %>&ServerId=<%# Eval("DownLoadServerDataId")%>&Type=EditName">服务器设置</a> | <asp:LinkButton runat="server" ID="btnDeleteData" CommandName="deleteData" OnClientClick="return confirm('是否确定删除此服务器？')">删除</asp:LinkButton></td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
      </ItemTemplate>
    </asp:Repeater>
  </table>
</form>
</body>
</html>