<?php
if(!isset($_SESSION)) session_start();
include('clases/clase.conexion.php');
include('funciones/variables.php');
include('funciones/funciones.php');
$var = VarServer("MYSQLI");
$obj = new clsConexion($var[0],$var[1],$var[2],$var[3],$var[4]);
$varTitulo = "LISTADO DE LISTA DE PRECIOS";
?>
<HTML>
<HEAD>
<TITLE><?php echo $varTitulo; ?></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
td {
	font-family:Tahoma;
	font-size:11px;
	color:#727272;
}
a {
	text-decoration: underline;
	color:#727272;
}
a.1 {
	text-decoration: none;
	color: 000000;
}
.t11 {
	font-family: Tahoma;
	font-size: 11px;
	font-style: normal;
}
body  {margin:0px;padding:0px}
.style3 {font-size: 9px}
-->
</style>
<link rel="stylesheet" type="text/css" href="css/ajax_registro.css">
<link rel="stylesheet" type="text/css" href="forms/paginate1.css">
<link rel="stylesheet" type="text/css" href="css/paginate.css" />
<script language='javascript'>
function seleccionar(codigo,nombre, pcod, pnom) {
	var cod1 = opener.document.getElementById(pcod);
	var nom1 = opener.document.getElementById(pnom); 
	//var form = opener.document.getElementById('form');
	//form.rcod.value = codigo;
	//form.rnom.value = nombre;
	cod1.value = codigo;
	nom1.value = nombre;
	window.close();
  	}
</script>
<script type="text/javascript" src="js/tablesort.js"></script>
<script type="text/javascript" src="js/paginate.js"></script>
<script type="text/javascript" src="js/popcalendar.js"> </script>
<script type="text/javascript" src="js/funciones.js"></script>
<script type="text/javascript" src="js/wz_tooltip.js"></script>
<script type="text/javascript" src="js/tip_balloon.js"></script>
<!--[if IE]>
<style type="text/css">
ul.fdtablePaginater {display:inline-block;}
ul.fdtablePaginater {display:inline;}
ul.fdtablePaginater li {float:left;}
ul.fdtablePaginater {text-align:center;}
table { border-bottom:1px solid #C1DAD7; }
</style>
<![endif]-->
<script type="text/javascript" src="stmenu.js"></script>
<meta http-equiv="msthemecompatible" content="no" />
<link href="images/logo_siscomges_32x32.png" rel="shortcut icon" type="image/x-icon" />
</HEAD>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table cellpadding="0" cellspacing="0" border="0" style="height:100%; width:100% ">
                            <!--DWLayoutTable-->
                            <tr>
                              
<td width="750" align="center" valign="top">
<?php 
	$varTabla=array("id"=>"tabla", "name"=>"table", "tamano"=>"400", "clase"=>"FormTitulo", "titulo"=>$varTitulo,
					"formu"=>array("id"=>"form", "name"=>"form", "metodo"=>"POST"),						
					"ocult"=>array(array("tipo"=>"oculto", "id"=>"cod", "name"=>"cod", "valor"=>$_GET[cod]),
								   array("tipo"=>"oculto", "id"=>"nom", "name"=>"nom", "valor"=>$_GET[nom])
								  ),
					"conte"=>array(array("titulo"=>"Nombre :", "clase1"=>"FormCampo1", "clase2"=>"interior", "tamano"=>"75",
										 "campo" =>array("tipo"=>"texto", "id"=>"nam", "name"=>"nam", "valor"=>$_POST["nam"], "ancho"=>"306"))							   
								   ),
					"boton"=>array(array("tipo"=>"submit", "id"=>"bcon", "name"=>"bcon", "ancho"=>"80", "alto"=>"22", "texto"=>"Buscar")
								   )
					);
	echo $obj->setTablaForm($varTabla);
	


	$rs_cab = array(array("Tamano"=>60, "Titulo"=>"CPRO", "Negrita"=>"SI", "Alinear"=>"center"),
					array("Tamano"=>500,"Titulo"=>"NOMBRE LISTA PRECIOS"),
					array("Tamano"=>500, "Oculto"=>"SI"),
					array("Tamano"=>500, "Oculto"=>"SI"),
					array("Tamano"=>500, "Oculto"=>"SI"),
					array("Tamano"=>500, "Oculto"=>"SI"),
					array("Tamano"=>500, "Oculto"=>"SI"),
					array("Tamano"=>500, "Oculto"=>"SI")
				   );
	$Boton = array(0=>array(0 => array("Java"=>"seleccionar", "Boton"=>"b_table_add.png", 
										"Mensaje"=>"Haga Click para <b>Seleccioar</b> el Registro"),
							1 => array("Campo"=>"valor","Valor"=>0),
							2 => array("Campo"=>"valor","Valor"=>1),
							3 => array("Campo"=>"cod","Valor"=>$_GET["cod"], "Tipo"=>"IN"),
							4 => array("Campo"=>"nom","Valor"=>$_GET["nom"], "Tipo"=>"IN")							
							)
					);	
	
	$sql = "call spQuery_Lista_Precios('','$varNAM',NULL,NULL);";
	echo $obj->SetGrid(550,$rs_cab,$sql,NULL,4,NULL,NULL, NULL, "IZQ", $Boton); 
?>
</td>
	</tr>
  </table>


<!--  PopCalendar(tag name and id must match) Tags should not be enclosed in tags other than the html body tag. -->
<iframe width=174 height=189 name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="HelloWorld/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;"> </iframe>
</body>
</html>
<frameset rows="100,*" border=0 frameborder="0">
<frameset rows="100,*" border=0 frameborder="0">