hola!!! necesito su ayuda estoy tratando de hacer una pagina me valide proyectos pero al hora de validarlos todos esos proyectos me mande traer una pagina o un link que me pida el password del usuario pero que sea el mismo de ingreso a dicha pagina y asi al validarlo me muestre Q los proyectos han sido validados por esa pérsona y que me muestre hasta el final de la pagina el nombre de la parsona que los valido y la fecha dddmmmaaa
este es mi codigo al mandar traer la pagina o popup para el password
Código ASP:
Ver original<body><script language=javascript>
<!--//BEGIN Script
function link1(url) {
link = window.open(url,"Link","toolbar=NO,location=NO,directories=NO,status=NO,menubar=NO,scrollbars=NO,resizable=YES,width=300,height=290,left=380,top=80");
}
//END Script-->
</script>
</body>
<%if rs("perfil_usu")="administrador" or rs("perfil_usu")="captura" then%>
<div align="center">
<fieldset style="width:50%">
<legend>Aprobacion Master Plan</legend>
<table width="303" border="0" align="center">
<tr>
<td width="150" align="left">Master Plan Aprobado por: </td>
</tr>
</table>
<%end if%>
</fieldset>
</div>
<p align="center">
<%if rs("perfil_usu")="administrador" then%>
<input type="button" name="Aprobar Master Plan" id="Aprobar Master Plan" value="Aprobar Master Plan" onClick="link1('http://valp-page.la.pg.com/Proyectosi/Aprobar.asp')"/>
<%end if%>
este es mi codigo de la pagina de password :::
Código ASP:
Ver original</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sistema de Proyectos</title>
<script language="javascript">
function focos(){
document.formidentifica.txtlgn.focus();
}
function logeo()
{
document.formidentifica.action="logeo_Aprobar.asp";
document.formidentifica.submit();
}
function cancelar()
{
document.formidentifica.action="Aprobar.asp";
document.formidentifica.submit();
}
</script>
<style>
#txtlgn , #txtpwd
{
text-transform:uppercase;
}
</style>
</head>
<body bgcolor="#F1ECC7" onload="focos()">
<table width="85%" height="302" border="0" cellpadding="3" cellspacing="0">
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="217">
<table width="44%" height="134" border="1" align="center" bgcolor="#F4F8FF">
<tr>
<td height="128"><form id="form1" name="form1" method="post" action="Aprobar_login1.asp">
<table width="98%" height="122" border="0" align="right">
<tr>
<td width="30%" class="style2"> </td>
<td width="68%"><label></label></td>
<td width="2%" rowspan="2"></td>
</tr>
<tr>
<td height="22" class="style2"> <div align="center" class="style3">PASSWORD:</div></td>
<td><label>
<div align="left">
<input type="password" name="pass" />
</div>
</label></td>
</tr>
<tr>
<td height="24" colspan="3">
<div align="center">
<input type="submit" name="Submit" value="Enviar" />
</div>
</tr>
<tr>
<td height="20" colspan="3" class="error"><div align="center"><%=request.QueryString("mensaje")%></div></td>
</tr>
</table>
</form> </td>
</tr>
</table>
<hr width="30%" color="#006699" />
<p align="center">*Nota: El Password para ingresar al sistema, es el Password de intranet.*</p> </td>
</tr>
</table>
</td>
</tr>
</table>
y este es mi codigo de logeo q valida al usuario y contraseña pero solo necesito contraseña::: y al hor de q le de enviar o m valide el password la pagina me muestre la persona que lo valido y la fecha::::
Código ASP:
Ver original</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sistema de Proyectos</title>
<script language="javascript">
function focos(){
document.formidentifica.txtlgn.focus();
}
function logeo()
{
document.formidentifica.action="logeo_Aprobar.asp";
document.formidentifica.submit();
}
function cancelar()
{
document.formidentifica.action="Aprobar.asp";
document.formidentifica.submit();
}
</script>
<style>
#txtlgn , #txtpwd
{
text-transform:uppercase;
}
</style>
</head>
<body bgcolor="#F1ECC7" onload="focos()">
<table width="85%" height="302" border="0" cellpadding="3" cellspacing="0">
<tr>
<td height="18"> </td>
</tr>
<tr>
<td height="217">
<table width="44%" height="134" border="1" align="center" bgcolor="#F4F8FF">
<tr>
<td height="128"><form id="form1" name="form1" method="post" action="Aprobar_login1.asp">
<table width="98%" height="122" border="0" align="right">
<tr>
<td width="30%" class="style2"> </td>
<td width="68%"><label></label></td>
<td width="2%" rowspan="2"></td>
</tr>
<tr>
<td height="22" class="style2"> <div align="center" class="style3">PASSWORD:</div></td>
<td><label>
<div align="left">
<input type="password" name="pass" />
</div>
</label></td>
</tr>
<tr>
<td height="24" colspan="3">
<div align="center">
<input type="submit" name="Submit" value="Enviar" />
</div>
</tr>
<tr>
<td height="20" colspan="3" class="error"><div align="center"><%=request.QueryString("mensaje")%></div></td>
</tr>
</table>
</form> </td>
</tr>
</table>
<hr width="30%" color="#006699" />
<p align="center">*Nota: El Password para ingresar al sistema, es el Password de intranet.*</p> </td>
</tr>
</table>
</td>
</tr>
</table>
y por ultimo mi funcion de aprobar logeo paro slo necesito el password
Código ASP:
Ver original<%
mensaje="Usuario o Contraseña invalida."
correo=request.Form("correo")
pass=request.Form("pass")
texto="Login invalido"
correo=replace(correo,"'","")
pass=replace(pass,"'","")
SQL="SELECT * FROM proy_usuarios WHERE login_usu='"&correo&"' and activo='1' "
response.Write(sql)
'response.End()
set RS = prycxn.execute(SQL)
if RS.eof then
response.Redirect("Aprobar_login.asp?mensaje=Usuario no registrado o Usuario no activo")
else
if pass = "proyectosI2010" then
Session("passo")=pass
Session("usuario")=correo
Session("perfil")=rs("privilegio")
response.Redirect("ProyAsp/PryPrincipal.asp")
else
Set XMLHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
XMLHttp.open "GET", "https://wirekey.pg.com/xgdsauth/xlogon.plx?xusr="&correo&"&xpwd="&pass&"", false
XMLHttp.send()
Set xmldoc = Server.CreateObject("Microsoft.XMLDOM")
xmldoc.async = false
xmldoc.load(XMLHttp.responseBody)
if xmldoc.parseError.errorCode=0 then
Set nodeList = xmldoc.documentElement.getElementsByTagName("results")
Set node = nodeList(0)
messageCode = node.ChildNodes(0).Text
if messageCode = 0 then
Session("usuario")=correo
Session("idUsuario")=rs("id_usu")
Session("perfil")=rs("perfil")
session("autoridad")=rs("perfil_usu")
response.Redirect("ProyAsp/PryPrincipal.asp")
else
response.Redirect("Aprobar.asp?mensaje=Password invalido")
end if
else
response.Redirect("Aprobar.asp?mensaje=Password invalido")
end if
end if
end if
%>
esta confuso