<%@ Page Language="C#" MasterPageFile="../Admin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Public.Admin.FilesManage" Codebehind="FilesManage.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">

    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_MemberNotice','si_MemberNotice')"><div class="Title"><%=MyTitle %></div><div id="si_MemberNotice" class="SwitchIcon_Up"></div></div>
    <div class="Body" id="mc_MemberNotice">
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px"><strong>注意事项：</strong></div><div class="ContentItem_03b" style="width:649px">
        <ul class="NotesMessage">
        <li>在这里您可以管理所有会员上传的文件，在筛选中可以分别筛选出各个系统或者哪个会员上传的文件；</li>
        <li>如果能删除了某个文件，则将会连同删除文件本身与数据库中的相关记录，在删除前请确保没有任何文章等内容引用此文件，否则引用将失效；</li>
        </ul>
        </div></div>
        
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px"><strong>快捷操作：</strong></div><div class="ContentItem_03b" style="width:649px">
        清理文件(数据库与实际文件不匹配的所有文件)
        </div></div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
	
	<fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_DataSelect','si_DataSelect')"><div class="Title">上传文件筛选：</div><div id="si_DataSelect" class="SwitchIcon_Down"></div></div>
    <div class="Body" id="mc_DataSelect" style="display:none;">
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">系统类型：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlSysType" runat="server"></asp:DropDownList></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">所属系统ID：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbParentID" runat="server"></asp:TextBox></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">所属分类ID：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbCategoryID" runat="server"></asp:TextBox></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">会员ID：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbMemberID" runat="server"></asp:TextBox></div></div>
        
        <div class="ContentItem">        
        <asp:Button ID="btSelectData" runat="server" Text="筛选文件" OnClick="btSelectData_Click" CssClass="LinkButton" />
        </div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
	
	<table id="MemberList" class="MainContentTable" cellspacing="1">
	<tr class="HeadTR">
	    <td class="HeadTD" style="width:20px;">ID</td>
		<td class="HeadTD" style="width:400px;">文件名</td>
		<td class="HeadTD" style="width:80px;">文件大小</td>
		<td class="HeadTD" style="width:120px;">上传时间</td>
		<td class="HeadTD" style="width:80px;">上传会员</td>
		<td class="HeadTD" style="width:40px;">操作</td>
	</tr>
    <asp:Repeater ID="rpFilesList" runat="server" OnItemCreated="rpMemberList_ItemCreated">
    <ItemTemplate>
    <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
        <td class="ItemTD"><asp:Label ID="lbID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID")%>' /></td>
		<td class="ItemTD" style="text-align:left"><%# DataBinder.Eval(Container, "DataItem.FileName")%></td>
		<td class="ItemTD"><%# DataBinder.Eval(Container, "DataItem.FileSize")%></td>
		<td class="ItemTD"><%# DataBinder.Eval(Container, "DataItem.AddTime")%></td>
		<td class="ItemTD"><%# MyMember.DisplayName %></td>
		<td class="ItemTD"><asp:CheckBox ID="cbxSelect" runat="server" /></td>
	</tr>
    </ItemTemplate>
    </asp:Repeater>
    
    <tr class="ItemTR">
    <td class="ItemTD" colspan="5" style="text-align:left;">
    <div style="float:left;">
    <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged" AlwaysShow="True" UrlPaging="False" />
    </div>
    <div style="float:right;">
    <input id="CheckAll" type="button" value="反转选择项" class="LinkButton" onclick="checkAll(this.form); return false;" />
    <asp:Button ID="Button1" runat="server" OnClick="btDelete_Click" Text="删除所选文件" CssClass="LinkButton" />
    </div>
    </td>
    </tr>
    
    </table>
    
</asp:Content>