· 6 years ago · Dec 06, 2019, 08:26 AM
1
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
3 <head>
4
5<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <noscript>
6 <meta http-equiv="refresh" content="0;url=/no_javascript.php" />
7 </noscript>
8
9 <meta http-equiv="expires" content="0" />
10 <meta http-equiv="pragma" content="no-cache" />
11 <meta name="description" content="System Management Homepage" />
12 <link rel="stylesheet" type="text/css" href="css/common.css" media="screen, projection" />
13 <link rel="stylesheet" type="text/css" href="css/logon.css" media="screen, projection" />
14 <!--[if lte IE 6]>
15 <link rel="stylesheet" type="text/css" href="../css/common_ie.css" media="screen, projection" />
16 <![endif]-->
17 <script type="text/javascript" src="js/global.js"></script>
18 <script type="text/javascript" src="js/buttonManager.js"></script>
19 <script>messages = new Array;
20
21messages[00] = "An unknown error (%originalerr%) occurred.";
22messages[01] = "<h3>Test message</h3><br>systemname:%systemname%<br>originalerr:%originalerr%<br>errno:%errno%<br>severity:%severity%<br>arg0:%0%<br>arg1:%1%<br>arg2:%2%<br>arg3:%3%<br>arg4:%4%</br>arg5:%5%";
23messages[02] = "User has insufficient access to perform this operation";
24
25
26//----- AA mod messages in the 100s ----
27
28messages[100] = "Username and password do not match";
29messages[101] = "Authorization required";
30messages[102] = "Kerberos login failure: Authorization required.";
31messages[103] = "Kerberos login failure: Internal server error.";
32
33//---- Config mod messages in the 200s ----
34
35messages[200] = "User has insufficient access to perform this operation";
36messages[201] = "An error occurred while restarting the System Management Homepage. All configuration changes made may not be seen until the System Management Homepage is successfully restarted (or the system is rebooted).";
37messages[202] = "Value successfully changed";
38messages[203] = "Unable to set value due to a problem with the HTTP request.";
39messages[204] = "Unable to set value due to a problem with the input data.";
40messages[205] = "Certificate successfully imported.";
41messages[206] = "Importing certificate failed.";
42messages[207] = "Certificate failed validation and was not imported.";
43messages[208] = "Certificate was not imported because certificate already exists.";
44messages[209] = "Certificate was not imported because certificate is expired.";
45messages[210] = "Invalid URI /proxy/GetSMHData - No argument items.";
46messages[211] = "Invalid URI /proxy/GetSMHData - No format information.";
47messages[212] = "Invalid URI /proxy/GetSMHData - No configuration items.";
48
49//---- UI mod messages in the 300s ----
50messages[301] = "A certificate for server %2% was not found in the trusted certificates list.";
51messages[302] = "The certificate for server %2% was successfully removed from the trusted certificates list.";
52messages[303] = "An error occurred while removing the certificate for server %2% from the trusted certificates list.";
53messages[304] = "No server name was specified to obtain a server cert to add to the trusted certs list.";
54messages[305] = "Unable to get information on server %2%.";
55messages[306] = "Unable to create a socket to communicate to server %2%.";
56messages[307] = "Unable to obtain a certificate from server %2%. Verify if the server is reachable and running Insight Manager.";
57messages[308] = "Problems occurred while obtaining certificate from server %2%.";
58messages[309] = "Server %2% did not return a certificate.";
59messages[310] = "Unable to retrieve the certificate for the designated Management Server <br><br><a class=helplink href=%2%>Continue</a>";
60messages[311] = "User has insufficient access rights. You must be an administrator to import a Management Server certificate, thus the certificate was not added to the trusted certificates list. Select the link below to continue. <br><br><a class=helplink href=%2%>Continue</a>";
61messages[312] = "Management Server's certificate was successfully added to the trusted certificates list. Select the link below to continue. <br><br><a class=helplink href=%2%>Continue</a>";
62messages[313] = "This page is only supported in the context of the integrated user interface.";
63messages[314] = "The integrated user interface will be loaded when OK is pressed.";
64
65
66//--- BC mod messages in the 400s ---
67
68//--- PKCS mod messages in the 500s ---
69
70messages[500] = "PKCS #10 Certificate Request successfully created";
71messages[501] = "An error occurred while creating the PKCS #10 Certificate Request";
72
73messages[511] = "PKCS #10 Certificate Request successfully created. It is located in the file <b>%2%</b> on %systemname%";
74messages[512] = "PKCS #7 Certificate import successful";
75
76messages[520] = "Bad HTTP request format for PKCS #7 import";
77messages[521] = "PKCS #7 Certificate import failed";
78messages[522] = "Unable to read PKCS #7 data in HTTP request";
79messages[523] = "Unsupported encryption type for PKCS #7 import request";
80messages[524] = "Unsupported HTTP request type for PKCS #7 import";
81messages[525] = "O or OU field length cannot exceed 64 characters";
82
83messages[530] = "No PKCS #7 data provided";
84
85//--- Help mod messages in the 600s ---
86
87messages[600] = "Unable to locate sys-map.properties file for Application ID %2%.";
88messages[601] = "Invalid %2% %3% information in the query.";
89
90//--- Error mod messages in the 700s ---
91
92messages[700] = "Error";
93messages[701] = "Information";
94messages[702] = "Success";
95messages[703] = "Warning";
96
97
98//--------------------------------------------------------------------------------------
99
100//HPUX BEGIN
101//--- smhrun messages in the 900s ---
102
103messages[900] = "No authorization.";
104messages[901] = "Invalid target program.";
105messages[902] = "Invalid user.";
106messages[903] = "Unable to execute %2%";
107//HPUX END
108</script>
109 <script language="JavaScript" type="text/javascript" src="js/error_table.js"></script>
110 <script language="JavaScript" type="text/javascript" src="js/ui.js"></script>
111
112 <script language="JavaScript">
113 if(!document.cookie) {
114 alert("Your browser do not support cookies.\nTo access this system you must enable cookies in your browser.");
115 }
116 </script>
117
118<script language="JavaScript" type="text/javascript">
119var nameArray = new Array;
120var fullsystemname="";
121var FramesAreThere=false;
122var errno = -1;
123var theme_ui="false";
124var username="";
125var myLocation = location.search.replace(/(<([^>]+)>)/ig, "");
126defineError();
127
128// HP-UX
129if(null!=parent && "undefined"!=typeof( parent.frames.CHPAppletFrame )){
130 try{
131 parent.location.href = window.location.href;
132 } catch(err){}
133}
134// HP-UX
135
136fullsystemname = "servert1m";
137systemname = "servert1m";
138smhversion = "HP System Management Homepage v6.2.0.13";
139smhcopyright = "©2004-2010 Hewlett-Packard Development Company, L.P.";
140loginmsg = null;
141loginjpg = null;
142custom_ui = "False";
143allow_session_alive = "False";
144theme_ui = "Blue";
145
146pageColumns = 3; // # of columns to put in a page
147boxRows = 6;
148
149pathToShow = pageToShow = "";
150
151FramesAreThere = false;
152pathToShow = pageToShow = "";
153
154if(null!=parent && "undefined"!=typeof( parent.frames.CHPAppletFrame )) {
155 FramesAreThere = true;
156 pathToShow = new String(parent.frames.CHPAppletFrame.chpRequest);
157 pageToShow = new String(parent.frames.CHPAppletFrame.chpPage);
158 //escape any active stuff out of the pathToShow and pageToShow
159 pathToShow = pathToShow.replace( /[<>]/g, ' ');
160 pageToShow = pageToShow.replace( /[<>]/g, ' ');
161}
162
163// do check for Nimbus frame structure
164inNimbus = false;
165
166for(framePtr = window; !inNimbus; framePtr = framePtr.parent)
167{
168 if( "string"==typeof(framePtr.name) && "webAgentTrustCfg" == framePtr.name)
169 {
170 inNimbus = true;
171 FramesAreThere = false; // just in case - we don't want to overwrite a nimbus frameset
172 }
173
174 if(top == framePtr) break; // break out after checking top regardless of outcome
175}
176
177
178
179isNetscape = navigator.appName == "Netscape";
180
181smallStatusIcons = new Array( "", "/images/status/unknown_11.gif", "/images/status/normal_11.gif", "/images/status/minor_11.gif", "/images/status/major_11.gif", "/images/status/info_11.gif", "/images/status/warning_11.gif", "/images/status/disabled_11.gif", "/images/status/critical_11.gif" );
182statusIcons = new Array( "", "/images/status/unknown_15.gif", "/images/status/normal_15.gif", "/images/status/minor_15.gif", "/images/status/major_15.gif", "/images/status/info_15.gif", "/images/status/warning_15.gif", "/images/status/disabled_15.gif", "/images/status/critical_15.gif" );
183largeStatusIcons = new Array( "", "/images/status/unknown_20.gif", "/images/status/normal_20.gif", "/images/status/minor_20.gif", "/images/status/major_20.gif", "/images/status/info_20.gif", "/images/status/warning_20.gif", "/images/status/disabled_20.gif", "/images/status/critical_20.gif" );
184largestStatusIcons = new Array( "", "/images/status/unknown_32.gif", "/images/status/normal_32.gif", "/images/status/minor_32.gif", "/images/status/major_32.gif", "/images/status/info_32.gif", "/images/status/warning_32.gif", "/images/status/disabled_32.gif", "/images/status/critical_32.gif" );
185
186statusColors = new Array( "#999999", "#0000FF", "#00CC00", "#FFFF00", "#FF9900", "#3F5584", "#48BCBC", "#BCBCBC", "#FE0106");
187statusClasses = new Array("statusUndefinedTitle", "statusUnknown", "statusNormal", "statusMinor", "statusMajor", "statusInformational", "statusWarning", "statusDisabled", "statusCritical");
188statusText = top.statusText;
189
190chpFrameNames = new Array( "CHPHeaderFrame", "CHPDataFrame", "CHPAppletFrame", "CHPHiddenFrame" );
191
192
193
194function arrayIndexFromStatus( status )
195{
196 var arrayIndex = 0;
197
198 if( 1<=status && 8>=status )
199 {
200 arrayIndex = status;
201 }
202
203 return arrayIndex;
204}
205
206function classFromStatus(status) {
207 return statusClasses[arrayIndexFromStatus(status)];
208}
209
210function colorFromStatus( status )
211{
212 return statusColors[ arrayIndexFromStatus( status )];
213}
214
215function imageFromStatusTable( status, statusTable, width, height ) {
216 var rc = " ";
217 var idx = arrayIndexFromStatus( status );
218 var imageSource = statusTable[idx];
219 if ("" != imageSource) {
220 rc = "<img src="+imageSource+" width=" + width + " height= " + height + " alt=\"" + statusText[idx] +"\" align='absmiddle'>";
221 } else {
222 //rc = "<img src='images/status/status_none.gif' width=" + width + " height= " + height + " alt=\"" + statusText[idx] +"\" align='absmiddle'>";
223 rc = "";
224 }
225 return rc;
226}
227
228function imageFromStatus( status )
229{
230 return imageFromStatusTable( status, statusIcons, 15, 15 );
231}
232
233function imageForTools()
234{
235 return imageForToolsWithoutStatus(15, 15 );
236}
237
238function imageForToolsWithoutStatus( width, height ) {
239 var rc = " ";
240 rc = "<img src='images/status/document_15.gif' width=" + width + " height= " + height + " align='absmiddle'>";
241 return rc;
242}
243
244
245function largeImageFromStatus( status )
246{
247 return imageFromStatusTable( status, largeStatusIcons, 20, 20 );
248}
249
250function largestImageFromStatus( status )
251{
252 return imageFromStatusTable( status, largestStatusIcons, 32, 32 );
253}
254
255function smallImageFromStatus( status )
256{
257 return imageFromStatusTable( status, smallStatusIcons, 11, 11 );
258}
259
260function textFromStatus( status )
261{
262 return statusText[ arrayIndexFromStatus( status )];
263}
264
265
266function justLoadPage( pathIn, pageIn, urlIn, targetname )
267{
268 var url;
269
270 url = "/chplinkstrt.php?chppath="+escape( pathIn ) +
271 "&chppage=" + escape( pageIn ) +
272 "&chpurl=" + escape( urlIn ) +
273 "&chptarget=" + escape( targetname );
274
275 if(null!=parent && "undefined"!=typeof( parent.frames.CHPAppletFrame )) {
276 parent.frames.CHPAppletFrame.location.href = url ;
277 } else {
278 document.location = urlIn;
279 }
280}
281
282
283function gotoPage( pathIn, pageIn, urlIn, targetname )
284{
285 var url;
286
287 if(""!=pageIn)
288 {
289 justLoadPage( pathIn, pageIn, urlIn, targetname );
290 return;
291 }
292
293 url = "/chpstrt.php?chppath="+escape( pathIn );
294 if(""!=pageIn)
295 url = url + "&chppage=" + escape( pageIn );
296
297 if(null!=parent && "undefined"!=typeof( parent.frames.CHPAppletFrame )) {
298 parent.frames.CHPAppletFrame.location.href = url ;
299 } else {
300 document.location = urlIn;
301 }
302 //parent.frames.CHPAppletFrame.location.replace( url );
303}
304
305
306function gotoPath( pathIn )
307{
308 gotoPage( pathIn, "" );
309}
310
311
312function inCHPFrame()
313{
314 var thisFrame = window.name;
315 var i = chpFrameNames.length;
316 var matched = false;
317
318 for(i--; i>=0 && !matched; i--)
319 {
320 matched = ( thisFrame == chpFrameNames[i] );
321 }
322
323 if(inNimbus)
324 matched = true; // allow display in a Nimbus frame
325
326 return matched;
327}
328
329
330function onlyInCHP()
331{
332 if(!inCHPFrame())
333 {
334 alert(messages[313]+"\n\n"+messages[314]);
335
336 location.replace("/");
337 }
338}
339
340
341
342function refreshLink() {
343 var rc;
344 var refreshcode = 0;
345 var refreshText = "Refresh";
346 //var refreshScript = "gotoPage(\"" + pathToShow + "\", \"" + pageToShow + "\")";
347 var refreshScript;
348 //refreshScript = "location.replace( location.href )";
349 refreshScript = "parent.frames.CHPAppletFrame.document.location.reload(); return false;";
350/*
351Commented out - this part of code was imported from HP-UX but it was not possible
352to use it within Tremor for now because it was generating a error
353 if(FramesAreThere)
354 {
355 refreshcode = parent.frames.CHPAppletFrame.autorefreshStatus();
356
357 if(1==refreshcode)
358 {
359 refreshText = "automatic";
360 }
361 else if (2==refreshcode)
362 {
363 refreshText = "automatic (disabled for this page)";
364 }
365 }
366 else
367 {
368 refreshScript = "location.replace(location.href)";
369 }
370*/
371 rc = "<A HREF='' title='Refresh current page.' class='icon refreshPage' onclick='" + refreshScript + ";return false;' onmouseover='status=\"Refresh this frame\";' onmouseout='status=\"\";' style='color: white;'>"+refreshText+"</a>";
372
373 return rc;
374}
375
376
377
378function writePageHeader()
379{
380
381
382 if(FramesAreThere)
383 {
384 document.writeln("<table width=100% border=0 cellspacing=0 cellpadding=10><tr><td>");
385 }
386
387}
388
389function writePageFooter()
390{
391 var now=new Date();
392 smhdate = now.toLocaleString();
393 document.writeln(
394 "<hr width='100%'>",
395 "<center>",
396 smhversion,
397 " ",
398 smhcopyright,
399 "</center>"
400 );
401
402 if(FramesAreThere)
403 {
404 document.writeln("</td></tr></table>");
405 }
406}
407
408// HPUX-Added: Get parent informations for footer
409function writePageFooterFromParent()
410{
411 document.writeln(
412 "<hr>",
413 "<table border=0 width=100%>",
414 "<tr>",
415 "<td align=left class=pageheader>",
416 smhversion,
417 "</td>",
418 "<td align=right class=pageheader>",
419 smhcopyright,
420 "</td>",
421 "</tr>",
422 "</table>"
423 );
424
425 if(FramesAreThere)
426 {
427 document.writeln("</td></tr></table>");
428 }
429}
430// HPUX END
431function BlankIfNoFrames()
432{
433
434 if(!FramesAreThere)
435 {
436 document.location.replace("/chpblank.htm");
437 }
438}
439
440
441function BlankIfCHPNotReady()
442{
443 var okToContinue = false;
444
445 if(FramesAreThere)
446 {
447 if( "undefined" != typeof(parent.frames.CHPAppletFrame.chpReady))
448 {
449 okToContinue = parent.frames.CHPAppletFrame.chpReady;
450
451 }
452 }
453
454 if(true!=okToContinue)
455 {
456 document.location.replace("/chpblank.htm");
457 }
458}
459
460
461function ucfirst (stringin)
462{
463 return stringin.substring(0,1).toUpperCase() + stringin.substring(1);
464}
465
466function findPosX(obj) {
467 var curleft = 0;
468 if (obj.offsetParent) {
469 while(1) {
470 curleft += obj.offsetLeft;
471 if(!obj.offsetParent) {
472 break;
473 }
474 obj = obj.offsetParent;
475 }
476 } else if(obj.x) {
477 curleft += obj.x;
478 }
479 return curleft;
480}
481
482 function findPosY(obj)
483 {
484 var curtop = 0;
485 if(obj.offsetParent)
486 while(1)
487 {
488 curtop += obj.offsetTop;
489 if(!obj.offsetParent)
490 break;
491 obj = obj.offsetParent;
492 }
493 else if(obj.y)
494 curtop += obj.y;
495 return curtop;
496}
497
498
499function showTooltip() {
500 if (document.getElementById("tooltip").style.visibility!="hidden") {
501 document.getElementById("tooltip").style.visibility="hidden";
502 } else {
503 document.getElementById("tooltip").style.visibility="visible";
504 }
505}
506
507
508function hideLoading() {
509 parent.document.getElementById("loadingBox").style.display = "none";
510 parent.document.getElementById("loadingBox").style.visibility = "hidden";
511 parent.document.getElementById("iframeContent").style.visibility = "visible";
512}
513
514function showLoading() {
515 parent.document.getElementById("loadingBox").style.display = "block";
516 parent.document.getElementById("loadingBox").style.visibility = "visible";
517 parent.document.getElementById("iframeContent").style.visibility = "hidden";
518}
519
520function dumpVar(arr,level) {
521 var dumped_text = "";
522 if(!level) level = 0;
523
524 //The padding given at the beginning of the line.
525 var level_padding = "";
526 for(var j=0;j<level+1;j++) level_padding += " ";
527
528 if(typeof(arr) == 'object') { //Array/Hashes/Objects
529 for(var item in arr) {
530 var value = arr[item];
531
532 if(typeof(value) == 'object') { //If it is an array,
533 dumped_text += level_padding + "'" + item + "' ...\n";
534 dumped_text += dumpVar(value,level+1);
535 } else {
536 dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
537 }
538 }
539 } else { //Stings/Chars/Numbers etc.
540 dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
541 }
542 return dumped_text;
543}
544
545function getWindowWidth() {
546 var windowWidth = 0;
547 if (typeof(window.innerWidth) == "number") {
548 windowWidth = window.innerWidth;
549 }
550 else {
551 if (document.documentElement && document.documentElement.clientWidth) {
552 windowWidth = document.documentElement.clientWidth;
553 }
554 else {
555 if (document.body && document.body.clientWidth) {
556 windowWidth = document.body.clientWidth;
557 }
558 }
559 }
560 return windowWidth;
561};
562
563function ip_truncate_zeroes(ip_address) {
564 // remove leading zeroes from first octet
565 while (ip_address.substr(0,1) == '0' && ip_address.length>1) {
566 ip_address = ip_address.substr(1,ip_address.length);
567 }
568 // remove leading zeroes from other octets
569 for (i=0; i<=9; i++) {
570 while (ip_address.indexOf(".0"+i)!=-1) {
571 ip_address = ip_address.replace(".0"+i, "."+i);
572 }
573 }
574 return ip_address;
575}
576document.writeln("<title>HP System Management Homepage - "+fullsystemname+"</title>");
577useCustomColor();
578
579// HP-UX removed
580//if(document.referrer != "")
581//document.cookie = 'curlocation-'+username+'=; path=/';
582// END HP-UX removed
583
584//block back button after login
585window.history.forward(1);
586//--- check if an SMH session cookie is found ---
587LoginCookieFound = false;
588
589if ((username != "") && (username != "unknown") && (username != "hpsmh_anonymous") && (username != "hpsmh_local_anonymous")) {
590 window.document.location.href = "https://" + location.hostname + ":2381";
591}
592
593if(""!=document.cookie) {
594 logincookieindex = document.cookie.indexOf("Compaq-HMMD=");
595 if(-1 != logincookieindex) {
596 LoginCookieFound = true;
597 }
598}
599
600function verifyLogin() {
601 var rc = false;
602 if( "https:" == document.location.protocol ) { // only submit if protocol is https
603 rc = true;
604 } else {
605 alert( "Login is only allowed on an SSL/HTTPS connection" );
606 }
607 return rc;
608}
609
610//--- parse the RedirectUrl and RedirectQueryString from the query string
611nameValuePairArray = myLocation.substring(1).split("&");
612nameArray["RedirectUrl"]="";
613nameArray["RedirectQueryString"]="";
614
615for(i=0; i<nameValuePairArray.length; i++) {
616 nameAndValue = nameValuePairArray[i].replace(/</g, '%3C');
617 nameAndValue = nameAndValue.replace(/>/g, '%3E');
618 nameAndValue = nameAndValue.split("=");
619
620 if(2 == nameAndValue.length) {
621 nameArray[nameAndValue[0]] = nameAndValue[1];
622 }
623}
624if ((nameArray[ "RedirectUrl" ] == "/chpstrt.php") ||
625(nameArray[ "RedirectUrl" ] == "/proxy/smhui/chptree.htm") ||
626(nameArray[ "RedirectUrl" ] == "/chphead.php") ||
627(nameArray[ "RedirectUrl" ] == "/chpblank.htm") ||
628(nameArray[ "RedirectUrl" ] == "/chpdata.php") ||
629(nameArray[ "RedirectUrl" ].indexOf("/proxy/SetSMHData")!=-1))
630{
631 nameArray[ "RedirectUrl" ] = "/";
632}
633
634
635function getAbsPos(elt,which) {
636 iPos = 0;
637 while (elt != null) {
638 iPos += elt["offset" + which];
639 elt = elt.offsetParent;
640 }
641 return iPos;
642}
643
644function getAbsX(elt) { return (elt.x) ? elt.x : getAbsPos(elt,"Left"); }
645function getAbsY(elt) { return (elt.y) ? elt.y : getAbsPos(elt,"Top"); }
646
647function adjustTooltipPos() {
648 document.getElementById("tooltip").style.left = findPosX(document.getElementById("helpButton"))-160;
649 document.getElementById("tooltip").style.top = findPosY(document.getElementById("helpButton"))-10;
650}
651</script>
652
653</head>
654
655<body style="background: #CCC; margin: 0px; border: 0px; padding: 0px;" onLoad="adjustTooltipPos();">
656
657<noscript>
658 <!-- in case META redirect is also disabled -->
659 <p><br>
660 <table align="center" cellspacing="0" style="width: 60%; padding: 5px;">
661 <tr style="background-color: #666666;">
662 <td style="color: white;"><strong>Warning</strong></td>
663 </tr>
664 <tr style="background-color: #CCCCCC;">
665 <td>System Management Homepage requires Javascript.<br>
666 Please enable Javascript in your browser and then click in the following link:<br>
667 <a href="/">Return to System Management Homepage</a>
668 </td>
669 </tr>
670 </table>
671</noscript>
672<base target="_self">
673
674<table border="0" cellpadding="0" cellspacing="0" style="height: 100%">
675<tr><td style="font: 11px arial;">
676
677<script language="JavaScript" type="text/javascript">
678 //--- create the new location string with
679 //--- cpqlogin.php and the original query string
680 newlocation = "/cpqlogin.htm" + myLocation; /* JAGaf86592 Renamed cpqlogin.php for cpqlogin.htm*/
681 // close when is out window (eg. help window)
682 if (window.opener) {
683 if (isNetscape) {
684 try{
685 newlocation = "/cpqlogin.htm"; /* JAGaf86592 Renamed cpqlogin.php for cpqlogin.htm*/
686 window.opener.location.replace( newlocation );
687 window.opener.focus();
688 window.close();
689 }
690 catch(e) {
691 newlocation = "";
692 }
693 } else {
694 try {
695 var strLocation = new String(window.opener.location);
696 if (strLocation.indexOf("mxportal") == -1){
697 newlocation = "/cpqlogin.htm";/* JAGaf86592 Renamed cpqlogin.php for cpqlogin.htm*/
698 window.opener.location.replace( newlocation );
699 window.opener.focus();
700 window.close();
701 }
702 }
703 catch(e) {
704 newlocation = "";
705 }
706 }
707 }
708 if(FramesAreThere) {
709 // we need to load the login page in the parent frame
710 window.parent.location.href = newlocation;
711 }
712</script>
713
714<script>
715 if (custom_ui=="true") {
716 document.writeln('<div id="header" style="background-image: url(/images/photo.jpg);">'); } else {
717 document.writeln('<div id=\"header\" style=\"background-image: url(/images/photo.jpg);\">');
718 }
719document.writeln('<img src="/images/hp_logo_invert.gif" width="94" height="70" id="hplogo">');
720 document.writeln('<h2>System Management Homepage</h2>');
721 document.writeln('<h3>Sign In</h3>');
722document.writeln('</div>');
723document.writeln('<div id="content">');
724 document.writeln('<form name="loginform" action="/proxy/ssllogin" method="POST" onsubmit="return verifyLogin();">');
725 document.writeln("<input type=hidden name=redirecturl value=\"", nameArray["RedirectUrl"], "\">");
726 document.writeln("<input type=hidden name=redirectquerystring value=\"", nameArray["RedirectQueryString"], "\">");
727 document.writeln('<div id="helpContext">');
728 document.writeln('<div class="bWrapperUp"><div><div><input type="button" name="helpButton" id="helpButton" value="?" class="hpButtonSmall" onclick="showTooltip();return false;" tabindex="5" /></div></div></div>');
729 document.writeln('</div>');
730 document.writeln('<div class="formLine">');
731 document.writeln('<label for="userName">User Name:</label>');
732 document.writeln('<input type="text" name="user" id="user" class="textbox" tabindex="1" />');
733 document.writeln('</div>');
734 document.writeln('<div class="formLine">');
735 document.writeln('<label for="password">Password:</label>');
736 document.writeln('<input type="password" name="password" id="password" class="textbox" tabindex="2" />');
737 document.writeln('</div>');
738 document.writeln('<div class="formLine">');
739 document.writeln('<div class="buttonSet">');
740 document.writeln('<div class="bWrapperUp"><div><div><input type="reset" name="clearButton" id="clearButton" value="Clear" class="hpButton" tabindex="4" /></div></div></div>');
741 document.writeln('<div class="bWrapperUp bEmphasized"><div><div><input type="submit" id="logonButton" value="Sign in" class="hpButton" tabindex="3" /></div></div></div>');
742 document.writeln('</div>');
743 document.writeln('<div class="clearFloat"></div>');
744 document.writeln('</div>');
745 document.writeln('<div class="formLine">');
746 if (errno >= 100 && errno <= 199) {
747 document.writeln("<p class='error'><strong>ERROR: "+messages[errno]+"</strong></p>");
748 }
749 document.writeln('</div>');
750 document.writeln('<div class="formLine">');
751 document.writeln('<p class="error" style="color: black; font-weight: lighter;"><strong>'+systemname+' is a monitored private system. Do not attempt to login unless you are an authorized user.</strong></p>');
752 document.writeln('</div>');
753 document.writeln('<div class="formLine">');
754 document.writeln('<p class="error" style="text-overflow:ellipsis; overflow:hidden; ">');
755 document.writeln('<font color="black" style="font-family: Arial; font-size: 10px;">');
756 if (custom_ui=="true") {
757
758 }
759 document.writeln('</font></p><br>');
760 document.writeln('</div>');
761 document.writeln('</div>');
762 document.writeln('</form>');
763
764document.writeln('</div>');
765 <!--
766 reconcileEventHandlers();
767 //-->
768
769<!-- NOTE: hidden div tooltip to be made visible by Javascript -->
770document.writeln('<div id="tooltip" style="position:absolute; width: 150px; top:0; left:0; background:#ffffff; border-color:#666666; border-style:solid; border-width:1px 1px 1px 1px; visibility: hidden;">');
771 document.writeln('<div style="background: #666666; color: white; font: bold 11px arial; height: 12px; padding: 1px 1px 1px 1px;">');
772 document.writeln('<table>');
773 document.writeln('<tr>');
774 document.writeln('<td style="color: white; font: bold 11px arial;"><font color="white">Sign In Help</font></td>');
775 document.writeln('<td style="color: white; font: bold 11px arial;"><a href="#null"><font color="white" style="color: white;" onClick="showTooltip();return false;">X</a></td>');
776 document.writeln('</tr>');
777 document.writeln('</table>');
778 document.writeln('</div>');
779 document.writeln('<div style="padding: 5px 5px 5px 5px">Note: This version of the HP System Management Homepage uses host operating system authentication.');
780 document.writeln('</div>');
781document.writeln('</div>');
782
783document.forms["loginform"].reset();
784document.forms.loginform.elements["user"].focus();
785//Activate buttons
786reconcileEventHandlers();
787</script>
788</td>
789</tr>
790<tr>
791<td style="font: 11px arial;">
792<div id="copyright">
793 <script language="JavaScript" type="text/javascript">
794 document.writeln(smhversion+"<br>"+smhcopyright);
795 </script>
796</div>
797</td>
798</tr>
799</table>
800</body>
801</html>