<?php
session_start();
include "verifica.php";

@$xid = $_REQUEST['xid'];
include "conexion.php";

?>

<html>
	<head>
		<title>SISTEMA DE CONTROL COMERCIAL</title>
		<meta charset="iso-8859-1" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
		<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
		
		<script src="ckeditorbasico/ckeditor.js"></script>
		<link rel="stylesheet" href="ckeditorbasico/samples/sample.css">
		
	<meta http-equiv="Content-Type" content="text/html; charset="><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-right: 0px;
}
-->
</style></head>		
	
	

	<body>


<?php
//$r = mysqli_query($conexion,"SELECT * FROM productos p where prd_codi = $xid;");
$r = mysqli_query($conexion,"SELECT * FROM productos_familia p WHERE prdfam_codi = $xid;");

while($row = mysqli_fetch_array($r)){
	$xdescripcion = addslashes($row['prdfam_descripcion']);
	$zid = addslashes($row['prdfam_codi']);	
	?>	
	 
	  <div class="input_texto"  style="margin-left:-30px; font-size:16px; font-family:Arial, Helvetica, sans-serif;" align="left">
	  Descripci&oacute;n
	  </div>
	  <div align="left" style="margin-left:-30px; width:332px; height:100px;">
	  
	  <form name="form_procesos_detalle" id="form_procesos_detalle" method="post" target="frame_procesos_detalle" action="procesos/familia_detalle.php">	  
		<textarea  name="xdescripcion" rows="6" id="xdescripcion" class="ckeditor"  ><?php echo $xdescripcion; ?></textarea>		
		<input name="zprd_codi" id="zprd_codi" type="hidden" value="<?php echo $zid; ?>"  >
				
	  </form>	
	  </div> 	
	  
	
	<iframe id="frame_procesos_detalle" name="frame_procesos_detalle" title="fotos" width="10" height="10" frameborder="0" scrolling="No" marginheight="0" marginwidth="0" allowtransparency="AllowTransparency"></iframe>		
	<?php
}
?>

	</body>

</html>		