Changeset 289 for trunk/admin
- Timestamp:
- Apr 24, 2019, 11:18:11 PM (6 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_controlli.php
r288 r289 242 242 ############################## 243 243 $err=0; $err2=0; 244 $sql="SELECT preferenze,disgiunto,solo_gruppo FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons'"; 245 $res = $dbi->prepare("$sql"); 246 $res->execute(); 247 list($prefs,$disg,$solog)=$res->fetch(PDO::FETCH_NUM); 244 248 if($id_lista){ 245 $sql="SELECT preferenze FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons'";246 $res = $dbi->prepare("$sql");247 $res->execute();248 list($prefs)=$res->fetch(PDO::FETCH_NUM);249 249 $sql="select voti from ".$prefix."_ele_voti_lista where id_lista='$id_lista' and id_sez='$id_sez'"; 250 250 $res = $dbi->prepare("$sql"); … … 294 294 } 295 295 if ($validil+$contestatil+$nullil+$totsg!=$votiv and $validil+$contestatil+$nullil+$solol>0) $err=1; 296 if( $tnl!=$nullil|| $totsl!=$solol) $err=1;296 if(($solog && !$disg && $tnl!=$nullil) || $totsl!=$solol) $err=1; 297 297 } 298 298 -
trunk/admin/modules/Elezioni/ele_voti.php
r288 r289 834 834 ///////////////////////////////////////////// 835 835 836 function rec_voti () {836 function rec_votibak() { 837 837 global $prefix, $dbi,$aid,$id_cons,$ops,$genere,$votog,$fileout,$id_comune,$limite,$update,$dettnulli,$disgiunto,$tipo_cons; 838 838 … … 1294 1294 /////////////////////////// 1295 1295 1296 function rec_finale () {1296 function rec_finalebak() { 1297 1297 global $prefix, $dbi,$aid,$id_cons,$fileout,$genere,$votog; 1298 1298 … … 1733 1733 /////////////////////////// 1734 1734 1735 function rec_voti_gruppi () {1735 function rec_voti_gruppibak() { 1736 1736 global $prefix, $dbi,$aid, $tipo_cons, $genere,$id_cons,$ops,$fileout,$dettnulli; 1737 1737 if ($fileout) while (!$fp = fopen($fileout,"a"));
Note:
See TracChangeset
for help on using the changeset viewer.