Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" [PHP]"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento sin título</title> </head> <frameset rows="80,*" frameborder="no" border="0" framespacing="0"> <frame src="top_bot.php" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> <frame src="cam_cit.php" name="mainFrame" id="mainFrame" title="mainFrame" /> </frameset> <noframes><body> </body> </noframes></html>
Código PHP:
<?php
require_once("../librerias/libreria.postgres.php");
require_once("../librerias/xajax/xajax.inc.php");
include('ing_ref.php');
$xajax = new xajax();
$xajax->setCharEncoding('ISO-8859-1');
$xajax->registerFunction("carga_referido");
$xajax->processRequests();
?>
<script type='text/JavaScript' src='include/scw.js'></script>
Código PHP:
<?php
$xajax->printJavascript("../librerias/xajax/");
?>
Código:
<script language="javascript"> var objeciones=false function ventana(x) { if (x==0) { xajax_carga_referido(document.getElementById('refe').value); } if(x==1) { objeciones=window.open("objeciones.php","ref","width=730,height=600,left=100,top=100,scrollbars=yes,menubars=no,statusbar=NO,status=NO,resizable=NO,location=NO") } if(x==2) { beneficios=window.open("beneficios.php","ref","width=692,height=385,left=100,top=100,scrollbars=yes,menubars=no,statusbar=NO,status=NO,resizable=NO,location=NO") } } </script>
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Campaña CITIBANK</title> <link href="estilo.css" rel="stylesheet" type="text/css" /> </head> <body> <script type="text/javascript" src='include/funciones_js.js'></script> <script type='text/JavaScript' src='include/scw.js'></script> <table border="0" align="center"> <tr> <td class="table_top"><div align="center"> <input type="button" class="botonesHover" id="refe" onClick="ventana(0)" value="Ingresar Referidos"> <input type="button" class="botonesHover" onClick="ventana(1);" value="Ver Objeciones"> <input type="button" class="botonesHover" onClick="ventana(2);" value="Ver Beneficios"></div></td></tr> </tr> </table> </body> </html>
Código HTML:
<div id="referido"></div>