Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
74 righe
2.2 KiB
74 righe
2.2 KiB
<? |
|
if (isset($_SESSION["utente"]) && isset($modulo) && $_SESSION["utente"]->permission($id_modulo)) { |
|
$oeManager = new oeManager; |
|
$oeManager->setFilters(["elenco"=>"b_bandi_albo|0"]); |
|
$qualificati = $oeManager->getOERelations($_SESSION["ente"]->codice); |
|
$oeManager = new oeManager; |
|
$totale = $oeManager->getOERelations($_SESSION["ente"]->codice); |
|
if (!empty($totale)) { |
|
$totale = count($totale); |
|
if (!empty($qualificati)) { |
|
$qualificati = count($qualificati); |
|
} else { |
|
$qualificati = 0; |
|
} |
|
ob_start(); |
|
?> |
|
<div id="ooeeGraph"></div> |
|
<script> |
|
Highcharts.chart('ooeeGraph', { |
|
chart: { |
|
plotBackgroundColor: null, |
|
plotBorderWidth: 0, |
|
plotShadow: false, |
|
backgroundColor: 'transparent' |
|
}, |
|
title: { |
|
text: "<div style='text-align:center'><?= $totale ?><br><small><?= strtoupper(__("Operatori Economici")) ?></small></div>", |
|
useHTML: true, |
|
align: 'center', |
|
verticalAlign: 'middle', |
|
style: { "color": "inerith", "fontSize": "2em" }, |
|
y: 70 |
|
}, |
|
tooltip: { |
|
pointFormat: '{series.name}: <b>{point.y}</b>' |
|
}, |
|
plotOptions: { |
|
pie: { |
|
dataLabels: { |
|
enabled: true, |
|
distance: -50, |
|
style: { |
|
fontWeight: 'bold', |
|
color: 'white' |
|
} |
|
}, |
|
startAngle: -90, |
|
endAngle: 90, |
|
center: ['50%', '75%'], |
|
size: '110%' |
|
} |
|
}, |
|
series: [{ |
|
type: 'pie', |
|
name: 'Stato', |
|
innerSize: '75%', |
|
data: [ |
|
{ |
|
name: "<?= __("Qualificati") ?>", |
|
y: <?= $qualificati ?> |
|
}, |
|
{ |
|
name: "<?= __("Solo iscritti") ?>", |
|
y: <?= ($totale - $qualificati) ?> |
|
} |
|
] |
|
}] |
|
}); |
|
</script> |
|
<? |
|
$cards[] = ob_get_clean(); |
|
} |
|
} |
|
?>
|