⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 personfilesctrl.jsp

📁 “JSP数据库项目案例导航”一书从第一章到第十一章各章实例的源程序文件以及数据库文件。 注意: 1. 本书中的案例提供的数据库环境不同
💻 JSP
字号:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,oa.main.DealString"%>
<%
	DealString ds=new DealString();
	String[] strFolders=(ds.toString((String)request.getParameter("txt_folderlist"))).split(",");
	String[] strFolderNames=(ds.toGBK((String)request.getParameter("txt_foldernamelist"))).split(",");
%>
<STYLE>
.skin1 {
    BORDER-STYLE:double;BORDER-COLOR:#FFFFFF; FONT-SIZE: 9pt; VISIBILITY: hidden; WIDTH: 90px; CURSOR: default;FONT-FAMILY: Arial, Helvetica, sans-serif; POSITION: absolute; BACKGROUND-COLOR: #000000; TEXT-ALIGN: center
}
.menuitems {
    PADDING-RIGHT: 10px; PADDING-LEFT: 10px
}
</STYLE>

<SCRIPT language=JavaScript1.2>
<!-- Begin
var menuskin = "skin1"; // skin0, or skin1
var display_url = 0; // Show URLs in status bar?
var body;
if(body==null)
	body=document.body;
function showmenuie5FILE() {
//	hidemenuie5();

	var rightedge = body.clientWidth-event.clientX;
	var bottomedge = body.clientHeight-event.clientY;
	if (rightedge < ie5menuFILE.offsetWidth)
		ie5menuFILE.style.left = body.scrollLeft + event.clientX - ie5menuFILE.offsetWidth;
	else
		ie5menuFILE.style.left = body.scrollLeft + event.clientX;
	if (bottomedge < ie5menuFILE.offsetHeight)
		ie5menuFILE.style.top = body.scrollTop + event.clientY - ie5menuFILE.offsetHeight;
	else
		ie5menuFILE.style.top = body.scrollTop + event.clientY;
	ie5menuFILE.style.visibility = "visible";
	return false;
}

function showmenuie5DIR() {

//	hidemenuie5();
	var rightedge = body.clientWidth-event.clientX;
	var bottomedge = body.clientHeight-event.clientY;
	if (rightedge < ie5menuDIR.offsetWidth)
		ie5menuDIR.style.left = body.scrollLeft + event.clientX - ie5menuDIR.offsetWidth;
	else
		ie5menuDIR.style.left = body.scrollLeft + event.clientX;
	if (bottomedge < ie5menuDIR.offsetHeight)
		ie5menuDIR.style.top = body.scrollTop + event.clientY - ie5menuDIR.offsetHeight;
	else
		ie5menuDIR.style.top = body.scrollTop + event.clientY;
	ie5menuDIR.style.visibility = "visible";
	return false;
}

function hidemenuie5() {
	ie5menuFILE.style.visibility = "hidden";
	ie5menuDIR.style.visibility = "hidden";
	ie5submenu.style.visibility = "hidden";	
}



function highlightie5() {
	if (event.srcElement.className == "menuitems") {
		event.srcElement.style.backgroundColor = "highlight";
		event.srcElement.style.color = "white";
		if (display_url)
		window.status = event.srcElement.url;
   }
}

function lowlightie5() {
	if (event.srcElement.className == "menuitems") {
		event.srcElement.style.backgroundColor = "";
		event.srcElement.style.color = "black";
		window.status = "";
   }
}

function jumptoie5() {
	if (event.srcElement.className == "menuitems") {
		if (event.srcElement.getAttribute("target") != null)
		window.open(event.srcElement.url, event.srcElement.getAttribute("target"));
	else
		window.location = event.srcElement.url;
   }
}
//  End -->
</SCRIPT>

<q class=skin1 id=ie5menuFILE  
style="LEFT: 280px; TOP: 28px" onclick=jumptoie5(); >


<TABLE height="73" border="0" width="100%" align=left >
  <TBODY border="0">
  <TR>
    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';hidesubmenu()"
    onmouseout="this.style.backgroundColor='#DAE2F3';" bgColor=#DAE2F3 height=20 onclick="download()">
	  下载到...</TD></TR>

  <TR>
    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';hidesubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" bgColor=#DAE2F3 height=20 onclick="delfile()">
       删除</TD></TR>
  <TR>
    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';hidesubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" vAlign=center 
    bgColor=#DAE2F3 height="20" onclick="rename()">
      重命名</TD></TR>
  <TR>
    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';showsubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" vAlign=center 
    bgColor=#DAE2F3 height="20" >
      移动到</TD></TR>
</TBODY></TABLE></q>


<q class=skin1 id=ie5menuDIR 
style="LEFT: 280px; TOP: 28px" onclick=jumptoie5(); >


<TABLE height="50" border="0" width="98%" align=left>
  <TBODY>
  <TR>
	<TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';hidesubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" bgColor=#DAE2F3 height=20 onclick="openDIR()">
	  打开...</TD></TR>

    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';hidesubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" bgColor=#DAE2F3 height=20 onclick="delDIR()">
     删除</TD></TR>
  <TR>
    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';hidesubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" vAlign=center 
    bgColor=#DAE2F3 height="20" onclick="rename()">
    重命名</TD></TR>
  <TR>
    <TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';showsubmenu()" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" vAlign=center 
    bgColor=#DAE2F3 height="20">
      移动到</TD></TR>
</TBODY></TABLE></q>

<q class=skin1 id=ie5submenu 
style="LEFT: 280px; TOP: 28px" onclick=jumptoie5(); >


<TABLE height="20" border="0" width="98%" align=left >
  <TBODY>
  <%for(int i=0;i<strFolders.length;i++){
	    if(strFolderNames[i].equals("")||strFolders[i].equals(""))
			continue;
%>
  <TR>
	<TD 
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" bgColor=#DAE2F3 height=20 onclick="moveToDIR('<%=strFolders[i]%>')">
	<%=strFolderNames[i]%></TD></TR>
	<%}%>
 <tr>
  <td
    onmouseover="this.style.backgroundColor='#A4A4FF'; this.style.cursor='hand';" 
    onmouseout="this.style.backgroundColor='#DAE2F3';" bgColor=#DAE2F3 height=20 onclick="chooseDIR();">
	其他位置</td></tr>

</TBODY></TABLE></q>



<SCRIPT language=JavaScript1.2>

	var tag = "1";
	var d = document;
	function onclickshow(fileid,fileclass)
	{
		form1.txt_fileID.value = fileid;
		tag = "2";
		if (fileclass=="F"){
			d.oncontextmenu = showmenuie5FILE;
			body.onclick = hidemenuie5;
		}
		else if (fileclass=="D"){
			d.oncontextmenu = showmenuie5DIR;
			body.onclick = hidemenuie5
		}
	}
<%--
	if (document.all && window.print)
	{
		ie5menuFILE.className = menuskin;
		ie5menuDIR.className = menuskin;
		ie5submenu.className = menuskin;
		body.oncontextmenu = nocontextmenu;
		body.onclick = hidemenuie5;
	}
--%>
	function nocontextmenu() 
	{
		event.cancelBubble = true;
		event.returnValue = false; 
		return false;
	}
 
	function norightclick(e) 
	{
		if (window.Event) 
		{
			if (e.which == 2 || e.which == 3)
			return false;
		}
		else if (event.button == 2 || event.button == 3)
		{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		} 
	}

	function onclickhide()
	{
		if (window.Event) 
			d.captureEvents(Event.MOUSEUP); 

		if(tag=="1")//鼠标单击在显示菜单地方之外
		{	
			d.oncontextmenu = nocontextmenu;  // for IE5+
			body.onmousedown = norightclick;  // for all others
		}
		tag = "1";
	}

	function showsubmenu()
	{
		var rightedge = body.clientWidth-event.clientX;
		var bottomedge = body.clientHeight-event.clientY;
		if (rightedge < ie5submenu.offsetWidth)
			ie5submenu.style.left = body.scrollLeft + event.clientX - ie5submenu.offsetWidth;
		else
			ie5submenu.style.left = body.scrollLeft + event.clientX;
		if (bottomedge < ie5submenu.offsetHeight)
			ie5submenu.style.top = body.scrollTop + event.clientY - ie5submenu.offsetHeight;
		else
			ie5submenu.style.top = body.scrollTop + event.clientY;
		ie5submenu.style.visibility = "visible";
		return true;
	}
	
	function hidesubmenu()
	{
		ie5submenu.style.visibility = "hidden";	
	}
	

</SCRIPT>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -