$chart->values = grafikGunNormallestirData($sampleData, $labels); $chart->labels = grafikGunNormallestirLabel($sampleData, $labels); $chart->showValues = 2; $chart->labelSize = 9; $chart->titleSize = 9; $chart->absValuesSize = 9; $chart->absValuesBorder = "0px"; echo $chart->create(); echo "</div>"; } if (getGrafikRecordCount2() > 5) { echo "<div class='ikiKolon'>"; echo "<p style=\"color:#000;font-weight: bold;\">" . $metin[343] . "</p>"; $sampleData2 = getGrafikValues2(15); $labels2 = getGrafikLabels2(15); $chart2 = new BAR_GRAPH("vBar"); $chart2->values = grafikGunNormallestirData($sampleData2, $labels2); $chart2->labels = grafikGunNormallestirLabel($sampleData2, $labels2); $chart2->showValues = 2; $chart2->labelSize = 9; $chart2->titleSize = 9; $chart2->absValuesSize = 9; $chart2->absValuesBorder = "0px"; echo $chart2->create(); echo "</div>"; } ?> </div> <div class="cleared"></div> </div> </div>
echo "Han transcurrido <b>" . $numdias . "</b> dias desde el ultimo reinicio de estadisticas<br />"; } echo "<hr /><h2>Mensajes</h2>"; echo "Se ha enviado un total de <b>{$Totales}</b> mensajes.<br />De los cuales el <b>" . @round($Exitosos / $Totales * 100, 2) . "%</b> ( <b>{$Exitosos}</b> mensajes) ha sido exitoso y el <b>" . @round($Fallidos / $Totales * 100, 2) . "%</b> ( <b>{$Fallidos}</b> mensajes ) ha fallado.<br />"; echo "Eficiencia de envio actual: <b>" . @round($Exitosos / $Totales * 100, 2) . '%</b> ( Aprox. ' . @ceil($Exitosos / $Totales * 100) . " de cada 100 mensajes se envian bien ).<br />"; if ($numdias > 0) { echo "<h3>Totales</h3>"; echo "Mensajes por dia: <b>" . ceil($Totales / $numdias) . "</b><br />"; echo "Mensajes por hora: <b>" . ceil($Totales / ($numdias * 24)) . "</b><br />"; echo "Mensajes por minuto: <b>" . ceil($Totales / ($numdias * 24 * 60)) . "</b><br />"; echo "Mensajes exitosos por dia: <b>" . ceil($Exitosos / $numdias) . "</b><br />"; echo "Mensajes fallidos por dia: <b>" . ceil($Fallidos / $numdias) . "</b><br />"; } // // Configurador del graficador. $graph = new BAR_GRAPH("hBar"); $graph->showValues = 1; $graph->barColors = "#E0E0E0,#0E0E0E"; $graph->barBGColor = ""; $graph->barBorder = "1px solid #808080"; $graph->labelColor = "#A0A0A0"; $graph->labelBGColor = ""; $graph->labelBorder = "1px dashed #A0A0A0"; $graph->labelFont = "Arial Black, Arial, Helvetica"; $graph->labelSize = 16; $graph->absValuesColor = "#A0A0A0"; $graph->absValuesBGColor = ""; $graph->absValuesBorder = "1px solid silver"; $graph->absValuesFont = "Verdana, Arial, Helvetica"; $graph->absValuesSize = 14; $graph->percValuesColor = "#A0A0A0";
function rankGrafik($val, $max) { if (empty($max) or $max == 0) { return; } // if($val<15) return; echo "<p>"; $graph = new BAR_GRAPH("pBar"); // $graph->labels = "Sýra"; // $graph->barBGColor = "#ccc"; $graph->barColors = "img/h_blue.gif"; $graph->values = "{$val};{$max}"; $graph->percValuesDecimals = 1; $graph->barWidth = 10; $graph->barLength = 1; $graph->barBorder = "0px groove gray"; echo $graph->create(); echo "</p>"; }