<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Kesion.NET.WebSite.Admin_CloudStorageSelect" Title="Untitled Page" Codebehind="KS.CloudStorageSelect.aspx.cs" %>

<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Newtonsoft.Json" %>
<%@ Import Namespace="Newtonsoft.Json.Linq" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" runat="Server">
   <asp:Panel ID="AliyunPanel" runat="server" Width="100%" Visible="false">
        <script>     
            $(function () {
                //全选反选
                $("#selectAll").click(function () {
                    if ($(this).is(":checked")) {
                        $(".courseList").find("input[type=checkbox]").attr("checked", true);
                    }
                    else {
                        $(".courseList").find("input[type=checkbox]").attr("checked", false);
                    };
                });
            });

        </script>
        <div class="content-area mt20">
            <asp:Panel ID="Panel1" runat="server" Width="100%">
                <div class="courseList">
                    <asp:Repeater ID="ChatlistRepeater" runat="server" OnItemCommand="ChatlistRepeater_ItemCommand">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable">
                                <tr class="CTitle">
                                    <td></td>
                                    <td>序号</td>
                                    <td>文件名称</td>
                                    <td>文件大小</td>
                                    <td style="width: 150px">操作</td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr onmouseover="this.className=&#39;CtrMouseOver&#39;" onmouseout="this.className=&#39;CtrMouseOut&#39;" onclick="chk(this)">
                                <td class="courseList" style="text-align: center">
                                    <div class="input">
                                        <input type="checkbox" name="ids" id="ids" value="<%#Eval("objectName") %>" />
                                    </div>
                                </td>                          
                                <td class="Ctd" style="text-align: left"><%#Eval("ID") %></td>
                                <td class="Ctd" style="text-align: center"><%#Eval("objectName") %></td>
                                <td class="Ctd" style="text-align: center"><%#Eval("objectType") %></td>
                                <td class="Ctd" style="text-align: center">                                 
                                    <asp:LinkButton ID="deleteBtn" runat="server" OnClientClick="return(confirm('确定删除选定的文件？'));" CommandArgument='<%#Eval("objectName")%>' CommandName="del">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <tr style="display: <%# bool.Parse((ChatlistRepeater.Items.Count==0).ToString())?"":"none"%>">
                                <td align="center" colspan="10">
                                    <div class="empty">
                                        没有查询到记录
                                    </div>
                                </td>
                            </tr>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
                <div class="listedit">

                    <div class="floatLeft allCheck">
                        <label>
                            <input name="" type="checkbox" value="" id="selectAll" />全选</label>
                          
                    </div>

                    <ul class="fl">     
                            <asp:Label ID="LabPage1" runat="server"></asp:Label>
                            <asp:Button ID="Button1"  class="button" runat="server" Text="上一页"  Width="60px" OnClick="Button1_Click" />
                            <asp:Button ID="Button2"  class="button" runat="server" Text="下一页" Width="60px" OnClick="Button2_Click" />
                    </ul>
                </div>
                <div class="h20"></div>

           
              
                 <asp:Label ID="LabPage" runat="server"></asp:Label>
            </asp:Panel>
        </div>
    </asp:Panel>

     <asp:Panel ID="TxunyunPanel" runat="server" Width="100%" Visible="false">
        <script>     
            $(function () {
                //全选反选
                $("#selectAll1").click(function () {
                    if ($(this).is(":checked")) {
                        $(".courseList").find("input[type=checkbox]").attr("checked", true);
                    }
                    else {
                        $(".courseList").find("input[type=checkbox]").attr("checked", false);
                    };
                });
            });

        </script>
        <div class="content-area mt20">
            <asp:Panel ID="Panel3" runat="server" Width="100%">
                <div class="courseList">
                    <asp:Repeater ID="TxunyunRepeater" runat="server" OnItemCommand="TxunyunRepeater_ItemCommand">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="CTable">
                                <tr class="CTitle">
                                    <td></td>
                                    <td>序号</td>
                                    <td>文件名称</td>
                                    <td>文件大小</td>
                                    <td style="width: 150px">操作</td>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr onmouseover="this.className=&#39;CtrMouseOver&#39;" onmouseout="this.className=&#39;CtrMouseOut&#39;" onclick="chk(this)">
                                <td class="courseList" style="text-align: center">
                                    <div class="input">
                                        <input type="checkbox" name="ids" id="ids" value="<%#Eval("objectName") %>" />
                                    </div>
                                </td>                          
                                <td class="Ctd" style="text-align: left"><%#Eval("ID") %></td>
                                <td class="Ctd" style="text-align: center"><%#Eval("objectName") %></td>
                                <td class="Ctd" style="text-align: center"><%#Eval("objectType") %></td>
                                <td class="Ctd" style="text-align: center">                                 
                                    <asp:LinkButton ID="deleteBtn" runat="server" OnClientClick="return(confirm('确定删除选定的文件？'));" CommandArgument='<%#Eval("objectName")%>' CommandName="del">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <tr style="display: <%# bool.Parse((TxunyunRepeater.Items.Count==0).ToString())?"":"none"%>">
                                <td align="center" colspan="10">
                                    <div class="empty">
                                        没有查询到记录
                                    </div>
                                </td>
                            </tr>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
                <div class="listedit">

                    <div class="floatLeft allCheck">
                        <label>
                            <input name="" type="checkbox" value="" id="selectAll1" />全选</label>
                    </div>

                    <ul class="fl">                  
                    </ul>
                </div>
                <div class="h20"></div>
                <asp:Label ID="TxunyunLabel" runat="server"></asp:Label>
            </asp:Panel>
        </div>
    </asp:Panel>
</asp:Content>

