<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>网盘</title>
<script src="javascript/prototype.js" type="text/javascript">
</script>
<script type="text/javascript" src="javascript/common.js">
</script>
<link type="text/css" rel="stylesheet" href="css/style.css" />
</head>

<body>
	<form action="upload_page.action" method="post" name="uploadForm">
		<input type="hidden" value="" name="uploadPath" />
	</form>
	<iframe src="" id="downloadFrame"
		style="visibility: hidden;height: 0px;width: 0px"></iframe>
	<table width="100%">
		<tr>
			<td>
				<div style="height: 30px; margin-top: 10px; margin-left: 10px;">
					<c:choose>
						<c:when test="${param.current_path == null}">
							<input type="hidden" value="/" name="txt_path" />
						</c:when>
						<c:otherwise>
							<input type="hidden" value="${param.current_path}"
								name="txt_path" />
						</c:otherwise>
					</c:choose>

					<input id="btn_previous" value="反回上一级目录" type="button"
						onClick="previous()" /> &nbsp;&nbsp; <input id="btn_upload"
						value="上传" type="button" onclick="goUpload()" /> &nbsp;&nbsp; <input
						id="btn_download" value="下载" type="button"
						onclick="downloadMoreFile()" /> &nbsp;&nbsp; <input
						id="btn_create_dir" value="新建文件夹" type="button"
						onClick="showCreateDirDialog()" /> &nbsp;&nbsp; <input
						id="btn_delete" value="删除" type="button" onClick="deletePath()" />
					&nbsp;&nbsp; <input id="btn_delete" value="已使用空间" type="button"
						onClick="getUsedSize()" /> &nbsp;&nbsp; <input id="btn_relogin"
						value="重新登录" type="button" onClick="relogin()" />

				</div>
			</td>
		</tr>

		<tr>
			<td>
				<div id="div_current_path"
					style="height: 30px; margin-top: 10px; margin-left: 10px;"></div>
			</td>
		</tr>
		<tr>
			<td>
				<table id="tbl_list" width="700" order="0" cellspacing="0"
					cellpadding="0">
					<tr bgcolor="#DDDDDD" style="font: bold">
						<td width="50%"><input type="checkbox" id="checkbox_head"
							onclick="checkAll(this);" /> &nbsp;目录</td>
						<td width="30%">上传时间</td>
						<td style="text-align: right">大小</td>
					</tr>

				</table>
			</td>
		</tr>
	</table>

	<script type="text/javascript">
	
	
		jsonLoadDirAndFile();
		showCurrentPath();
	</script>


</body>
</html>
