📄 dir_list.jsp
字号:
<input name="notuploadfile" type="button" class="singleboarder" value="上传大文件" onClick="return SubmitWithFileThread()">
<input name="notuploadfile" type="button" class="singleboarder" value=" 上 传 " onClick="return SubmitWithoutFile()">
<input name="remsg" type="button" class="singleboarder" onClick='alert(webedit.ReturnMessage)' value="返回信息">
<span class="p14">
<input type="hidden" name=isuploadfile value="true">
<input type="hidden" name=id value="<%=doc!=null?""+doc.getID():""%>">
<input type="hidden" name="op" value="<%=op%>">
<input type="hidden" name="title" value="<%=leaf.getName()%>">
<input type="hidden" name="dir_code" value="<%=dir_code%>">
<input type="hidden" name="examine" value="<%=Document.EXAMINE_PASS%>">
</span></td>
</tr>
</table> </td>
</tr>
</form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="right">共 <b><%=paginator.getTotal() %></b> 个 每页显示 <b><%=paginator.getPageSize() %></b> 个 页次 <b><%=paginator.getCurrentPage() %>/<%=paginator.getTotalPages() %></b>
<%
String querystr = "op=editarticle&orderBy=" + orderBy + "&sort=" + sort + "&dir_code=" + StrUtil.UrlEncode(dir_code);
out.print(paginator.getCurPageBlock("?"+querystr));
%>
<input name="button" type="button" class="button1" onClick="displayCtlTable(this)" value="上 传">
</td>
</tr>
</table>
<table id="rmofficeTable" name="rmofficeTable" style="display:none" width="29%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="22" align="center" bgcolor="#E3E3E3"><strong> 编辑Office文件</strong></td>
</tr>
<tr>
<td align="center" bgcolor="#FFFFFF"><div style="width:316;height:43"><object id="redmoonoffice" classid="CLSID:D01B1EDF-E803-46FB-B4DC-90F585BC7EEE"
codebase="<%=request.getContextPath()%>/activex/rmoffice.cab#version=2,0,0,1" width="316" height="43" viewastext="viewastext">
<param name="Encode" value="utf-8" />
<param name="BackColor" value="0000ff00" />
<param name="Server" value="<%=Global.server%>" />
<param name="Port" value="<%=Global.port%>" />
<!--设置是否自动上传-->
<param name="isAutoUpload" value="1" />
<!--设置文件大小不超过1M-->
<param name="MaxSize" value="<%=Global.FileSize%>" />
<!--设置自动上传前出现提示对话框-->
<param name="isConfirmUpload" value="1" />
<!--设置IE状态栏是否显示信息-->
<param name="isShowStatus" value="0" />
<param name="PostScript" value="<%=Global.virtualPath%>/netdisk/netdisk_office_upload.jsp" />
</object></div>
<!--<input name="remsg" type="button" onclick='alert(redmoonoffice.ReturnMessage)' value="查看上传后的返回信息" />--></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<form name="form3" action="?" method="post"><td align="center">
<input name="newname" type="hidden">
</td></form>
</tr>
</table>
</TD>
</TR>
</TABLE>
<div id="ie5menu" class="skin0" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" style="display:none">
<div class="menuitems" url="javascript:openFile()">打开</div>
<div class="menuitems" url="javascript:changeName()">重命名</div>
<div class="menuitems" url="javascript:move()">移动文件</div>
<div class="menuitems" url="javascript:del()">删除</div>
<div class="menuitems" url="javascript:download()">下载</div>
<div class="menuitems" url="javascript:publicShare()">发布</div>
<hr width=100%>
<div class="menuitems" url="dir_list.jsp?op=editarticle&dir_code=<%=StrUtil.UrlEncode(dir_code)%>">刷新</div>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<form name=form10 action="?">
<tr><td>
<input name="op" type="hidden" value="editarticle">
<input name="action" type="hidden">
<input name="dir_code" type="hidden" value="<%=dir_code%>">
<input name="newname" type="hidden">
<input name="attach_id" type="hidden">
<input name="doc_id" type="hidden" value="<%=id%>">
<input name="page_num" type="hidden" value="1">
<input name="CPages" type="hidden" value="<%=curpage%>"></td></tr>
</form>
</table>
<iframe id="hideframe" name="hideframe" src="fwebedit_do.jsp" width=0 height=0></iframe>
</body>
<script>
function changeAttachName(attach_id, doc_id, nm) {
var obj = findObj(nm);
// document.frames.hideframe.location.href = "fwebedit_do.jsp?op=changeattachname&page_num=1&doc_id=" + doc_id + "&attach_id=" + attach_id + "&newname=" + obj.value
form3.action = "dir_list_do.jsp?op=changeattachname&page_num=1&doc_id=" + doc_id + "&attach_id=" + attach_id;
form3.newname.value = obj.value;
form3.submit();
}
function delAttach(attach_id, doc_id) {
if (!window.confirm("您确定要删除吗?")) {
return;
}
document.frames.hideframe.location.href = "dir_list_do.jsp?op=delAttach&page_num=1&doc_id=" + doc_id + "&attach_id=" + attach_id
}
var curOrderBy = "<%=orderBy%>";
var sort = "<%=sort%>";
function doSort(orderBy) {
if (orderBy==curOrderBy)
if (sort=="asc")
sort = "desc";
else
sort = "asc";
window.location.href = "?dir_code=<%=StrUtil.UrlEncode(dir_code)%>&op=editarticle&orderBy=" + orderBy + "&sort=" + sort;
}
</script>
<script language="JavaScript1.2">
//set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar
var display_url=0
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
if (ie5||ns6)
var menuobj=document.getElementById("ie5menu")
function showmenuie5(e){
if (curAttachId=="")
return;
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX
var bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? document.body.scrollLeft+event.clientX-menuobj.offsetWidth : window.pageXOffset+e.clientX-menuobj.offsetWidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX
//same concept with the vertical position
if (bottomedge<menuobj.offsetHeight)
menuobj.style.top=ie5? document.body.scrollTop+event.clientY-menuobj.offsetHeight : window.pageYOffset+e.clientY-menuobj.offsetHeight
else
menuobj.style.top=ie5? document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY
menuobj.style.visibility="visible"
return false
}
function hidemenuie5(e){
menuobj.style.visibility="hidden"
}
function highlightie5(e){
var firingobj=ie5? event.srcElement : e.target
if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode //up one node
firingobj.style.backgroundColor="highlight"
firingobj.style.color="white"
if (display_url==1)
window.status=event.srcElement.url
}
}
function lowlightie5(e){
var firingobj=ie5? event.srcElement : e.target
if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode //up one node
firingobj.style.backgroundColor=""
firingobj.style.color="black"
window.status=''
}
}
function jumptoie5(e){
var firingobj=ie5? event.srcElement : e.target
if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){
if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode
if (firingobj.getAttribute("target"))
window.open(firingobj.getAttribute("url"),firingobj.getAttribute("target"))
else
window.location=firingobj.getAttribute("url")
}
}
if (ie5||ns6){
menuobj.style.display=''
document.oncontextmenu=showmenuie5
document.onclick=hidemenuie5
}
function onMouseUp(attachId, attachName) {
// 左键
curAttachId = attachId;
curAttachName = attachName;
if (event.button==1) {
// alert(id + "_" + attachId);
}
// 右键
if (event.button==2) {
// alert(id + "_" + attachId);
}
}
var spanInnerHTML = "";
function changeName() {
if (curAttachId!="") {
spanObj = findObj("span" + curAttachId);
spanInnerHTML = spanObj.innerHTML;
spanObj.innerHTML = "<input name='newName' class=singleboarder size=22 value='" + curAttachName + "' onblur=\"doChange('" + curAttachId + "',this.value,'" + curAttachName + "'," + spanObj.name + ")\" onKeyDown=\"if (event.keyCode==13) this.blur()\">";
addform.newName.focus();
addform.newName.select();
}
}
function doChange(attachId, newName, oldName, spanObj) {
if (newName!=oldName) {
form10.action.value = "changeName";
form10.attach_id.value = attachId;
form10.newname.value = newName;
form10.submit();
}
else {
spanObj.innerHTML = spanInnerHTML;
}
curAttachId = "";
}
function move() {
window.location.href = "dir_change.jsp?attachId=" + curAttachId;
}
function del() {
delAttach(curAttachId, id);
}
function openFile() {
window.open("netdisk_getfile.jsp?id=" + id + "&attachId=" + curAttachId);
}
function download() {
window.open("netdisk_downloadfile.jsp?id=" + id + "&attachId=" + curAttachId);
}
function publicShare() {
window.location.href = "netdisk_public_share.jsp?attachId=" + curAttachId;
}
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -