function stampaNote($numMese, $anno, $SuffissoDB)
 {
     require_once JPATH_COMPONENT . DS . 'models' . DS . 'opdb.php';
     $dbModel = new OpDbModelOpDb();
     $Data = new DataModelData();
     $Note = $dbModel->leggiNote($SuffissoDB, $numMese, $anno);
     return $Note;
 }
 function stampaResoconti($meseDa, $annoDa, $meseA, $annoA, $SuffissoDB)
 {
     $dbModel = new OpDbModelOpDb();
     $date = $this->infoFormazioni("dateNonFormattate", $meseDa, $annoDa, $meseA, $annoA, $SuffissoDB);
     $nomi = $this->infoFormazioni("presenze", $meseDa, $annoDa, $meseA, $annoA, $SuffissoDB);
     $clowns = $dbModel->leggiClowns($SuffissoDB);
     $html = "<tr class=\"intestazione\"> \n";
     $html .= '<td> Nome clown</td>';
     $arrayMesi = array('Gen', 'Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic');
     for ($n = 0; $date[$n]; $n++) {
         $d = explode('-', $date[$n]);
         $num = $d[1];
         if ($num <= 9) {
             $num = substr($num, 1);
         }
         $html .= "<td class=\"dateIntestazione\"> {$d['2']} {$arrayMesi[$num]} {$d['0']}</td> \n";
     }
     $html .= "</tr> \n<tr>";
     for ($n = 0; $clowns[$n] != NULL; $n++) {
         $html .= "<td>" . $clowns[$n] . "</td>";
         $presenze = $dbModel->calcolaPresenze($clowns[$n], $meseDa, $annoDa, $meseA, $annoA, $SuffissoDB);
         for ($t = 0; $date[$t]; $t++) {
             $html .= "<td>" . $presenze->{$date}[$t] . "</td>";
         }
         $html .= "</tr>";
     }
     $html .= "<tr>";
     $html .= "<td class=\"totPresenze\">Totale presenze</td>";
     for ($n = 0; $date[$n]; $n++) {
         $temp = explode(' ', $nomi->{$date}[$n]);
         if ($nomi->{$date}[$n] == "noPresenze") {
             $count = 0;
         } else {
             $count = count($temp);
         }
         $html .= "<td  class=\"tot\">" . $count . "</td>";
     }
     $html .= "</tr>";
     return $html;
 }