/* 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] = "
".number_format($dtSup->data["oferta"][$pos],2)."
"; switch ($dtSup->data["bandera"][$pos]) { case 0: $dtSup->data["bandera"][$pos] = "
"; break; case 1: $dtSup->data["bandera"][$pos] = "
"; break; } } } $gridSup = new dataGrid($dtSup); $gridSup->setRowAction("ondblclick", "oferta",array("ccotiza", "codsup", "resp")); $gridSup->cambiarLabel("ckb" ,""); $gridSup->noVisibles = array("codsup", "ccotiza", "resp"); $gridSup->cambiarLabel("cod" , "# Suplidor"); $gridSup->cambiarLabel("bandera" , ""); $gridSup->cambiarLabel("nombre" , "Nombre del Suplidor"); $gridSup->cambiarLabel("tel" , "Telefonos de Contacto"); } ?>
Se Muestran numRows; ?> Suplidores
display(); ?>