Código PHP:
<!doctype html>
<html lang="es">
<head>
<title>Buscar Cliente</title>
<meta charset="utf-8" content="3601" http-equiv="REFRESH">
<link href="../../cp/css/css2.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../cd/fn.js/fn1.js"></script>
<script language="javascript" src="../../cd/fn.js/fn2.js"></script>
<script type="text/javascript">
$(document).ready( function() {
$(".div").mouseover( function() {
var div;
div = this.innerHTML;
$("#main").empty().append(div);
document.writeln(div);
});
});
</script>
</head>
<body>
<?php
session_start();
if (!empty($_SESSION["USER_MATRICULA"])){
require_once("../../cd/q.con/q.con1.php");
require_once("../../cd/fn.php/fn2.php"); //FUNCION_VALIDAR_SESION
require_once("../../cd/fn.php/fn3.php"); //FUNCION_VALIDAR_CARACTERES.php
if (!empty($_SESSION["CLIENTE"])){
$_POST["CLIENTE"] = $_SESSION["CLIENTE"];
unset($_SESSION["CLIENTE"]);
}
$CLIENTE = addslashes(getParam($_POST["CLIENTE"],""));
?>
</p>
<form align="center" name="frbuscar" method="POST" onsubmit="return checkSubmit();" action="../fr.md/fr.cli.php">
<div>
<input type="search" name="CLIENTE" autocomplete="off" value="<?php echo $CLIENTE; ?>" autofocus
onkeypress="return pulsar(event)" placeholder="Ingrse Cliente a Buscar" required/>
<input type="submit" class="submit" value="BUSCAR"/>
</div>
</form>
<?php
if (!empty($CLIENTE)){
require_once("../../cd/q.md/q.cli.php");
if ($TOT_CLIENTE > 0){
/*==========================DATOS DE LA TABLA TB_CLIENTE==========================*/
?>
<br>
</p>
<table align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<th><div align="center">COD_CLIENTE</div></th>
<th><div align="center">CLIENTE</div></th>
<th><div align="center">COD_BROKER</div></th>
<th><div align="center">BROKER</div></th>
</tr>
<?php
foreach ($TOT_CLIENTE as $rsCli){
?>
<tr>
<?php
/*Pasamos el valor NRO_DOCUMENTO y DIAGNOSTICO para la Auditoria del Expediente*/
?>
<td><div align="center" class="div">
<a class="link" href="javascript:window.opener.document.location.reload();self.close();">
<?php
echo $rsCli['COD_CLIENTE'];
$_SESSION["COD_CLIENTE"] = $rsCli['COD_CLIENTE'];//VALOR DESCRIPCION DEL AFILIADO
?>
</a>
</div></td>
<td><div align="left">
<?php
echo ucwords(strtolower($rsCli['DES_CLIENTE']));
$_SESSION["DES_CLIENTE"] = ucwords(strtolower($rsCli['DES_CLIENTE']));//VALOR CODIGO DE BENEFICIO
?>
</div></td>
<td><div align="center">
<?php
echo $rsCli['COD_BROKER_SC'];
$_SESSION["COD_BROKER_SC"] = $rsCli['COD_BROKER_SC'];//VALOR CODIGO DE BENEFICIO
?>
</div></td>
<td><div align="left">
<?php
$COD_BROKER = $rsCli['COD_BROKER_SC'];
require("../../cd/q.md/q.brk.php");
echo $DES_BROKER; /*VALOR DESCRIPCION DEL BROKER*/
$_SESSION["DES_BROKER_SC"] = $DES_BROKER;//VALOR CODIGO DE BENEFICIO
?>
</div></td>
<?php
}
?>
</tr>
</table>
<?php
} $Q_COD_CLIENTE->closeCursor();
} $conexion = null;
} else {
header('Location: ../../cd/fn.php/fn4.php'); //CERRAR SESSION
}
?>
</body>
</html>