diff options
Diffstat (limited to 'dogtag/tps-ui/shared/docroot/tokendb/index.template')
-rw-r--r-- | dogtag/tps-ui/shared/docroot/tokendb/index.template | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/dogtag/tps-ui/shared/docroot/tokendb/index.template b/dogtag/tps-ui/shared/docroot/tokendb/index.template new file mode 100644 index 000000000..d49a69b61 --- /dev/null +++ b/dogtag/tps-ui/shared/docroot/tokendb/index.template @@ -0,0 +1,151 @@ +<!-- --- 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> +<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"> +<link rel="shortcut icon" href="/tps/admin/console/img/favicon.ico" /> +<HEAD> +<TITLE>TPS Agent</Title> +</HEAD> + +<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000080"> + <tr> + <td> + <table border="0" cellspacing="12" cellpadding="0"> + <tr> + <td><img src="/tps/admin/console/img/logo_header.gif"></td> + <td> </td> + <td><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Dogtag<sup><font color="#999999" size="-2">®</font></sup> TPS Services</b></font></td> + </tr> + </table> + </td> + </tr> +</table> +<p> + +<BODY> + +<CMS_TEMPLATE> + +<SCRIPT type="text/JavaScript"> +<!-- +var uri0 = ""; +if (typeof(uriBase) == "undefined") { + uri0 += "/tus"; +} else { + uri0 += uriBase; +} + +document.write("<font face=\"PrimaSans BT, Verdana, sans-serif\" size=\"+1\">"+ + "<a href=\""+uri0+"\">Main Menu</a></font>\n"); + +if ((typeof(flash) != "undefined") && (flash != "")) { + document.write("<table width=\"100%\"><tr><td align=\"left\">" + + "<font color=\"#ff0000\"><b>" + flash.replace(/\+/g, " ") + "</b><font>" + + "</td></tr></table>\n"); +} + +document.write("<table width=\"100%\"><tr><td align=\"right\"><b>UID:</b>" + + userid + "</td></tr></table>\n"); +document.write("<HR NOSHADE SIZE=1>\n"); + +function doFind(form) { + if (form.uid.value == "" && form.tid.value == "") { + alert("Enter token or user ID"); + } else { + var uri = ""; + if (typeof(uriBase) == "undefined") { + uri += "/tus" + } else { + uri += uriBase; + } + uri += "?op=view"; + if (form.tid.value.length > 0) uri += "&tid=" + form.tid.value; + if (form.uid.value.length > 0) uri += "&uid=" + form.uid.value; + location.href = uri; + } +} + +var lastCol = 100; +document.write("<table BORDER=0 CELLSPACING=0 CELLPADDING=0 width=100%><tr>"); +if ((typeof(operatorAuth) != "undefined") && (operatorAuth == "true")) { + document.write("<td width=\"20%\"><a href=\"/tus?op=index_operator\">Operator Operations</td>"); + lastCol -= 20; +} +if ((typeof(agentAuth) != "undefined") && (agentAuth == "true")) { + document.write("<td bgcolor=\"#e5e5e5\" width=\"20%\"><a href=\"/tus\">Agent Operations</td>"); + lastCol -= 20; +} +if ((typeof(adminAuth) != "undefined") && (adminAuth == "true")) { + document.write("<td width=\"20%\"><a href=\"/tus?op=index_admin\">Administrator Operations</td>"); + lastCol -= 20; +} +document.write("<td width=\"" + lastCol + "%\"></td>"); +document.write("</tr></table>"); + +//--> +</SCRIPT> + +<table BORDER=0 CELLSPACING=0 CELLPADDING=0 width=100%> +<tr> + <td bgcolor=#e5e5e5> </td> +</tr> +</table> +<table BORDER=0 CELLSPACING=2 CELLPADDING=0 width=100%> + <tr> + <td><i>Tokens</i></td> + </tr> + <tr> + <td>• <a href="tus?op=search">List/Search Tokens</a></td> + </tr> + <tr><td> </td></tr> + <tr> + <td><i>Certificates</i></td> + </tr> + <tr> + <td>• <a href="tus?op=search_certificate">List/Search Certificates</a></td> + </tr> + <tr><td> </td></tr> + <tr> + <td><i>Activities</i></td> + </tr> + <tr> + <td>• <a href="tus?op=search_activity">List/Search Activities</a></td> + </tr> + <tr> + <td></td> + </tr> + <tr><td> </td></tr> + <tr> + <td><i>Advanced Configuration</i></td> + </tr> + <SCRIPT type="text/JavaScript"> + <!-- + var target_array = agent_target_list.split(","); + for (var i=0; i< target_array.length ; i++) { + document.write("<tr><td>• <a href=\"tus?op=agent_select_config&type=" + target_array[i] + "\">" + + target_array[i].replace(/_/g, " ") + "</a></td> </tr>"); + } + //--> + </SCRIPT> + +</table> +<HR NOSHADE SIZE=1> +<DIV ALIGN=RIGHT> +</BODY> +</HTML> |