<?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("productoz_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>Productos - Buscar</title>
<!----------------------------------------->
<?php AddJs(); ?>
<script type="text/javascript" src="ja/funciones.js"></script>
<script type="text/javascript" src="ja/ajf.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("Cod");
});

</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="productoz_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">PRODUCTOS - BUSCAR</div>
</div>
<!----------------------------------------->


<div class="s1" style="left:35px; top: 117px; width: 52px;">
CODIGO</div>
<input name="Cod" type="text" id="Cod"  
class="lt" style="left: 35px; top: 134px; width: 97px;"
value="<?php echo $Cod;?>"  
tabindex="<?php echo ++$TI;?>"/>
    
<div class="s1" style="left:145px; top: 117px; width: 151px;">
MARCA</div>    
<select name="Mar" id="Mar"  
class="lt" style="left:144px; top: 134px; width: 160px;"
tabindex="<?php echo ++$TI;?>">    
<?php
echo FCBO("mar_nom","marcas","id_mar>0",$Mar,"S","N");
?>
</select>   
  
<div class="s1" style="left: 314px; top: 117px; width: 157px;">MODELO / NOMBRE</div>
<input name="Nom" type="text" id="Nom" 
class="lt" style="left: 311px; top: 134px; width: 384px;"
value="<?php echo $Nom;?>"  
tabindex="<?php echo ++$TI;?>"/>
<!----------------------------------------->
<?php $VOLVER="productoz.php";?>
<?php include("botones_b.php");?>;
<!----------------------------------------->  
<div  style="position:absolute; top:162px; left:29px; 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:29px; 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="11%">CODIGO</th>
<th width="16%">MARCA</th>
<th width="41%">*MODELO / NOMBRE</th>
<th width="9%">RAM</th>
<th width="4%">BATERIA</th>
<th width="6%">CAM.P.</th>
<th width="5%">CAM.F.</th>
<th width="6%">TAMAÑO</th>
<th width="2%">&nbsp;</th>
</tr>
</thead>
<tbody>

<?php
	$i=0;			  		
	$s="SELECT * FROM vis_productos WHERE $FF ORDER BY NOC ";				
	$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='productoz.php?Id=<?php echo $r['ID'];?>&Pag=0';">
    <td ><?php echo $r['COD'];?></td>	
    <td ><?php echo $r['MAR'];?></td>	
    <td ><?php echo $r['NOC'];?></td>	
    <td ><?php echo $r['RAM'];?></td>				 
    <td ><?php echo $r['BAT'];?></td>	
    <td ><?php echo $r['CPR'];?></td>	
    <td ><?php echo $r['CFR'];?></td>	
    <td ><?php echo $r['TAM'];?></td>	
    <td ><a href="productoz.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>
