summaryrefslogtreecommitdiffstats
path: root/dogtag/ca-ui/shared/webapps/ca/ee/ca/index.html
blob: d1158d2701fee2c22c71bfe0b8ff2f1e81807620 (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<!-- --- 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>
<title>CA End-Entity</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="/pki/images/favicon.ico" />
<SCRIPT LANGUAGE="JavaScript"></SCRIPT>
<script lang="javascript" src="/ca/ee/dynamicVars.js"></script>
<script lang="javascript" src="/ca/ee/cms-funcs.js"></script>
<script lang="javascript">
<!--//
function doResize() {
    // used by tabs.html
    // don't call resize for IE - it sometimes crashes
    if (navigator.appName == 'Netscape' &&
        ((navMajorVersion() < 4) ||
         (typeof(crypto.version) == "undefined"))) {
        top.reloadTabs(-1);
    }
}

function tabItem(name, link, menu, defaultIndex)
{
	this.name = name;
	this.blackname = name.fontcolor('black');
	this.whitename = name.fontcolor('white');
	this.link = link;
	this.menu = menu;
	this.defaultIndex = defaultIndex;
	this.currentIndex = defaultIndex;
}

function initTabs()
{

	top.tabs = new Array();

	var name;
    top.tabsCount=0;

	name = 'Enrollment / Renewal';
	top.tabs[top.tabsCount++] = new tabItem(name, 'profileMenu.html', 
								 top.ProfileMenu, 1);
	if (http != 'true') {
	  name = 'Revocation';
	  top.tabs[top.tabsCount++] = new tabItem(name, 'revocationMenu.html',
								 top.RevocationMenu, 0);
	}

	name = 'Retrieval';
	top.tabs[top.tabsCount++] = new tabItem(name, 'retrievalMenu.html',
								 top.RetrievalMenu, 0);

    top.tabsSelectedIndex = 0;

}


function menuItem(name, link, desc)
{
	this.name = name;
	this.link = link;
	this.seldesc   = desc.fontcolor('blue');  // text when selected
	this.unseldesc = desc.fontcolor('black');   // text when unselected
	this.desc = desc;
}

function initMenus()
{
	initProfileMenu();
	if (http != 'true') {
	  initRevocationMenu();
	}
	initRecoveryMenu();
	initRetrievalMenu();
}

function initProfileMenu()
{
	top.ProfileMenu = new Array();

	var name = 'profileList';
	top.ProfileMenu[0] = new menuItem(name, 'profileList',
						   'List Certificate Profiles');
}

function tableItem(name, items)
{
	this.name = name; 
	this.menuItems = items;
}


// Check if a particular authmanager is enabled.
// The 'authamanager' array is set in 
// dynamic javascript in the URL /dynamicVars.js

function isAuthMgrEnabled(name)
{
	// handle the case when no auth manager is configured
        if (typeof(authmanager) == 'undefined') {
               return false;
        }
	for (var k=0; k<authmanager.length; k++) {
		if (authmanager[k] == name) {
			return true;
		}
	}
	return false;
}

function initRevocationMenu()
{
	top.RevocationMenu = new Array();

	var name='usercert';
	top.RevocationMenu[0] = new menuItem(name, 'UserRevocation.html',
							  'User Certificate');
	//name='servercert';
	//top.RevocationMenu[1] = new menuItem(name, 'ServerRevocation.html',
	//					      'Server Certificate');

  //  name='othercert';
   // top.RevocationMenu[1] = new menuItem(name, 'ChallengeRevoke1.html',
    //                          'Certificate (challenge phrase-based)');
    name='othercert';	
    top.RevocationMenu[1] = new menuItem(name, 'CMCRevReq.html',
                              'CMC Revoke');
}

function initRecoveryMenu()
{
	top.RecoveryMenu = new Array();
	var name;

	name = 'keyRecovery';
	top.RecoveryMenu[0] = new menuItem(name, 'KeyRecovery.html',
							'Key Recovery');
}

function initRetrievalMenu()
{
	top.RetrievalMenu = new Array();
	var name;
	var count=0;

	name = 'checkrequest';
	top.RetrievalMenu[count++] = new menuItem(name, 'checkRequest.html',
							 'Check Request Status');

  if (subsystemname != 'ra') {
	name = 'listcerts';
	top.RetrievalMenu[count++] = new menuItem(name, 'queryBySerial.html',
							 'List Certificates');
	name = 'searchcerts';
	top.RetrievalMenu[count++] = new menuItem(name, 'srchCert.html',
							 'Search Certificates');
  }
	name = 'getcachain';
	top.RetrievalMenu[count++] = new menuItem(name, 'GetCAChain.html',
							 'Import CA Certificate Chain');

  if (subsystemname != 'ra') {
	name = 'reviewcrl';
	if (clacrlurl != '') {
		top.RetrievalMenu[count++] = new menuItem(name, clacrlurl,
					 'Import Certificate Revocation List');
	} else {
		top.RetrievalMenu[count++] = new menuItem(name, 'getInfo?template=/ee/ca/toDisplayCRL',
					 'Import Certificate Revocation List');
	}
  }
}

// This method draws the left panel

function loadMenu(menu)
{

	with (top.left.document) {
        writeln('<body bgcolor="#cccccc" vlink="#444444" link="#444444" alink="#333399">');
		writeln('<table border=0 width=130 cellspacing=4 cellpadding=4>');
		writeln('<tr>');
		writeln('<td>');

		var selbgcol   = '#cccccc';  // cell's background col when selected
		var unselbgcol = '#cccccc';  //   ""          ""           unselected

		for (var k=0; k<menu.length; k++) {
			writeln('<tr>');

			// We check if the link is empty. If it is, this means the
			// menu item should be rendered as a 'title'. See the
			// 'Browser' heading in initEnrollMenu as an example

            if (menu[k].link != '') {

    			if (k == top.tabs[top.tabsSelectedIndex].currentIndex) {

					// Draw the current element in 'selected' state

	    			writeln('<td bgcolor="'+selbgcol+'">');
		    		writeln('<font size="-1" face="PrimaSans BT, Verdana, sans-serif">'+
							'<b>'+
							'<a onclick=javascript:top.reloadMenu("'+k+'"); href='+
								menu[k].link+
							' target="cms_content" >'+
							menu[k].seldesc+'</b></a></font>'
							);
			    }
    			else {
					// Draw the current element in 'unselected' state

	    			writeln('<td bgcolor="'+unselbgcol+'">');
		    		writeln('<font size="-1" face="PrimaSans BT, Verdana, sans-serif">'+
							'<b>'+
							'<a onclick=javascript:top.reloadMenu("'+k+'"); href='+
								menu[k].link+
							' target="cms_content" >'+
							menu[k].unseldesc+'</b></a></font>'
							);

        		}

          }
          else {   // nice headers go here (enrollment menu)
          		writeln('<td bgcolor=white>'+
						'<font face="PrimaSans BT, Verdana, sans-serif"'+
						'color=black>'+
						'<b>'+
                	menu[k].desc+'</b></font>');
               }


			writeln('</td>');
			writeln('</tr>');
		}

		writeln('</table>');
		writeln('</td>');
		writeln('</tr>');
		writeln('</table>');
		close();
	}

}

function reloadMenu(item)
{
	var curMenu = top.tabs[top.tabsSelectedIndex];
	curMenu.currentIndex = item;
	top.cms_content.location = curMenu.menu[item].link;
	loadMenu(curMenu.menu);


}


function reloadMenuAndContent()
{
	var tab = top.tabs[top.tabsSelectedIndex];
	tab.currentIndex = 0;
	top.cms_content.location = tab.menu[tab.currentIndex].link;
	reloadMenu(tab.currentIndex);
}

function reloadTabs(tabnum)
{
    if (tabnum != -1) {
        top.tabsSelectedIndex = tabnum;
    }
    top.reloadMenuAndContent();

//    if (navigator.appName != "Netscape") {
//        top.reloadMenu(top.tabs[tabnum].defaultIndex);
//    }

    if ( navigator.appName == 'Netscape') {
        top.tabsf.location.reload(false);
    } else {
       loadTabs();
    }
    if ( navigator.appName != 'Netscape') {
       loadTabs();
    }
}



function loadTabs()
{
	with (top.tabsf.document) {
        writeln('<body onresize="top.doResize();" bgcolor="#4f52b5" link="#FFFFFF" vlink="#FFFFFF" alink="#CCCCFF">');

		writeln('<table border=0 width="100%" cellspacing="0" cellpadding="0" bgcolor="#4f52b5">');
		writeln('<tr><td>');
		writeln('<table border=0 cellspacing=12 cellpadding=0>');
		writeln('<tr>');
		writeln('<td><img src="/pki/images/logo_header.gif"></td>');
		writeln('<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>');
	if (subsystemname == 'ca') {
		writeln('<td><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Dogtag<sup><font color="#cccccc" size="-2">&reg;</font></sup> Certificate Manager</b></font></td>');
	} else {
		writeln('<td><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b><b>Dogtag<sup><font color="#cccccc" size="-2">&reg;</font></sup> Registration Manager</b></font></td>');
	}
		writeln('</tr>');
		writeln('</table>');

		writeln('<table border=0 cellspacing="0" cellpadding="0">');
		writeln('<tr>');
		writeln('<td><img src="/ca/ee/graphics/spacer.gif" width="12" height="12"></td>');

		var index = top.tabsSelectedIndex;
		for (var j=0; j < top.tabsCount; j++) {
			if (j == index) {
				writeln('<td><img src="/ca/ee/graphics/lgLeftTab.gif" width="13" height="21"></td>');
				writeln('<td bgcolor="#cccccc" nowrap>'); 
				writeln('<font size="-1" face="PrimaSans BT, Verdana, sans-serif"><b>'+
                    top.tabs[j].blackname+
                    '</b></font></td>');
				writeln('<td><img src="/ca/ee/graphics/lgRightTab2.gif" width="16" height="21">'+
                '</td>');
			}
			else {
				writeln('<td><img src="/ca/ee/graphics/dgLeftTab.gif" width="13" height="21"></td>');
				writeln('<td bgcolor="#999999" nowrap>'+
                    '<font size="-1" face="PrimaSans BT, Verdana, sans-serif">'+
				    '<a onclick=javascript:top.reloadTabs("'+
                    j+'"); href='+
                    top.tabs[j].link+' target="left"><b>'+
                    top.tabs[j].whitename+'</b></a></font></td>');
				writeln('<td><img src="/ca/ee/graphics/dgRightTab2.gif" width="16" height="21"></td>');
			}
		}

		writeln('</tr>');
		writeln('</table></td></tr>');
        writeln('<tr bgcolor=#CCCCCC><td>&nbsp;<br>&nbsp;</td></tr>');
		writeln('</tr>');
		writeln('</table>');
		close();

	}
}



//-->
</script>
</head>

<script lang="javascript">
<!--//
initMenus();
initTabs();
//-->
</script>


<frameset rows="105,1*" frameborder="NO" border="0" cols="*"> 
  <frame src="tabs.html" name="tabsf" frameborder="NO" NORESIZE scrolling="NO" marginwidth="0" marginheight="0">
  <frameset cols="140,1*" border="0" frameborder="NO"> 
    <frame src="profileMenu.html" NORESIZE frameborder="NO" marginwidth="0" marginheight="0" name="left">
    <frame src="profileList" marginwidth="16" marginheight="16" frameborder="NO" NORESIZE name="cms_content">
  </frameset>
  <frame src="blank.html" name="foot" NORESIZE scrolling="NO" frameborder="NO">
</frameset>
<noframes><body bgcolor="#FFFFFF">

</body></noframes>
</html>