$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$id_modulo = "partecipanti";
$cmd_info = anac::getInfoModulo($id_modulo);
$error = true;
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"])) {
$anac = anac::init($_GET["codice"]);
if (!empty($anac)) {
$lotto = $_GET["codice_lotto"];
$partecipanti = $anac->getPartecipantiLotto($lotto);
$return = array();
$return["draw"] = (int)$_GET["draw"];
$return["recordsTotal"] = (int)0;
$return["recordsFiltered"] = (int)0;
$return["data"] = [];
if (count($partecipanti) > 0) {
$error = false;
$return["recordsTotal"] = count($partecipanti);
$return["recordsFiltered"] = count($partecipanti);
$i = 0;
foreach($partecipanti AS $partecipante) {
$i++;
$row = [];
$row[] = $i;
$row[] = ($partecipante["aggiudicatario"] == "S") ? "" : "";
$row[] = $partecipante["codice_fiscale"];
$row[] = (($partecipante["aggiudicatario"] == "S") ? "".__("Aggiudicatario")."
" : "") . "{$partecipante["ragione_sociale"]}";
ob_start();
$raggruppamento = $anac->getRaggruppamento($lotto,$partecipante["codice"]);
if (!empty($raggruppamento)) {
?>
| = __("Ruolo") ?> | = __("Codice Fiscale") ?> | = __("Ragione sociale") ?> |
|---|---|---|
| = $membro["ruolo"] ?> | = $membro["codice_fiscale_impresa"] ?> | = $membro["ragione_sociale"] ?> |