//====================================================================================================
//Chart2
$x2 = new SAFEChart();
$x2->setValues($valMC);
$x2->setLabels($lblMC);
$x2->setTitle("CIFRAS DE CAPTACION EN MILES");
$mFile2 = $x2->Chart3DBar(10000);
open_flash_chart_object(648, 512, $mFile2, true, "../");
//====================================================================================================
//CREDITOS
$lblMD = array();
$valMD = array();
$lblND = array();
$valND = array();
$W3 = "\tAND\n\t\t\t\t(`creditos_solicitud`.`saldo_actual` >0)\n\t\t\t\tAND\n\t\t\t\t(`creditos_solicitud`.`fecha_ministracion` >= '{$fecha_inicial}')\n\t\t\t\tAND\n\t\t\t\t(`creditos_solicitud`.`fecha_ministracion` <= '{$fecha_final}')\n";
$DCreds = $cSuc->getColocacionTotal($W3);
$lblND[] = "Creditos";
$valND[] = $DCreds["numero"];
$lblMD[] = "Tot. Solicitado";
$valMD[] = round($DCreds["solicitado"] / 1000, 2);
$lblMD[] = "Tot. Ministrado";
$valMD[] = round($DCreds["ministrado"] / 1000, 2);
$lblMD[] = "Tot. Insoluto";
$valMD[] = round($DCreds["saldo"] / 1000, 2);
$x2 = new SAFEChart();
$x2->setValues($valMD);
$x2->setLabels($lblMD);
$x2->setTitle("CIFRAS GENERALES DE CREDITOS(MILES)");
$mFile2 = $x2->Chart3DBar(20000);
open_flash_chart_object(648, 512, $mFile2, true, "../");
echo getRawFooter();