Changeset 413 for trunk/admin/modules


Ignore:
Timestamp:
May 17, 2024, 8:50:17 AM (7 weeks ago)
Author:
roby
Message:
  • ADMIN

-- modifiche alla gestione delle consultazioni nulle

  • INSTALL

-- allineamento del db di default alla struttura attuale

Location:
trunk/admin/modules/Elezioni
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_spoglio.php

    r394 r413  
    177177        }
    178178#       echo "Errori:";
    179         if($errvot1) echo "<table><tr><td align=\"center\" bgcolor=\"red\"> <h1 style=\"color:white;\">I votanti inseriti superano il numero di elettori</h1></td></tr></table></br>";
    180         if($error) echo "<table><tr><td align=\"center\" bgcolor=\"red\"> <h1 style=\"color:white;\">Numero di votanti inferiore della rilevazione precedente</h1></td></tr></table></br>";
     179        if(isset($errvot1) and $errvot1) echo "<table><tr><td align=\"center\" bgcolor=\"red\"> <h1 style=\"color:white;\">I votanti inseriti superano il numero di elettori</h1></td></tr></table></br>";
     180        if(isset($error) and $error) echo "<table><tr><td align=\"center\" bgcolor=\"red\"> <h1 style=\"color:white;\">Numero di votanti inferiore della rilevazione precedente</h1></td></tr></table></br>";
    181181        echo "<table border=\"1\"><tr><td><b>Iscritti nella sezione</b> Maschi: $maschi - Femmine: $femmine - Totale: ".($maschi+$femmine)."</td></tr></table></br>";
    182182        foreach($riga as $key=>$val){
  • trunk/admin/modules/Elezioni/ele_voti.php

    r407 r413  
    337337$res->execute();
    338338list($chiusa) = $res->fetch(PDO::FETCH_NUM);
    339 if ($chiusa) echo " -- CONSULTAZIONE NON ATTIVA";
     339if ($chiusa==1) echo " -- CONSULTAZIONE NON ATTIVA";
    340340echo "</h2><table style=\"margin-left:auto; margin-right:auto;\"><tr>";
    341341#<a href=\"admin.php?id_comune=$id_comune&amp;id_cons_gen=$id_cons_gen&amp;ops=1\"></a>
  • trunk/admin/modules/Elezioni/salva_aff.php

    r407 r413  
    4949$res->execute();
    5050list($id_cons,$chiusa)=$res->fetch(PDO::FETCH_NUM);
    51 if(!$chiusa){
     51if(!$chiusa==1){
    5252        $query="select id_parz from ".$prefix."_ele_voti_parziale where data='$data' and orario='$orario' and id_sez='$id_sez' and id_gruppo='$id_gruppo'";
    5353        $res = $dbi->prepare("$query");
  • trunk/admin/modules/Elezioni/salva_gruppi.php

    r407 r413  
    4848$res->execute();
    4949list($disgiunto,$chiusa)=$res->fetch(PDO::FETCH_NUM);
    50 if(!$chiusa){
     50if(!$chiusa==1){
    5151        $sql="SELECT tipo_cons FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'" ;
    5252        $res = $dbi->prepare("$sql");
  • trunk/admin/modules/Elezioni/salva_liste.php

    r407 r413  
    5454$res->execute();
    5555list($chiusa)=$res->fetch(PDO::FETCH_NUM);
    56 if(!$chiusa){
     56if(!$chiusa==1){
    5757        $sql="SELECT tipo_cons FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'" ;
    5858        $res = $dbi->prepare("$sql");
  • trunk/admin/modules/Elezioni/salva_ref.php

    r407 r413  
    4747$res->execute();
    4848list($chiusa)=$res->fetch(PDO::FETCH_NUM);
    49 if(!$chiusa){
     49if(!$chiusa==1){
    5050        $sql="select num_gruppo,id_gruppo from ".$prefix."_ele_gruppo where id_cons='$id_cons' ORDER BY num_gruppo  ";
    5151        $resultg = $dbi->prepare("$sql");
  • trunk/admin/modules/Elezioni/salva_voti.php

    r407 r413  
    4747$result->execute();
    4848list($flagsg,$disgiunto,$chiusa)=$result->fetch(PDO::FETCH_NUM);
    49 if(!$chiusa){
     49if(!$chiusa==1){
    5050        if (!isset($fileout)) $fileout='';
    5151        #if(($voti_u+$voti_d) and !$voti_t) $voti_t=$voti_u+$voti_d;
Note: See TracChangeset for help on using the changeset viewer.