summaryrefslogtreecommitdiffstats
path: root/dogtag/tks-ui/shared/webapps/tks/agent/header.template
blob: d1221b14ba59565c0bcdf59901e87d94fd325459 (plain)
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
<!-- --- BEGIN COPYRIGHT BLOCK ---
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; version 2 of the License.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License along
     with this program; if not, write to the Free Software Foundation, Inc.,
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

     Copyright (C) 2007 Red Hat, Inc.
     All rights reserved.
     --- END COPYRIGHT BLOCK --- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<CMS_TEMPLATE>
<title>Header</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

<body onResize=location.reload() bgcolor="#CCCCCC" link="#FFFFFF" vlink="#FFFFFF" alink="#CCCCFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000080">
  <tr>
    <td> 
      <table border="0" cellspacing="12" cellpadding="0">
        <tr>
          <td><img src="/pki/images/logo_header.gif"></td>
          <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <td><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Dogtag<sup><font color="#999999" size="-2">&reg;</font></sup> Agent Services</b></font></td>
        </tr>
      </table>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><img src="/pki/images/spacer.gif" alt="" width="12" height="21"></td>
<SCRIPT type="text/javascript">
	for (var i = 0; i < result.recordSet.length; ++i) {
		if (result.recordSet[i].id == header.selected) {
          		document.write('<td><img src="/pki/images/lgLeftTab.gif" width="13" height="21"><\/td>');
          		document.write('<td bgcolor="#cccccc" nowrap>');
		} else {
          		document.write('<td><img src="/pki/images/dgLeftTab.gif" width="13" height="21"><\/td>');
          		document.write('<td bgcolor="#999999" nowrap>');
		}
		document.write('<font size="-1" face="PrimaSans BT, Verdana, sans-serif">');
                if (result.recordSet[i].type == "CertificateAuthority") {
			type = "Certificate Manager";
		} else if (result.recordSet[i].type == "KeyRecoveryAuthority") {
			type = "Data Recovery Manager";
		} else if (result.recordSet[i].type == "OCSPAuthority") {
			type = "Online Certificate Status Manager";
		} else if (result.recordSet[i].type == "RegistrationAuthority") {
			type = "Registration Manager";
		}
		if (result.recordSet[i].id == header.selected) {
          		document.write('<b>' + type + '<\/b>');
		} else {
          		document.write('<a href="../' + 
				result.recordSet[i].id + 
				'/index.html" target="_top">' + 
				type + '<\/a>');
		}
		document.write('<\/font><\/td>');
		if (result.recordSet[i].id == header.selected) {
          		document.write('<td><img src="/pki/images/lgRightTab.gif" width="16" height="21" alt=""><\/td>');
		} else {
          		document.write('<td><img src="/pki/images/dgRightTab.gif" width="16" height="21" alt=""><\/td>');
		}
	}
</SCRIPT>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>