Changeset 195 for trunk/admin/modules/Elezioni/ele_voti.php
- Timestamp:
- Mar 31, 2014, 6:24:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r189 r195 485 485 function preferenze($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops){ 486 486 global $aid, $prefix, $dbi, $id_lista,$genere,$id_cons_gen,$id_gruppo,$sezi,$circo,$votog,$votol,$votoc,$conscirc; 487 global $tipo_cons,$ fascia,$limite;487 global $tipo_cons,$limite; 488 488 $bgcolor1="#7777ff"; 489 489 $bgcolor2=$_SESSION['bgcolor2']; 490 490 //controlla se sono stati inseriti i votanti 491 $result = mysql_query("SELECT preferenze from ".$prefix."_ele_cons_comune where id_cons='$id_cons'",$dbi);492 list($numprefs )=mysql_fetch_row($result);491 $result = mysql_query("SELECT preferenze, id_fascia from ".$prefix."_ele_cons_comune where id_cons='$id_cons'",$dbi); 492 list($numprefs,$fascia)=mysql_fetch_row($result); 493 493 494 494 if(!$votog and ($genere==3 or $genere==5)) … … 717 717 function rec_voti() { 718 718 global $prefix, $dbi,$aid,$id_cons,$ops,$genere,$votog,$fileout,$id_comune,$limite; 719 $sqlcomu="select fascia from ".$prefix."_ele_co muni where id_comune='$id_comune'";719 $sqlcomu="select fascia from ".$prefix."_ele_cons_comune where id_cons='$id_cons'"; 720 720 $res = mysql_query($sqlcomu); 721 721 list($fascia)=mysql_fetch_row($res);
Note:
See TracChangeset
for help on using the changeset viewer.