Changeset 195 for trunk/admin/modules
- Timestamp:
- Mar 31, 2014, 6:24:10 PM (11 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele.php
r175 r195 83 83 $bullet="<img src=\"temi/$tema/images/bullet.gif\" alt =\" \" align=\"left\" border=\"0\">"; 84 84 $bgcolor1='#e7e7e7'; 85 $sqlcomu="select descrizione ,fasciafrom ".$prefix."_ele_comuni where id_comune='$id_comune'";85 $sqlcomu="select descrizione from ".$prefix."_ele_comuni where id_comune='$id_comune'"; 86 86 $res = mysql_query($sqlcomu); 87 list($descr_comu,$fascia)=mysql_fetch_row($res); 87 list($descr_comu)=mysql_fetch_row($res); 88 $sqlcomu="select fascia from ".$prefix."_ele_cons_comune where id_cons='$id_cons'"; 89 $res = mysql_query($sqlcomu); 90 list($fascia)=mysql_fetch_row($res); 88 91 89 92 $otable= "<table bgcolor=\"$bgcolor1\" width=\"100%\" cellpadding=\"0\" cellspacing=\"2\" BORDER=\"0\">\n <tr><td> </td><td valign=\"top\" align=\"left\">"; -
trunk/admin/modules/Elezioni/ele_consultazionitipi.php
r54 r195 26 26 if (isset($param['min'])) $min=intval($param['min']); else $min=0; 27 27 if (isset($param['ok'])) $ok=intval($param['ok']); else $ok=0; 28 if (isset($param['data_in'])) get_magic_quotes_gpc() ? $data_in=$param['data_in']:$data_in=addslashes($param['data_in']); else $data_in='';29 if (isset($param['data_fine'])) get_magic_quotes_gpc() ? $data_fine=$param['data_fine']:$data_fine=addslashes($param['data_fine']); else $data_fine='';30 28 if (isset($param['do'])) get_magic_quotes_gpc() ? $do=$param['do']:$do=addslashes($param['do']); else $do=''; 31 29 if (isset($param['referendum'])) get_magic_quotes_gpc() ? $referendum=$param['referendum']:$referendum=addslashes($param['referendum']); else $referendum=''; -
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.