<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpFiles.aspx.cs" Inherits="TotCms.Web.Admin.Other.UpFiles" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<%@ Register src="../UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>
<!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 id="Head1" runat="server">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>下载管理</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    
</head>

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1"  class="black_border">
      <tr>
        <td class="topic">
                    上传文件列表 
          </td>
    </tr>
    </table>
      <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <asp:Repeater ID="RepeatList" runat="server" onitemcommand="RepeatList_ItemCommand">
        <HeaderTemplate>
          <tr>
            <td bgcolor="#F5F5F5">&nbsp;</td>
            <td width="36%" height="25" bgcolor="#F5F5F5"><div align="center">标题</div></td>
            <td width="12%" bgcolor="#F5F5F5"><div align="center">大小</div></td>
            <td width="22%" bgcolor="#F5F5F5"><div align="center">日期</div></td>
            <td width="25%" bgcolor="#F5F5F5"><div align="center">编辑</div></td>
          </tr>
            <tr>
            <td height="22" colspan="4" bgcolor="#FFFFFF">&nbsp;&nbsp;<a href="#" onclick="javascript:history.back();" title="back"><img src="../images/icon/back.gif" alt="BACK" width="15" height="15" border="0" /> 后退</a></td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
              <td height="22" bgcolor="#FFFFFF">
	              <div align="left">
                  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                  <ContentTemplate>
                  <asp:CheckBox ID="ChkId" runat="server" Checked="false" />
                  <asp:TextBox ID="ChkTxt" runat="server" CssClass="hidden" Text='<%# Eval("Name") %>'></asp:TextBox>	
                  </ContentTemplate>
                  <Triggers>
                  <asp:AsyncPostBackTrigger ControlID="BtnSelect" EventName="Click" /> 
                  </Triggers>
                  </asp:UpdatePanel>                                
	              </div>	
	          </td>
              <td bgcolor="#FFFFFF"><img src='../images/icon/<%# Convert.ToBoolean(Eval("IsFolder"))?"folder1.gif":"file.gif"%>' width="18" height="18" border="0" align="absmiddle" alt="" />
	              <a href="<%# GetLink(Eval("Name"),Eval("IsFolder")) %>"><%# Eval("Name") %></a>
              </td>
              <td bgcolor="#FFFFFF"><div align="center"><%# TotCms.FrameWork.Util.StringUtil.FormatFileSize(Convert.ToInt64(Eval("Size")))%></div></td>
              <td bgcolor="#FFFFFF"><div align="center"><%# Eval("LastUpdated") %></div></td>
              <td bgcolor="#FFFFFF" align="center">
              <asp:LinkButton ID="LinkButton2" OnLoad="Delete_Load" runat="server" CommandName="delete" CommandArgument='<%# Eval("Name") %>'>删除</asp:LinkButton>
              </td>
            </tr>
         </ItemTemplate>
         </asp:Repeater>
         <tr>
          <td colspan="6" align="center">
            <asp:Button ID="BtnSelect" runat="server" Text="反选" onclick="BtnSelect_Click" />
            <asp:DropDownList ID="BatRunType" runat="server" OnLoad="BatRunTypeLoad">
            <asp:ListItem Text="==选择操作选项==" Value="" ></asp:ListItem>                     
            <asp:ListItem Text="批量删除" Value="delete"></asp:ListItem>            
            </asp:DropDownList>            
            <asp:Button ID="BtnRun" runat="server" Text="执行操作" onclick="BtnRun_Click" OnClientClick="return confirm('确定执行吗?')" />
          </td>
         </tr>
      
    </table>
    </form>
    <script language="javascript" type="text/javascript">
        function SeleAct(obj) {
            if (obj == "remove") {
                document.getElementById("CategoryTitle").className = 'show';
                document.getElementById("Button1").className = 'show';
            }
            else {
                document.getElementById("CategoryTitle").className = 'hidden';
                document.getElementById("Button1").className = 'hidden';
            }
        }
     </script>

</body>
</html>
