【JSP开源代码栏目提醒】:网学会员--在 JSP开源代码编辑为广大网友搜集整理了:workingSetManager.jsp绩等信息,祝愿广大网友取得需要的信息,参考学习。
<%--
Copyright (c) 2000, 2004 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
IBM Corporation - initial API and implementation
--%>
<%@ include file="header.jsp"%>
<%
WorkingSetManagerData data = new WorkingSetManagerData(application, request, response);
WebappPreferences prefs = data.getPrefs();
String dataSaveError = data.getSaveError();
%>
<html>
<head>
<title><%=ServletResources.getString("SelectWorkingSet", request)%></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<style type="text/css">
<%@ include file="list.css"%>
</style>
<style type="text/css">
HTML, BODY {
width:100%;
height:100%;
margin:0px;
padding:0px;
border:0px;
}
BODY {
background-color: <%=prefs.getToolbarBackground()%>;
color:WindowText;
}
TABLE {
width:auto;
}
TD, TR {
margin:0px;
padding:0px;
border:0px;
}
TD.radio {
white-space: nowrap;
}
BUTTON {
font:<%=prefs.getViewFont()%>;
}
#workingSetContainer {
background:Window;
color:WindowText;
border: 2px inset ThreeDHighlight;
margin:0px 5px;
padding:5px;
overflow:auto;
}
</style>
<script language="JavaScript" src="list.js"></script>
<script language="
JavaScript">
function highlightHandler()
{
document.getElementById('selectws').checked = true;
enableButtons();
}
// register handler
_highlightHandler = highlightHandler;
function onloadHandler() {
<%if(dataSaveError != null){%>
alert("<%=dataSaveError%>");
window.location="workingSetManager.jsp"
<%}
if(!data.isMozilla() || "1.3".compareTo(data.getMozillaVersion()) <=0){
// buttons are not resized immediately on mozilla before 1.3
%>
sizeButtons();
<%}%>
enableButtons();
document.getElementById("alldocs").focus();
}
function sizeButtons() {
var minWidth=60;
if(document.getElementById("ok").offsetWidth < minWidth){
document.getElementById("ok").style.width = minWidth+"px";
}
if(document.getElementById("cancel").offsetWidth < minWidth){
document.getElementById("cancel").style.width = minWidth+"px";
}
if(document.getElementById("edit").offsetWidth < minWidth){
document.getElementById("edit").style.width = minWidth+"px";
}
if(document.getElementById("remove").offsetWidth < minWidth){
document.getElementById("remove").style.width = minWidth+"px";
}
if(document.getElementById("new").offsetWidth < minWidth){
document.getElementById("new").style.width = minWidth+"px";
}
}
function enableButtons() {
if (document.getElementById('selectws').checked){
document.getElementById("edit").disabled = (active == null);
document.getElementById("remove").disabled = (active == null);
document.getElementById("ok").disabled = (active == null);
} else {
document.getElementById("edit").disabled = true;
document.getElementById("remove").disabled = true;
document.getElementById("ok").disabled = false;
}
}
function getWorkingSet()
{
if (active != null && document.getElementById("selectws").checked)
return active.title;
else
return "";
}
function selectWorkingSet() {
var workingSet = getWorkingSet();
var search = window.opener.location.search;
if (search && search.length > 0) {
var i = search.indexOf("workingSet=");
if (i >= 0)
search = search.substring(0, i);
else
search += "&";
} else {
search = "?";
}
search += "workingSet=" + encodeURIComponent(workingSet);
var sear