summaryrefslogtreecommitdiffstats
path: root/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-11-09 03:36:17 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-11-12 12:04:02 -0500
commit46fda5d944772ac62675570037785e39c517002b (patch)
tree667f28137e53f7a5a4f55a7b64f169c69be7513b /dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template
parentedf9c2273c00b52b0c240bc0c75dc1ba7bdc396e (diff)
downloadpki-46fda5d944772ac62675570037785e39c517002b.tar.gz
pki-46fda5d944772ac62675570037785e39c517002b.tar.xz
pki-46fda5d944772ac62675570037785e39c517002b.zip
Reorganized CA, KRA, OCSP, TKS templates.
All remaining theme files for Tomcat subsystems which include the templates and JS files have been moved from the theme folder at <subsystem>-ui/shared/webapps/<subsystem> into the subsystem webapp folder at base/<subsystem>/shared/webapps/<subsystem>. The deployment tools have been updated to use the new location. Ticket #407
Diffstat (limited to 'dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template')
-rw-r--r--dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template120
1 files changed, 0 insertions, 120 deletions
diff --git a/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template b/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template
deleted file mode 100644
index 117535fa1..000000000
--- a/dogtag/kra-ui/shared/webapps/kra/agent/kra/displayBySerial.template
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-</head>
-<CMS_TEMPLATE>
-<title>Display Key</title>
-<head>
-</head>
-<body bgcolor="white">
-
-<SCRIPT LANGUAGE="JavaScript"></SCRIPT>
-<script language="JavaScript" src="../funcs.js"></script>
-<script language="JavaScript" src="../helpfun.js"></script>
-<script language="JavaScript">
-function toHex(number)
-{
- var absValue = "", sign = "";
- var digits = "0123456789abcdef";
- if (number < 0) {
- sign = "-";
- number = -number;
- }
-
- for(; number >= 16 ; number = Math.floor(number/16)) {
- absValue = digits.charAt(number % 16) + absValue;
- }
- absValue = digits.charAt(number % 16) + absValue;
- return sign + absValue;
-}
-
-function renderHexNumber(number,width)
-{
- var num = toHex(number);
- while (num.length < width)
- num = "0"+num;
- return "0x"+num;
-}
-
-function renderDateFromSecs(secs)
-{
- if (secs == null) return "";
- var today = new Date();
- var dateTmp = new Date();
- dateTmp.setTime(secs * 1000);
- var dateStr = dateTmp.toLocaleString();
- return dateStr;
-}
-
-if (result.header.errorDetails != null) {
- writeError(result.header.errorDetails);
-} else {
- document.writeln(
- '<font face="PrimaSans BT, Verdana, sans-serif"><font size=+1>'+
- 'Key ' +
- '<a href="' + '/kra/agent/kra/displayBySerial' +
- '?op=displayBySerial&serialNumber=' + result.header.serialNumber + '"' +
- 'onMouseOver=" return helpstatus(\'Click to redisplay this ' +
- 'request \')" onMouseOut="return helpstatus(\'\')">' +
- renderHexNumber(result.header.serialNumber,8) +
- '</a></font></font>');
- document.writeln('<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BACKGROUND="/pki/images/hr.gif"><TR><TD>&nbsp;</TD></TR></TABLE>');
-
- document.writeln('<table border="0" cellspacing="2" cellpadding="2" width="100%">');
- document.writeln('<tr><td valign="top" align="left" colspan="3" bgcolor="#e5e5e5">');
- document.writeln('<font size="-1" face="PrimaSans BT, Verdana, sans-serif">');
- document.writeln('Key</font></td></tr>');
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">State:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.state + '</font></td>');
- document.writeln('</tr>');
-
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Created on:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + renderDateFromSecs(result.header.archivedOn) + '</font></td>');
- document.writeln('</tr>');
-
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Updated on:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + renderDateFromSecs(result.header.archivedOn) + '</font></td>');
- document.writeln('</tr>');
-
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Archiver:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.archivedBy + '</font></td>');
- document.writeln('</tr>');
-
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Public key:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.publicKey + '</font></td>');
- document.writeln('</tr>');
-
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Owner name:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.ownerName + '</font></td>');
- document.writeln('</tr>');
-
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Key algorithm:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyAlgorithm + '</font></td>');
- document.writeln('</tr>');
-
- if ((result.header.EllipticCurve != null)) {
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Elliptic Key Curve:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.EllipticCurve + '</font></td>');
- document.writeln('</tr>');
- } else {
- document.writeln('<tr>');
- document.write('<td align=right><font size="-1" face="PrimaSans BT, Verdana, sans-serif">Key length:</font></td>');
- document.write('<td align=left><font size="-1" face="PrimaSans BT, Verdana, sans-serif">' + result.header.keyLength + '</font></td>');
- document.writeln('</tr>');
- }
-
- document.write("</table>");
- document.writeln('<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" BACKGROUND="/pki/images/hr.gif"><TR><TD>&nbsp;</TD></TR></TABLE>');
-}
-</script>
-</body>
-</html>