Changeset 366
- Timestamp:
- May 15, 2022, 10:18:37 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_permessi.php
r359 r366 200 200 if ($perms>32 and $permessi<$perms and $aid2) { 201 201 if ($do == "autorizza") { 202 $sql=" insert into ".$prefix."_ele_operatori (id_cons,id_sede,id_comune,permessi,aid,id_sez) values ('$id_cons','$id_sede','$id_comune','$permessi','$aid2','$id_sez')";202 $sql="select num_sez from ".$prefix."_ele_sezioni where id_sez='$id_sez'"; 203 203 $res = $dbi->prepare("$sql"); 204 $res->execute(); 204 $res->execute(); 205 list ($num_sez)=$res->fetch(PDO::FETCH_NUM); 206 $sql="select data_inizio from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'"; 207 $compl = $dbi->prepare("$sql"); 208 $compl->execute(); 209 list ($datarif)= $compl->fetch(PDO::FETCH_NUM); 210 $sql="select id_cons from ".$prefix."_ele_cons_comune where id_comune='$id_comune' and id_cons_gen in (select id_cons_gen from ".$prefix."_ele_consultazione where data_inizio='$datarif')"; 211 $compl = $dbi->prepare("$sql"); 212 $compl->execute(); 213 while(list ($id_cons)= $compl->fetch(PDO::FETCH_NUM)){ 214 $sql="select id_sez, id_sede from ".$prefix."_ele_sezioni where id_cons='$id_cons' and num_sez='$num_sez'"; 215 $res = $dbi->prepare("$sql"); 216 $res->execute(); 217 if(!$res->rowCount()) continue; 218 list ($id_sez,$id_sede)=$res->fetch(PDO::FETCH_NUM); 219 $sql="select aid from ".$prefix."_ele_operatori where id_cons='$id_cons' and aid='$aid2'"; 220 $res = $dbi->prepare("$sql"); 221 $res->execute(); 222 if($res->rowCount()) continue; 223 $sql="insert into ".$prefix."_ele_operatori (id_cons,id_sede,id_comune,permessi,aid,id_sez) values ('$id_cons','$id_sede','$id_comune','$permessi','$aid2','$id_sez')"; 224 $res = $dbi->prepare("$sql"); 225 $res->execute(); 226 } 205 227 Header("Location: admin.php?op=permessi&id_cons_gen=$id_cons_gen"); 206 228 } elseif ($do == "update") { -
trunk/admin/modules/Elezioni/ele_spoglio.php
r365 r366 961 961 $res = $dbi->prepare("$sql"); 962 962 $res->execute(); 963 $numpro=$res->rowCount(); 963 964 $pro= $res->fetch(PDO::FETCH_BOTH); 964 965 echo "<tr><td colspan=\"6\"> </td></tr>"; 965 if ($ pro['si']+$pro['no']!=$pro['validi'] or ($pro['validi']+$pro['nulli']+$pro['bianchi']+$pro['contestati']!=$tot and $pro['validi']+$pro['nulli']+$pro['bianchi']+$pro['contestati']!=0)){966 if ($numpro and ($pro['si']+$pro['no']!=$pro['validi'] or ($pro['validi']+$pro['nulli']+$pro['bianchi']+$pro['contestati']!=$tot and $pro['validi']+$pro['nulli']+$pro['bianchi']+$pro['contestati']!=0))){ 966 967 echo "<tr style=\"background-color: rgb(255, 0, 0); text-align:center\">"; 967 }elseif($ pro['validi']+$pro['nulli']+$pro['bianchi']+$pro['contestati']!=0)968 }elseif($numpro and ($pro['validi']+$pro['nulli']+$pro['bianchi']+$pro['contestati']!=0)) 968 969 echo "<tr style=\"background-color:#99CC33; text-align:center\">"; 969 970 else -
trunk/admin/modules/Elezioni/salva_ref.php
r344 r366 62 62 while(list($i,$idgruppo)=$resultg->fetch(PDO::FETCH_BOTH)) { 63 63 $gruv="id_gruppo$i";$siv="si$i";$nov="no$i";$valv="val$i";$biav="bia$i";$conv="con$i";$nulv="nul$i"; 64 if($_GET[$siv]=='' and $_GET[$nov]=='' and $_GET[$biav]=='' and $_GET[$conv]=='' and $_GET[$nulv]=='') continue; 64 65 if (isset($_GET[$gruv])) $id_gruppo[$i]=intval($_GET[$gruv]); else $id_gruppo[$i]='0'; 65 66 if (isset($_GET[$siv])) $si[$i]=intval($_GET[$siv]); else $si[$i]='0'; -
trunk/admin/versione.php
r365 r366 1 1 <?php 2 2 3 $versione = "3.0 rev 36 5";3 $versione = "3.0 rev 366"; 4 4 $version_number = $versione; 5 $datarel = " 09 aprile2022";5 $datarel = "15 maggio 2022"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7 8 8 ?> 9 -
trunk/client/versione.php
r365 r366 1 1 <?php 2 2 3 $versione = "3.0 rev 36 5";3 $versione = "3.0 rev 366"; 4 4 $version_number = $versione; 5 $datarel = " 09 aprile2022";5 $datarel = "15 maggio 2022"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.