<%@ Import namespace="System.Data"%>
<%@ Page language="c#" Codebehind="ContentPane.aspx.cs" AutoEventWireup="True" Inherits="Webdisk.ContentPane" enableViewState="True"%>
<HTML>
	<HEAD>
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
			<style type="text/css">.STYLE2 { FONT-SIZE: 12px }
	#popitmenu { BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; Z-INDEX: 100; VISIBILITY: hidden; FONT: 12px/18px Verdana; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; BACKGROUND-COLOR: white }
	#popitmenu A { DISPLAY: block; PADDING-LEFT: 6px; COLOR: black; TEXT-DECORATION: none }
	#popitmenu A:hover { BACKGROUND-COLOR: #ccff9d }
	</style>
			<script type="text/javascript" language="javascript" src="js/dialog.js"></script>
			<script type="text/javascript" language="javascript" src="js/ContentPane.js"></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="29" cellSpacing="0" cellPadding="1" width="98%" border="0">
				<TR>
					<TD width="97%">&nbsp;&nbsp;当前位置：
						<%=Postion%>
						<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%">
						<DIV align="right"><A href="user_sms.aspx?type=1"><IMG id="IMG2" height="16" src="pics/mail.gif" width="26" border="0" runat="server"></A></DIV>
					</TD>
				</TR>
			</TABLE>
			<TABLE height="56" width="98%" align="center" border="0">
				<TR>
					<TD width="6.25%">
						<DIV align="center" onClick="document.all.UpBtn.click();" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)"><asp:imagebutton id="UpBtn" runat="server" ToolTip="向上一级" ImageUrl="pics/up.gif" tabIndex="-1" EnableViewState="False" onclick="UpBtn_Click"></asp:imagebutton><br>
							向上</DIV>
					</TD>
					<TD width="6.25%">
						<DIV align="center" onClick="document.all.GoRoot.click();" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)"><asp:imagebutton id="GoRoot" runat="server" ToolTip="根目录" ImageUrl="pics/home.gif" tabIndex="-1"
								EnableViewState="False" onclick="GoRoot_Click"></asp:imagebutton><br>
							根目录</DIV>
					</TD>
					<TD width="6.25%">
						<DIV align="center" onClick="document.all.RefreshBtn.click();" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)"><asp:imagebutton id="RefreshBtn" runat="server" ToolTip="刷新本页" ImageUrl="pics/fs_refresh.gif" tabIndex="-1"
								EnableViewState="False" onclick="Refresh_Click"></asp:imagebutton><br>
							刷新</DIV>
					</TD>
					<TD id="tdnewfolder" width="6.25%">
						<DIV align="center" onClick="newdirbox();" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><img src="pics/new_folder.gif" alt="新文件夹" border="0"><br>
							新目录</DIV>
					</TD>
					<TD id="tddel" width="6.25%">
						<DIV align="center" onClick="document.all.del.click();" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><asp:imagebutton id="del" runat="server" ToolTip="删除" ImageUrl="pics/delete_big.gif" onclick="del_Click"></asp:imagebutton><br>
							删除</DIV>
					</TD>
					<TD id="tdcut" width="6.25%">
						<DIV align="center" onClick="cutfile('1');" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><img src="pics/moveto.gif" alt="移动到" border="0"><br>
							移动到</DIV>
					</TD>
					<TD id="tdcopy" width="6.25%">
						<DIV align="center" onClick="cutfile('2');" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><img src="pics/copyto.gif" alt="复制到" border="0"><br>
							复制到</DIV>
					</TD>
					<TD id="tddown" width="6.25%" runat="server">
						<DIV align="center" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)" onClick="downfile();"><img src="pics/download.gif" alt="批量下载" border="0"><br>
							下载</DIV>
					</TD>
					<TD id="tdzip" width="6.25%" runat="server">
						<DIV align="center" onClick="zipfile();" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><img src="pics/zip.gif" alt="压缩成ZIP文件" border="0"><br>
							压缩</DIV>
					</TD>
					<TD id="tdunzip" width="6.25%" runat="server">
						<DIV align="center" onClick="unzipfile();" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><img src="pics/decompress.gif" alt="解压缩ZIP文件" border="0"><br>
							解压缩</DIV>
					</TD>
					<TD width="6.25%">
						<DIV align="center" onClick="document.all.search.click();" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)"><asp:imagebutton id="search" runat="server" ToolTip="搜索" ImageUrl="pics/ab_search.gif" EnableViewState="False" onclick="search_Click"></asp:imagebutton><br>
							搜索</DIV>
					</TD>
					<TD id="s" width="6.25%">
						<DIV align="center" onClick="document.all.pic.click();" onMouseMove="btnover(this)" onMouseOut="btnout(this)"><asp:imagebutton id="pic" runat="server" ToolTip="缩略图" ImageUrl="pics/spic.gif" EnableViewState="False" onclick="pic_Click"></asp:imagebutton><br>
							<asp:label id="sltxt" runat="server" Text="缩略图"></asp:label></DIV>
					</TD>
					<TD id="tdupload" width="6.25%">
						<DIV align="center" onClick="document.all.upload.click();" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)"><asp:imagebutton id="upload" runat="server" ToolTip="上传文件" ImageUrl="pics/upload.gif" EnableViewState="False" onclick="upload_Click"></asp:imagebutton><br>
							上传</DIV>
					</TD>
					<TD id="tdshare" width="6.25%" runat="server">
						<DIV align="center" onClick="document.all.share.click();" onMouseMove="btnover(this)"
							onMouseOut="btnout(this)"><asp:imagebutton id="share" runat="server" ToolTip="共享" ImageUrl="pics/sharing.gif" EnableViewState="False" onclick="share_Click"></asp:imagebutton><br>
							共享</DIV>
					</TD>
				</TR>
			</TABLE>
			<div align="center"><asp:datagrid id="DataGrid" runat="server" Width="98%" 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>
								<%# ((DataRowView)Container.DataItem)["checked"] %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="类">
							<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
							<HeaderTemplate>
								<%=headico%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# ((DataRowView)Container.DataItem)["pic"] %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="名称">
							<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
							<HeaderTemplate>
								<%=headname%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# ((DataRowView)Container.DataItem)["name"] %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="大小">
							<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Right"></ItemStyle>
							<HeaderTemplate>
								<%=headsize%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# ShowSize(Convert.ToInt64(((DataRowView)Container.DataItem)["size"])) %>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="更新时间">
							<HeaderStyle HorizontalAlign="Center" Width="17%"></HeaderStyle>
							<ItemStyle HorizontalAlign="Center"></ItemStyle>
							<HeaderTemplate>
								<%=headupdate%>
							</HeaderTemplate>
							<ItemTemplate>
								<%# ((DataRowView)Container.DataItem)["update"] %>
							</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>
					</Columns>
					<PagerStyle Visible="False" HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF"
						Mode="NumericPages"></PagerStyle>
				</asp:datagrid>
				<div class="STYLE2"><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></div>
				<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>
				<table width="100%" border="0" align="center">
					<tr>
						<td><div id="content"><asp:repeater id="DataList" runat="server" EnableViewState="False">
									<ItemTemplate>
										<div style="width:198px;margin-right:3px;margin-bottom:3px;float:left;">
											<table id="b<%# Container.ItemIndex %>" cellpadding="2" cellspacing="1" class="tableborder1" style="width:100%;word-break:break-all;">
												<tr>
													<td width="100%" height="130" align="center" valign="middle" class="tablebody1">
														<%# ((DataRowView)Container.DataItem)["link"] %>
													</td>
												</tr>
												<tr>
													<td class="tablebody2"><div align="center"><%# ((DataRowView)Container.DataItem)["checked"] %>选择&nbsp;<%# ((DataRowView)Container.DataItem)["rename"] %>&nbsp;<%# ((DataRowView)Container.DataItem)["note"] %><br>
															<%# ((DataRowView)Container.DataItem)["newname"] %>
															<br>
															<%# ShowSize(Convert.ToInt64(((DataRowView)Container.DataItem)["size"])) %>
															&nbsp;&nbsp;<%# ((DataRowView)Container.DataItem)["update"] %></div>
													</td>
												</tr>
											</table>
										</div>
									</ItemTemplate>
								</asp:repeater><input name="checkbox" type="checkbox" style="DISPLAY:none"></div>
						</td>
					</tr>
				</table>
			</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>
			<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 type="hidden" id="usernamestr" value="<%=usernamestr%>" size="20"></form>
		<div align="center"><%=adv4%></div>
		<div id="tc"></div>
		<script language="JAVASCRIPT">
if (document.getElementById("DataGrid")!=null) document.getElementById("rowcount").value=document.getElementById("DataGrid").rows.length+2;
else document.getElementById("rowcount").value=25;
		</script>
	</body>
</HTML>
