diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-24 02:27:47 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-26 11:43:54 -0500 |
commit | 621d9e5c413e561293d7484b93882d985b3fe15f (patch) | |
tree | 638f3d75761c121d9a8fb50b52a12a6686c5ac5c /dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment | |
parent | 40d3643b8d91886bf210aa27f711731c81a11e49 (diff) | |
download | pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.gz pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.xz pki-621d9e5c413e561293d7484b93882d985b3fe15f.zip |
Removed unnecessary pki folder.
Previously the source code was located inside a pki folder.
This folder was created during svn migration and is no longer
needed. This folder has now been removed and the contents have
been moved up one level.
Ticket #131
Diffstat (limited to 'dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment')
4 files changed, 492 insertions, 0 deletions
diff --git a/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/index.html b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/index.html new file mode 100644 index 000000000..efcc3c67d --- /dev/null +++ b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/index.html @@ -0,0 +1,393 @@ +<!-- --- 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 --- --> +<html> +<head> +<title>CA End-Entity</title> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +<link rel="shortcut icon" href="/ca/ee/graphics/favicon.ico" /> +<SCRIPT LANGUAGE="JavaScript"></SCRIPT> +<script lang="javascript" src="/dynamicVars.js"></script> +<script lang="javascript" src="../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'; + 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 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[2] = 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=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="#9999cc" link="#FFFFFF" vlink="#FFFFFF" alink="#CCCCFF">'); + + writeln('<table border=0 width="100%" cellspacing="0" cellpadding="0" bgcolor="#9999CC">'); + writeln('<tr><td>'); + writeln('<table border=0 cellspacing=0 cellpadding=0 width="100%" >'); + writeln('<tr><td>'); + writeln('<table border=0 cellspacing=12 cellpadding=0 width="100%">'); + writeln('<tr>'); + writeln('<td><font size="-1" face="PrimaSans BT, Verdana, sans-serif" color="white">Netscape<font color="#cccccc" size="-2">®</font>'+ + '<b><br>Certificate Management<br> System</b></font><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b></b></font></td>'); + writeln('<td></td>'); + if (subsystemname == 'ca') { + writeln('<td width=350 align=right><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Certificate Manager</b></font></td>'); + } + else { + writeln('<td width=350><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Registration Manager</b></font></td>'); + } + writeln('</tr>'); + writeln('</table>'); + writeln('</td></tr>'); + writeln('</table>'); + + writeln('<table border=0 cellspacing="0" cellpadding="0">'); + writeln('<tr>'); + writeln('<td><img src="/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="/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="/graphics/lgRightTab2.gif" width="16" height="21">'+ + '</td>'); + } + else { + writeln('<td><img src="/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="/graphics/dgRightTab2.gif" width="16" height="21"></td>'); + } + } + + writeln('</tr>'); + writeln('</table></td></tr>'); + writeln('<tr bgcolor=#CCCCCC><td> <br> </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> diff --git a/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/profileMenu.html b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/profileMenu.html new file mode 100644 index 000000000..8f19d91b4 --- /dev/null +++ b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/profileMenu.html @@ -0,0 +1,32 @@ +<!-- --- 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 --- --> +<html> + +<head> +<title>profile Menu</title> +</head> + +<body bgcolor="#CCCCCC" link="#FFFFFF" vlink="#FFFFFF" alink="#333399"> +<script lang="javascript" src="/dynamicVars.js"></script> +<script lang=javascript> +//<!-- + top.loadMenu(top.tabs[0].menu); +//--> +</script> + +</body> diff --git a/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/retrievalMenu.html b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/retrievalMenu.html new file mode 100644 index 000000000..faafe343e --- /dev/null +++ b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/retrievalMenu.html @@ -0,0 +1,36 @@ +<!-- --- 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 --- --> +<html> + +<head> +<title>Retrieval Menu</title> +</head> +<SCRIPT LANGUAGE="JavaScript"></SCRIPT> +<script lang="javascript" src="/dynamicVars.js"></script> + +<script lang=javascript> +//<!-- + if (http != 'true') { + top.loadMenu(top.tabs[2].menu); + } else { + top.loadMenu(top.tabs[1].menu); + } +//--> +</script> + +</body> diff --git a/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/revocationMenu.html b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/revocationMenu.html new file mode 100644 index 000000000..21f5f4397 --- /dev/null +++ b/dogtag/ca-ui/shared/webapps/ca/ee/ca/profileEnrollment/revocationMenu.html @@ -0,0 +1,31 @@ +<!-- --- 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 --- --> +<html> + +<head> +<title>Revocation Menu</title> +</head> + + +<script lang=javascript> +//<!-- +top.loadMenu(top.tabs[1].menu); +//--> +</script> + +</body> |