element_id; $_element_type = $this->element_type; $allowed_type = ["albo_fornitori","oe"]; $_showSOA = false; $years = []; for($i = 5;$i>0;$i--) { $years[] = (int)date("Y") - $i; } if (!empty($_element_type)) { if (strpos($_element_type,"-") !== false) { $_element_type = explode("-",$_element_type)[0]; } if (in_array($_element_type,$allowed_type)) { if (empty($this->element_id) && !empty($_SESSION["utente"]->oe)) { $codice_oe = $_SESSION["utente"]->oe["codice"]; } else { if ($_element_type == "albo_fornitori") { $tmp = $this->pdo->go("SELECT codice_operatore FROM r_partecipanti_albo WHERE codice = :codice",[":codice"=>$_element_id]); if ($tmp->rowCount() === 1) { $codice_oe = $tmp->fetch(PDO::FETCH_COLUMN); } } else if ($_element_type == "oe") { $codice_oe = $_element_id; } } if (!empty($codice_oe)) { if ($_SESSION["utente"]->gerarchia < 99 || (!empty($_SESSION["utente"]->oe) && $codice_oe == $_SESSION["utente"]->oe["codice"])) { $_showSOA = true; $soa = oeManager::getSOA($codice_oe); $fatturati = oeManager::getFatturatiSOA($codice_oe); $categorieSOA = getCategorieSOA(); $classificheSOA = getClassificheSOA(); if (!empty($soa)) { ?>
-
$fatturato) : $cat = $categorieSOA[$categoria]; ?>
-