<?php
session_start();
include("cls_conexion.php");$CNN=new ClsMySQL();include("conexion23.php");
include("phpmnu_fun.php");
//
//if(strlen($_SESSION['SYS_USER_ID'])==0){JsDir("login.php");	return;}
//
include("planez_bx.php");
$IdUsu=$_SESSION['SYS_USER_ID'];
$AT=gs("at","usuarios","id_usuario=$IdUsu");
?>

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Planes - Buscar</title>
<!----------------------------------------->
<?php AddJs(); ?>
<script type="text/javascript" src="ja/funciones.js"></script>
<!----------------------------------------->
<link rel="stylesheet" type="text/css" href="css/estiloss.css"  />
<link rel="stylesheet" type="text/css" href="css/basic.css"  />
<link rel="stylesheet" type="text/css" href="css/mnu.css"  />
<!----------------------------------------->
<style type="text/css">
.tableFixHead          { overflow-y: auto; }
.tableFixHead thead th { position: sticky; top: 0; }

table  {border-collapse:collapse;width:100%;}
th, td {padding: 3px 3px;}
th     {background:#666;}


.cF {height:600px;width:1250px;position:relative;top:0px}
.mM {height:34px;width:1250px;position:relative;top:0px;background-color:#09C; z-index:500;}

</style>

<!----------------------------------------->
<script>
$(document).ready(function(){  
   Inicializar();
   jF("Nom");
});

</script>
<!----------------------------------------->
<body  <?php echo $LStrMsg;?>  >
<div align="center">

<div class="mM" align="left" style="font-size:12px">
<?php
echo GEN_MENU(vbval(V($_SESSION['SYS_USER_ID'])));
?>
</div>

<div Id="DivFRM"  class="cF" style="background-color:#FFFFFF;" >
<form id="Frm" name="Frm" method="post" autocomplete="off"
action="planez_b.php" 
style="margin:0px; padding:0px; display:inline;" onSubmit="return false;">

<!----------------------------------------->
<div id="DivT" class="dT"  style="width:1250px;">
<img src="b.png" class="iT" />
<div class="tT">PLANES - BUSCAR</div>
</div>
<!----------------------------------------->
<div class="s1" style="left:30px; top: 117px; width: 52px;">
NOMBRE</div>
<input name="Nom" type="text" id="Nom"  
class="lt" style="left: 30px; top: 134px; width: 270px;"
value="<?php echo $Nom;?>"  
tabindex="<?php echo ++$TI;?>"/>
<!----------------------------------------->
<?php 
$VOLVER="planez.php";
?>
<?php 
include("botones_b.php");
?>
<!----------------------------------------->  
<div  style="position:absolute; top:162px; left:30px; height:27px; background-color:#FFF; width: 1189px;">
<table width="100%" style="font-family:Arial, Helvetica, sans-serif; font-size:11px" border="0">
<tr>
<td align="center">
	<?php echo PagBtn($LStrTR,$VP_RegXPag,$LStrPag);?>
</td>
</tr>
</table>
</div> 
  
<div class="tableFixHead" id="DivT" style="position:absolute; top:194px; left:30px; border:1px solid; border-color:#666; height:382px; background-color:#FFF; overflow:auto; width: 1189px;">
<table id="Exportar_a_Excel" width="100%" style="font-family:Arial, Helvetica, sans-serif; font-size:11px">
<thead>

<tr>
<th width="42%">NOMBRE</th>
<th width="6%">PRECIO</th>
<th width="9%">MIN.NAC</th>
<th width="8%">SMS.NAC.</th>
<th width="7%">GB.NAC</th>
<th width="7%">MIN.INT.</th>
<th width="7%">SMS.INT</th>
<th width="7%">GB.INT</th>
<th width="5%">HAB</th>
<th width="2%">&nbsp;</th>
</tr>
</thead>
<tbody>

<?php
	$i=0;			  		
	$s="SELECT * FROM vis_planes WHERE $FF ORDER BY PRE ";				
	$s=PagSql($s,$LStrPag,$VP_RegXPag,$LStrTR);			
	$rs=grs($s);
	while($r=$rs->fetch_assoc()){
		$i++;
		$CSS="";
		if($i%2==0){
			$CSS=" style=\"background-color:#E2E2E2\" ";
		}
?>
    <tr <?php echo $CSS;?> height="10px" 
    	onDblClick="location.href='planez.php?Id=<?php echo $r['ID'];?>&Pag=0';">
    <td ><?php echo $r['NOM'];?></td>	
    <td ><?php echo $r['PRE'];?></td>	
    <td ><?php echo $r['MIN_NAC'];?></td>	
    <td ><?php echo $r['SMS_NAC'];?></td>				 
    <td ><?php echo $r['GB_NAC'];?></td>	
    <td ><?php echo $r['MIN_INT'];?></td>	
    <td ><?php echo $r['SMS_INT'];?></td>	
    <td ><?php echo $r['GB_INT'];?></td>	
    <td ><?php echo $r['HAB'];?></td>	
    <td ><a href="planez.php?Id=<?php echo $r['ID'];?>&Pag=0"><img src="e.png" border="0"></a></td>
    </tr>
<?php
	}
?>
   
</tbody>
</table>
</div>

<!----------------------------------------->    
<?php include("ocultos.php");?>

</form>
</div>
</div>
</body>
</html>
