| <%-- | |
| Copyright (c) 2009, 2018 IBM Corporation and others. | |
| This program and the accompanying materials | |
| are made available under the terms of the Eclipse Public License 2.0 | |
| which accompanies this distribution, and is available at | |
| https://www.eclipse.org/legal/epl-2.0/ | |
| SPDX-License-Identifier: EPL-2.0 | |
| 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 lang="<%=ServletResources.getString("locale", request)%>"> | |
| <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 type="text/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> |