diff options
author | Chris Goldthorpe | 2009-11-18 19:16:49 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2009-11-18 19:16:49 +0000 |
commit | df2b9eeddbf28077fa66d2795c5d514a952bb9fb (patch) | |
tree | 18d2fdada54d276589bceab392f12b3293b13a61 /org.eclipse.help.webapp/advanced/printConfirm.jsp | |
parent | 751d5a1cd189cfefe121cbe375576fa2928c6c0c (diff) | |
download | eclipse.platform.ua-df2b9eeddbf28077fa66d2795c5d514a952bb9fb.tar.gz eclipse.platform.ua-df2b9eeddbf28077fa66d2795c5d514a952bb9fb.tar.xz eclipse.platform.ua-df2b9eeddbf28077fa66d2795c5d514a952bb9fb.zip |
Bug 293747 [Help][Print]Add maximum printed topics and maximum connections to the preference to optimize the quick print operation:
Diffstat (limited to 'org.eclipse.help.webapp/advanced/printConfirm.jsp')
-rw-r--r-- | org.eclipse.help.webapp/advanced/printConfirm.jsp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/org.eclipse.help.webapp/advanced/printConfirm.jsp b/org.eclipse.help.webapp/advanced/printConfirm.jsp new file mode 100644 index 000000000..2908cb5a6 --- /dev/null +++ b/org.eclipse.help.webapp/advanced/printConfirm.jsp @@ -0,0 +1,82 @@ +<%-- + Copyright (c) 2009 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"%> +<% + String qs = request.getQueryString(); + String location = ""; + if (qs != null) { + location = "print.jsp?" + qs + "&confirmed=true"; + } + String[] args = new String[] { + (String) request.getAttribute("topicsRequested"), + (String) request.getAttribute("allowedMaxTopics"), + ServletResources.getString("yes", request), + ServletResources.getString("no", request)}; + String notice = ServletResources.getString("topicNumExceeded", args, request); +%> + +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<meta http-equiv="Pragma" content="no-cache"> +<meta http-equiv="Expires" content="-1"> +<link rel="stylesheet" href="printAlert.css" charset="utf-8" type="text/css"> + +<script language="JavaScript"> + +function onloadHandler() { + sizeButtons(); +} + +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"; + } +} + +</script> + +</head> +<body dir="<%=direction%>" onload="onloadHandler()"> +<p> </p> +<div align="center"> +<div class="printAlertDiv"> +<table align="center" cellpadding="10" cellspacing="0" width="400"> + <form name="confirmForm" method="post" action="<%=location%>"> + <tbody> + <tr> + <td class="caption"><strong><%=ServletResources.getString("alert", request)%></strong></td> + </tr> + <tr> + <td class="message"> + <p><%=notice%></p> + </td> + </tr> + <tr> + <td class="button"> + <div align="center"> + <button id="ok" onClick="confirmForm.submit()"><%=ServletResources.getString("yes", request)%></button> + <button id="cancel" onClick="top.close()"><%=ServletResources.getString("no", request)%></button> + </div> + </td> + </tr> + </tbody> + </form> +</table> +</div> +</div> +</body> +</html> |