<%@ page language="C#" autoeventwireup="true" inherits="Course_SelectServerFile, App_Web_vzflj4p3" theme="Themes" stylesheettheme="Themes" %>

<!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>
        <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
</head>
<body>
    <form id="form1" runat="server">
      
<div id="divSearch" runat="server" class="box">

             <table width="100%">
                 <tr>
                     <td align="right" class="style2" >
                         标题:</td>
                     <td class="style1">
                         <asp:TextBox ID="txtTitle" runat="server" MaxLength="25" Width="128px"></asp:TextBox>
                     </td>
                     <td align="left">
             <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" />
                     &nbsp;<asp:Button ID="btnRoot" runat="server" Text="回到根目录" 
                             onclick="btnRoot_Click" />
                     </td>
                 </tr>
                 </table>
      
</div>
    <div runat="server" id="divNote" class="box">
    <div style="padding: 6px">
    当前目录：
     
        <asp:Label ID="lblCurrentPath" runat="server" Font-Bold="True"></asp:Label>
    </div>
    <div>
    
     
        <table class="style3">
            <tr>
                <td>
                   <asp:Image ID="Image1" ImageUrl="../images/67.gif" runat="server" />
        <asp:Button ID="btnReturn" runat="server" Text="上一级" 
            onclick="btnReturn_Click" />
                &nbsp;<asp:Button ID="btnSetToCourse" runat="server" onclick="btnSetToCourse_Click" 
                        Text="批量下载" Visible="False" />
                &nbsp;<asp:Button ID="btnDownLoad" runat="server" onclick="btnDownLoad_Click" 
                        Text="批量下载" Visible="False" />
                </td>
                <td>
                        
        <asp:Button ID="btnRefresh" runat="server" Text="刷新" 
            onclick="btnRefresh_Click" Visible="False" />
    
        <asp:Button ID="btnUpload" runat="server" Text="上传文件" 
            onclick="btnUpload_Click" Visible="False" />
    
        <asp:Button ID="btnAddFolder" runat="server" Text="新建文件夹" 
            onclick="btnAddFolder_Click" Visible="False" />
    
        <asp:Button ID="btnDel" runat="server" Text="删除" 
            onclick="btnDel_Click" Visible="False" />
       </td>
            </tr>
        </table>

        
    
    </div>
<asp:GridView ID="gvContentInfo" runat="server" 
        AutoGenerateColumns="False" 
        onrowcommand="gvContentInfo_RowCommand" 
        OnRowDataBound="gvContentInfo_RowDataBound">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField Visible="False">
                    <HeaderTemplate>
                 全选<input id="chkSelAll" name="chkSelAll" onclick="javascript:CheckAll();" type="checkbox">
                    </HeaderTemplate>
                    <HeaderStyle Width="50px" />
                    <ItemTemplate>
                        <asp:CheckBox ID="chkSel" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Image ID="imgType" runat="server" />
                     
                    </ItemTemplate>
                </asp:TemplateField>
                 <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <asp:Label ID="lblFullName" Visible="false" runat="server" Text='<%#  GetPath(Eval("fullname").ToString()) %>'></asp:Label>
                        <asp:LinkButton ID="LinkButton1" CommandName="select" CommandArgument='<%#  GetPath(Eval("fullname").ToString()) %>' runat="server"><%#  Common.CutString(Eval("name").ToString(), 35) %></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="文件大小(字节)">
                   
                    <ItemTemplate>
                        <asp:Label ID="lblLength" runat="server" Text='<%# Bind("length") %>'></asp:Label>
                        <asp:Label ID="lblHideLength" runat="server" Text='<%# Bind("length") %>' Visible="false"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="lastwritetime" DataFormatString="{0:d}" HeaderText="创建时间" />
                <asp:TemplateField>
                    <ItemTemplate>
                         <asp:LinkButton ID="lbtnReName" Visible=false CommandName="rename" CommandArgument='<%#  GetPath(Eval("fullname").ToString()) %>' runat="server">文件夹重命名</asp:LinkButton>
                        <asp:LinkButton ID="lbtnLinktocourse" CommandName="linktocourse" CommandArgument='<%#  GetPath(Eval("fullname").ToString()) %>' runat="server">设置为课件</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
</div>
    </form>
</body>
</html>
