if ($dialog) { $script .= "pp.interactive = pp.constants.interactionLevel.full;"; } else { $script .= "pp.interactive = pp.constants.interactionLevel.automatic;"; } $script .= "pp.printerName = '\\\\\\\\" . $server . "\\\\" . $printer . "';"; $script .= "print(pp);"; $this->IncludeJS($script); } } //*****************CONEXION A SIMA*************** require CONSTANT_PATH_CONFIGURACION . '/baseDatos.php'; $base = new MYSQL(); $basedatos = $base->basedatos(); $conexionManual = new MYSQL(); $conexionManual->conecta(); //************************************************** $pdf = new PDF_AutoPrint(); $pdf->AddPage(); function saca_iva($can, $por) { $cant = $can; $can = $can / 100 * $por; $can += $cant; return $can; } //aqui estoy //$_GET['keyClientesInternos']='22822'; $sSQL311 = "Select * From clientesInternos WHERE keyClientesInternos='" . $_GET['keyClientesInternos'] . "' "; $result311 = mysql_db_query($basedatos, $sSQL311); $myrow311 = mysql_fetch_array($result311);
<?php require '/Constantes.php'; require CONSTANT_PATH_CONFIGURACION . "/baseDatos.php"; $usuario = NULL; $fecha = NULL; $hora = NULL; $nivel1 = NULL; $nivel3 = NULL; $porcentajePS = NULL; $keyPA = NULL; $basedatos = MYSQL::basedatos(); $conecta = MYSQL::conecta(); function roundTo($number, $to) { return round($number / $to, 0) * $to; } //TODAS LAS ENTIDADSEs $sSQL0 = "SELECT\n* \nFROM \nentidades\n \n"; $result0 = mysql_db_query($basedatos, $sSQL0); while ($myrow0 = mysql_fetch_array($result0)) { $entidad = $myrow0['codigoEntidad']; //TODOS articulos en request $sSQL1 = "SELECT\n* \nFROM \nprecioArticulos\nwhere\nentidad='" . $entidad . "'\n and\n status='request'\n\n"; $result1 = mysql_db_query($basedatos, $sSQL1); while ($myrow1 = mysql_fetch_array($result1)) { $codigo += 1; $a += 1; if ($col) { $color = '#FFCCFF'; $col = "";