<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Webdisk.Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Import Namespace="Webdisk" %>
<%@ Import Namespace="System.Data" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="themes/icon.css" />
    <link href="css/BaseStyle.css" rel="stylesheet" type="text/css" />
    <link href="Spry.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="js/jquery.easyui.min.js" type="text/javascript"></script>
     <script type="text/javascript" language="javascript" src="js/dialog.js"></script>
    <script type="text/javascript" language="javascript" src="js/ContentPane.js"></script>
    <script src="js/Common.js" type="text/javascript"></script>
</head>
<body onkeydown="if(event.keyCode==13) if(document.all.dialogCase!=null){document.all.dialogOk.click();};if(event.keyCode==27) if(document.all.dialogCase!=null){document.all.dialogclose.click();}">
    <div id="loading" style="border-right: #dbdce3 1px solid; border-top: #dbdce3 1px solid;
        display: none; border-left: #dbdce3 1px solid; border-bottom: #dbdce3 1px solid;
        position: absolute; background-color: #ffffae">
        <img src="pics/loading.gif" width="32" height="32" align="absMiddle">
        <b>正在处理，请稍候……</b>
    </div>
    <div id="mytips" style="border-right: gray 1px solid; border-top: gray 1px solid;
        display: none; font-size: 9pt; filter: progid: DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3);
        border-left: gray 1px solid; width: 150px; color: red; border-bottom: gray 1px solid;
        position: absolute; height: 16px; background-color: #ffffff">
    </div>
 <form id="Form1" name="Form1" runat="server">
  <table height="25" cellspacing="0" cellpadding="1" width="98%" border="0">
        <tr>
            <td width="97%" class="title_font">
                &nbsp;&nbsp;当前位置：
              
                <asp:TextBox ID="currentPathTxt" runat="server" Visible="False" Width="24px" Font-Size="9"
                    Font-Names="Verdana, Arial" CssClass="headerInputBox" BorderWidth="1px" BorderStyle="solid"></asp:TextBox>
            </td>
            <td width="3%" id="showsms" runat="server">
                <div align="right">
                    <ul id="MenuBar1" class="MenuBarHorizontal">
                        <li><a class="MenuBarItemSubmenu" href="user_sms.aspx?type=1">您有 <font color="#ff0000">
                            
                        </font>条新短消息</a>
                            <ul>
                                
                            </ul>
                        </li>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
<div class="easyui-panel" style="padding: 5px;">
        <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-folder'">
            目录操作</a> <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-add'">
                编辑</a> <a href="#" class="easyui-menubutton" data-options="menu:'#mm3',iconCls:'icon-print'">
                    压缩操作</a> <a href="#" class="easyui-menubutton" data-options="menu:'#mm4',iconCls:'icon-file'">
                        文件操作</a> <a href="#" class="easyui-menubutton" data-options="menu:'#mm5',iconCls:'icon-search'">
                            查看</a>
    </div>
    <div id="mm1" style="width: 100px;">
        <div data-options="iconCls:'icon-undo'">
            <asp:LinkButton ID="btnUp" ToolTip="向上一级" runat="server">向上</asp:LinkButton></div>
        <div>
            <asp:LinkButton ID="LinkButton1" runat="server">根目录</asp:LinkButton></div>
        <div>
            <a id="A1" href="#"  runat="server">新目录</a></div>
    </div>
    <div id="mm2" style="width: 100px;">
        <div data-options="iconCls:'icon-remove'">
            <a href="#" onclick="cutfile('1')">移动到</a></div>
        <div>
            <a onclick="cutfile('2');">复制到</a></div>
        <div data-options="iconCls:'icon-remove'">
            <asp:LinkButton ID="lbtDel" ToolTip="删除,启用回收站后按住shift点删除可以不通过回收站" runat="server"
                >删除</asp:LinkButton></div>
    </div>
    <div id="mm3" style="width: 100px;">
        <div>
            <a href="#" onclick="zipfile()">压缩</a></div>
        <div>
            <a href="#" onclick="unzipfile()">解压缩</a></div>
    </div>
    <div id="mm4" style="width: 100px;">
        <div>
            <asp:LinkButton ID="lbtUpFile" runat="server" ToolTip="上传文件" >上传文件</asp:LinkButton></div>
        <div>
            <asp:LinkButton ID="lbtPickFile" runat="server" ToolTip="根据提取码提取文件" >提取文件</asp:LinkButton></div>
        <div>
            <asp:LinkButton ID="lbtShare" runat="server" ToolTip="内部共享" >共享文件</asp:LinkButton></div>
        
    </div>
    <div id="mm5" style="width: 100px;">
        <div>
            <asp:LinkButton ID="lbtThumbnail" runat="server" ToolTip="以缩略图方式查看" >缩略图</asp:LinkButton></div>
        <div data-options="iconCls:'icon-search'">
            <asp:LinkButton ID="lbtSearch" runat="server" ToolTip="搜索" >高级搜索</asp:LinkButton></div>
        <div>
            <asp:LinkButton ID="lbtRefresh" runat="server" ToolTip="刷新本页" >刷新</asp:LinkButton></div>
    </div>
        <div align="center" id="divDataGrid" style="overflow: auto">
        <asp:DataGrid ID="DataGrid" runat="server" Width="100%" CssClass="GridBody" AutoGenerateColumns="False"
            EnableViewState="False" AllowSorting="True">
            <AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
            <ItemStyle CssClass="GridItem"></ItemStyle>
            <HeaderStyle CssClass="GridHead"></HeaderStyle>
            <Columns>
                <asp:TemplateColumn>
                    <HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <HeaderTemplate>
                        <input type="checkbox" name="chkSelect" id="chkSelect" onclick='checkAll();' />
                    </HeaderTemplate>
                    <ItemTemplate>
                       
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="类">
                    <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <HeaderTemplate>
                        
                    </HeaderTemplate>
                    <ItemTemplate>
                       
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="名称">
                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    <HeaderTemplate>
                       
                    </HeaderTemplate>
                    <ItemTemplate>
                       
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="大小">
                    <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Right"></ItemStyle>
                    <HeaderTemplate>
                        
                    </HeaderTemplate>
                    <ItemTemplate>
                     
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="更新时间">
                    <HeaderStyle HorizontalAlign="Center" Width="17%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <HeaderTemplate>
                       
                    </HeaderTemplate>
                    <ItemTemplate>
                      
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="rename" HeaderText="改">
                    <HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="note" HeaderText="注">
                    <HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="upload" HeaderText="传">
                    <HeaderStyle HorizontalAlign="Center" Width="3%"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
            </Columns>
            <PagerStyle Visible="False" HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF"
                Mode="NumericPages"></PagerStyle>
        </asp:DataGrid>
        <asp:Panel ID="Panel1" runat="server">
            <input id="chkSelect1" onclick="checkAll();" type="checkbox" name="chkSelect">选择所有
            排序：&nbsp;
            <select name="select" id="sort" runat="server" onchange="javascript:window.location='contentpane.aspx?type='+this.value+'&amp;page='+getUrlParam('page')+'&amp;path='+getUrlParam('path');">
                <option value="name asc" selected>名称升序</option>
                <option value="name desc">名称降序</option>
                <option value="update asc">时间升序</option>
                <option value="update desc">时间降序</option>
                <option value="size asc">大小升序</option>
                <option value="size desc">大小降序</option>
                <option value="pic asc">类型升序</option>
                <option value="pic desc">类型降序</option>
            </select>&nbsp;</asp:Panel>
        <asp:Panel ID="Panel3" runat="server" Visible="False">
            <table class="tableborder1" id="nospace" style="width: 98%; word-break: break-all"
                cellspacing="1" cellpadding="2" align="center">
                <tr>
                    <td class="tablebody1" valign="middle" align="center" width="100%" height="130">
                        没有任何文件
                    </td>
                </tr>
            </table>
        </asp:Panel>
        
    </div>
    <table width="98%" border="0">
        <tr>
            <td width="33%">
                &nbsp;
                <asp:Label ID="info" runat="server" Width="432" Height="18" EnableViewState="False"></asp:Label>
            </td>
            <td width="67%">
                <div align="right">
                    <%=v_page%></div>
            </td>
        </tr>
    </table>
    <div id="mm" class="easyui-menu" style="width:120px;">
		<div onclick="javascript:alert('new')">New</div>
		<div>
			<span>Open</span>
			<div style="width:150px;">
				<div><b>Word</b></div>
				<div>Excel</div>
				<div>PowerPoint</div>
				<div>
					<span>M1</span>
					<div style="width:120px;">
						<div>sub1</div>
						<div>sub2</div>
						<div>
							<span>Sub</span>
							<div style="width:80px;">
								<div onclick="javascript:alert('sub21')">sub21</div>
								<div>sub22</div>
								<div>sub23</div>
							</div>
						</div>
						<div>sub3</div>
					</div>
				</div>
				<div>
					<span>Window Demos</span>
					<div style="width:120px;">
						<div data-options="href:'window.html'">Window</div>
						<div data-options="href:'dialog.html'">Dialog</div>
						<div><a href="http://www.jeasyui.com" target="_blank">EasyUI</a></div>
					</div>
				</div>
			</div>
		</div>
		<div data-options="iconCls:'icon-save'">Save</div>
		<div data-options="iconCls:'icon-print',disabled:true">Print</div>
		<div class="menu-sep"></div>
		<div>Exit</div>
	</div>	
     <input id="HdnSelectedValues" type="hidden" size="1" name="HdnSelectedValues" runat="server" />
    <input id="pathurl" type="hidden" size="1" runat="server" />
    <input id="temp" type="hidden" size="1" runat="server" />
    <input id="txttmp" type="hidden" size="1" runat="server" />
    <input id="txttmp1" type="hidden" size="1" runat="server" />
    <input id="spanid" type="hidden" size="1" runat="server" />
    <input id="rowcount" type="hidden" size="1" />
    <input id="noteid" type="hidden" size="1" />
    <input id="copytype" type="hidden" size="20" />
    <input id="selpath" type="hidden" size="20" />
    <input type="hidden" id="isshift" value="false" size="20" runat="server" />
    <input class="btn" id="Submit1" type="button" value="选择目录及文件复制到上传码" name="submit1"
        runat="server" />
    </form>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $(document).bind('contextmenu', function (e) {
            e.preventDefault();
            $('#mm').menu('show', {
                left: e.pageX,
                top: e.pageY
            });
        });
    });

    if (document.getElementById("DataGrid") != null)
        document.getElementById("rowcount").value = document.getElementById("DataGrid").rows.length + 2;
    else document.getElementById("rowcount").value = 25;
</script>