Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/09/2003, 14:03
jcantomarin
 
Fecha de Ingreso: agosto-2003
Ubicación: Cancun
Mensajes: 97
Antigüedad: 20 años, 8 meses
Puntos: 0
este es el código completo... espero puedas hecharle un ojo....

<html>
<head>
<title>VALIDACION DE USUARIO</title>

<?php
include("inc_classes.php");
?>
<script language=javascript>
function recibir(a, b)
{
document.forms.hoteles.zona.value = a;
document.forms.hoteles.tarifa.value = b;
document.forms.hoteles.submit();
ventana.close();
}
var ventana = false;
function abrir()
{
var popup = "<html><head><title>CRITERIOS DE FILTRADO</title></head><body bgcolor=lavender>";
popup += "<form name=enviar action='javascript: ";
popup += "opener.recibir(enviar.a.value, enviar.b.value)' >";
popup += "<div align=center>";
popup += "<font face=arial size=1 color=#000080>ZONA &nbsp;";
popup += "<input type=text name=a size=5 maxlength=3 style='background: white;border:1px solid blue;color:red;font-weight:normal;font-size:8pt'>&nbsp;&nbsp;"
popup += "<font face=arial size=1 color=#000080>TIPO TARIFA &nbsp;";
popup += "<input type=text name=b size=5 maxlength=3 style='background: white;border:1px solid blue;color:red;font-weight:normal;font-size:8pt'>"
popup += "<hr>"
popup += "<input type=submit></form></body></html>";
popup += "</div>";
ventana = window.open('popup','','width=500,height=200,left= 150,top=150');
ventana.document.writeln(popup);
ventana.document.close();
}
</script>
</head>

<body bgcolor="lavender">
<form name=hoteles method="get">
<input type=text name=zona>
<input type=text name=tarifa>
<input type="submit" name="submit" value="submit" class="boton" style="border: 0px double black; color: lavender;background-color:lavender;cursor:normal">

<div align=center>
<table width=600 border=1>
<tr>
<td width=200>
<div align=center>
<input type="button" class="boton" name="submit" value=" A G R E G A R " OnClick="window.location='contrato.php'">
</div>
</td>
<td width=200>
<div align=center>
<input type="button" class="boton" name="submit" value="&nbsp;&nbsp;&nbsp; B U S C A R &nbsp;&nbsp;" OnClick="abrir()">
</div>
</td>
<td width=200>
<div align=center>
<input type="button" class="boton" name="submit" value="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S A L I R &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="window.location='valusr.php'">
</div>
</td>
</tr>
</table>
<hr>
</div>
</form>
</body>
</html>

--------------------------------------------------------

inc_classes.php

<style type="text/css">
BODY
{
scrollbar-3d-light-color:yellow;
scrollbar-arrow-color:darkblue;
scrollbar-base-color:lightgrey;
scrollbar-dark-shadow-color:grey;
scrollbar-face-color:lightgrey;
scrollbar-highlight-color:lightblue;
scrollbar-shadow-color:black;
}

.boton
{
font-family: Verdana, sans-serif;
font-size: 13px;
color: black;
border: 1px double black;
background-color: lightsteelblue;
font-weight: bold;
cursor: hand;
}
</style>

fin inc_classes.php --------------------------------------------------

(caricatos)
el marcador esta por incrementar, ya te considero mi mentor!!
saludos

Última edición por jcantomarin; 14/09/2003 a las 12:24