<?php
session_start();
include("cls_conexion.php");$CNN=new ClsMySQL();include("conexion23.php");
//if(strlen($_SESSION['SYS_USER_ID'])==0){JsDir("login.php");	return;}
//
$HW=V($_SESSION['SYS_HW']);
$PRO_KOD=vbval(V($_GET['ID']));
if($PRO_KOD==0){
	$PRO_KOD=vbval(V($_POST['TXT_PRO_KOD']));
}
//
$LIMPIAR=0;
$DET_ID=vbval(V($_POST['DET_ID']));
//
$StrId=V($_POST['TxtId']);
$StrCmd=V($_POST['TxtAc']);
$SYS_MSG="";
$SYS_FOC="Con";
//
include("productos_ft_fun.php");
//
$TI=0;
?>

<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Productos - Ficha Tecnica</title>
<!--INI_SCRIPT------------------------------------------------------------------------------>
<?php AddJs(); ?>
<script type="text/javascript" src="ja/funciones.js"></script>
<script type="text/javascript" src="ja/productos_ft.js"></script>
<!--FIN_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">
.cF {height:550px;width:825px;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();
   SYS_LOAD();
});
</script>
</head>

<body  <?php echo $LStrMsg;?>>
<div align="center">


<div Id="DivFRM"  class="cF" style="background-color:#FDE1A8">
<form id="Frm" name="Frm" method="post" autocomplete="off"
action="productos_ft.php"  onSubmit="return false;">

<!--INI_TITULO--------------------------------->
<div id="DivT" class="dT" style="width:825px" >
<img src="png/ndd_mot.png" class="iTb"  />
<div class="tT">PRODUCTOS - FICHA TECNICA</div>
</div>
<!--FIN_TITULO--------------------------------->

<div class="s1" style="left:35px; top: 82px; width: 66px;">
CONCEPTO</div>
<select name="Con" id="Con" 
class="lt" style="left:35px; top: 99px; width: 263px" 
tabindex="<?php echo ++$TI;?>">
<?php echo FCBO_("car_nom","web_caracteristicas","id_car>0 AND car_hab='SI'",$Con,"","S");?>
</select>

<div class="s1" style="left: 309px; top: 82px; width: 283px;"> DATO / DESCRIPCION
</div>
<input name="Des" type="text" id="Des" 
class="lt" style="left: 307px; top: 99px; width: 354px" 
value="<?php echo $Des;?>"  
tabindex="<?php echo ++$TI;?>"/>

<?php
$CAP="Agregar";
if($DET_ID>0)$CAP="Modificar";
?>

<input name="CmdAdd" type="button" id="CmdAdd"  
value="<?php echo $CAP;?>" onClick="fAdd()" tabindex="<?php echo ++$TI;?>"
style="left: 669px; top: 100px; width: 78px; position:absolute">

<input name="CmdAddX" type="button" id="CmdAddX"  
value="X" onClick="fCls()"
style="left: 754px; top: 100px; width: 32px; position:absolute">


<div class="datagrid" style="position: absolute; left: 35px; top: 137px; width: 754px; height: 368px;">
<table width="100%">
<thead>
<tr>
<th width="38%">CONCEPTO</th>
<th width="55%">DESCRIPCION</th>
<th width="4%">&nbsp;</th>
<th width="3%">&nbsp;</th>
</tr>
</thead>
<tbody>
          
<?php
$BX=0;
$s="SELECT * FROM vis_web_productos_car WHERE ID>0 AND PRO_ID=$PRO_KOD ORDER BY CON,DES";
$rs=grs($s);
while($r=$rs->fetch_assoc()){
	$BX++;
	$CSS="";
	if($BX%2==0)$CSS='style="background-color:#E2E2E2"';
?>
    <tr <?php echo $CSS;?> >
    <!----------------------------------------------->
    <td ><?php echo $r['CON'];?></td>
    <td ><?php echo $r['DES'];?></td>       
    <!----------------------------------------------->
    <td align="center">
    <a href="javascript:void(0)" onClick="fEd(<?php echo $r['ID'];?>);">
    <img src="img/b_edit.png"  border="0"/></a></td>
    <td align="center">
    <a href="javascript:void(0)" onClick="fEl(<?php echo $r['ID'];?>);">
    <img src="img/eliminar.png"  border="0"/></a></td>
    </tr>
<?php
}    
?>	  
</tbody>
</table>
</div>

<!--INI_OCULTOS-------------------------------->
<?php include("ocultos.php");?>
<input name="TXT_PRO_KOD" type="hidden" id="TXT_PRO_KOD" value="<?php echo $PRO_KOD;?>" />
<input name="SYS_MSG" type="hidden" id="SYS_MSG" value="<?php echo $SYS_MSG;?>" />
<input name="SYS_FOC" type="hidden" id="SYS_FOC" value="<?php echo $SYS_FOC;?>" />
<input name="DET_ID" type="hidden" id="DET_ID" value="<?php echo $DET_ID;?>" />
<!--FIN_OCULTOS-------------------------------->

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