Skip to main content
summaryrefslogtreecommitdiffstats
blob: 50f93ff575c0f57b905e6823dd08bec70a6bdc02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<%--
 Copyright (c) 2009, 2018 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 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>&nbsp;</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>

Back to the top