/* Decoded by unphp.net */
?>
\$('#divSolCotizacion').tabs('load',1);
";
exit();
}
if(isset($_GET['cod']) && strlen($_GET['cod']) > 5)
{
$cod = $_GET['cod'];
$sql = "SELECT s.cod as ckb, s.cod, s.cod as codsup, d.ccotiza as ccotiza, s.nombre, d.envio, concat(s.tel1, ' / ', tel2) as tel,
(select sum(cant *(precio-descuento+itbis)) from am_dcotizaresp where ccotiza = '{$cod}' and csup = s.cod group by ccotiza) as oferta,
ifnull((select count(*) from am_cotizamresp where ccotiza = '{$cod}' and csup = s.cod group by ccotiza),0) as resp,
ifnull((select count(*) from am_cotizamresp where ccotiza = '{$cod}' and csup = s.cod group by ccotiza),0) as bandera
FROM am_cotizasup d , am_sup s
WHERE s.cod = d.csup AND d.ccotiza = '{$cod}'
";
$dtSup = new dataTable($sql);
if ($dtSup->numRows > 0)
{
foreach($dtSup->data["ckb"] as &$celda1)
{
$celda1 = "";
}
foreach($dtSup->data["oferta"] as $pos=>&$valor)
{
$dtSup->data["oferta"][$pos] = "