Files
gateway-mnp-dbc/dbcmnpsrc/FE/mnpdev/crontab/web/jsp/GUI/LoginCrontab.jsp

192 lines
4.7 KiB
Plaintext

<%@page import = "java.util.*" %>
<%@page import = "mnp.crontab.utility.ui.Res" %>
<html>
<head>
<title>Pagina di verifica delle impostazioni di sicurezza</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="GUIStyle.css" >
<SCRIPT language="Javascript">
function inviaDatiClient() {
var usernameclient;
var locator;
var service;
var properties;
var e;
var p;
var ip;
var hn;
try {
usernameclient = new ActiveXObject("WScript.Network").UserName;
locator = new ActiveXObject ("WbemScripting.SWbemLocator");
service = locator.ConnectServer(".");
properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration");
e = new Enumerator (properties);
for (;!e.atEnd();e.moveNext ()) {
p = e.item ();
if (p.IPAddress!=null ) {
document.forms["loginForm"].elements["hostnameclient"].value = p.DNSHostName;
document.forms["loginForm"].elements["ipclient"].value = p.IPAddress(0);
}
}
document.forms["loginForm"].elements["utenzaclient"].value = usernameclient;
}
catch(e){
alert("Impossibile recuperare gli ActiveX del client: " + e.message);
}
document.forms["loginForm"].elements["info_client"].value="YES";
document.forms["loginForm"].submit();
}
function doSubmit(){
document.forms["loginForm"].submit();
}
</SCRIPT>
<%
System.out.println("Sono dentro la LoginCrontab.jsp");
%>
</head>
<BODY class = "normal">
<%
Res.ApplContext = request.getContextPath();
Res.ReqURL = "https://" + request.getServerName()+":"+
request.getServerPort()+
request.getContextPath();
//Res.ResAbsPath = pageContext.getServletContext().getInitParameter("applPath");
//if(true) throw new Exception("pippo");
System.out.println("Res.ApplContext :"+Res.ApplContext);
System.out.println("Res.ReqURL : "+Res.ReqURL);
// System.out.println("Res.ResAbsPath : "+Res.ResAbsPath);
// if(request.getParameter("Send")!=null) {
//System.out.println("non faccio nulla....");
//}%>
<table width = "100%" class = "tableBannerRosso" border = 0>
<tr>
<td align = "left" width = "100%"><IMG border = 0 SRC ="/MNP-GUI/images/banner.gif"></td>
</tr>
</table>
<table width = "100%" border = "0">
<tr>
<td HEIGHT = "100%" width = "10%" bgcolor = "#D61414" valign = "top">
</td>
<td align = "right" valign = "top" width = "90%">
<BR>
<i><b><FONT face = "Arial" color = "#455598" size = 4 weight = "700">MNP-GUI</Font></b></i>
<form name="loginForm" method="post" action="/MNP-GUI/Login.do" target="_self">
<INPUT type="hidden" name="ipclient">
<INPUT type="hidden" name="hostnameclient">
<INPUT type="hidden" name="utenzaclient">
<INPUT type="hidden" name="info_client">
<!--
<TABLE border = 0 align = "center" width = "100%">
<BR>
<TR>
<TD align = "center" colspan = "3"><font face="Arial" color="#455598" size="4"><b><u>GESTIONE ATTIVITA' MNP</u></b></font></TD>
</TR>
<TR><TD colspan = "3" >&nbsp</TD></TR>
<TR><TD colspan = "3" >&nbsp</TD></TR>
<TR>
<TD align = "center" colspan = "3" ><FONT face = "Arial" color = "#455598" size = 2><b><u>UserID :</u></b></FONT></TD>
</TR>
<TD align = "center" colspan = "3" ><input type="text" name="userID" maxlength="16" ></TD>
</TR>
<TR>
<TD align = "center" colspan = "3" ><FONT face = "Arial" color = "#455598" size = 2><b><u>Password :</u></b></FONT></TD>
</TR>
<TR>
<TD align = "center" colspan = "3" ><input type="password" name="password" maxlength="16"></TD>
</TR>
<TR><TD colspan = "3">&nbsp</TD></TR>
<TR>
<TD align = "center" colspan = "3" ><input type="submit" name="Send" value=" Log-In "></TD>
</TR>
<TR><TD colspan = "3">&nbsp</TD></TR>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
<tr><td>&nbsp</td></tr>
</TABLE>-->
<!-- </td></tr></table> -->
</form>
<!-- tabella x menu verticale-->
</td>
</tr>
<tr>
<td align = "center" width = "85%" height="116">
<!--fine tabella x menu -->
<br>
<br>
<b><i><P class = "titolo">Verifica delle impostazioni di sicurezza del browser in corso.... <br />
Se non si viene reindirizzati entro 10 secondi<a href="javascript: void doSubmit()"> Cliccare qui </a> per andare avanti.</P></i></b>
<!-- tabella x menu verticale-->
</td>
</tr>
</tr>
</table>
<!-- <hr class = "riga"> -->
<!-- tabella x menu -->
<script type="text/javascript" language="Javascript">
<!--
inviaDatiClient();
-->
</script>
</body>
</html>