Example #1
0
<?php

include "clases/config.php";
include "clases/class.query.php";
include "clases/calculos.php";
$calculos = new calculos();
$Query = new Query();
$Link = $Query->conexion();
$cad = "SELECT * FROM productos_activos";
$query = $Query->mQuery($cad, $Link);
if (isset($_POST['combo1'])) {
    $sql = "select tp.codigo_cuenta, tp.id ,tp.tipo, tp.tipo_empresa from tipo_cuenta tp, productos_activos pa, producto_cuenta pc \r\nwhere tp.id=pc.codigo_cuenta\r\nand pa.codigo=pc.codigo\r\nand pa.codigo='" . $_POST['combo1'] . "'";
    $res = $Query->mQuery($sql, $Link);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simuladores</title>
<!--/*******************************************************************/-->
<link href="css/calendario.css" type="text/css" rel="stylesheet">
<link href="css/estilos.css" type="text/css" rel="stylesheet">
<!--/*******************************************************************/-->
<script src="js/calendar.js" type="text/javascript"></script>
<script src="js/calendar-es.js" type="text/javascript"></script>
<script src="js/calendar-setup.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="js/validacion.js"></script>
<!--/*******************************************************************/-->
<link href="css/flexcrollstyles.css" rel="stylesheet" type="text/css" />