Changeset 235 for trunk/admin/modules/Elezioni/ele_riepilogo.php
- Timestamp:
- May 31, 2015, 1:59:14 AM (9 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin
-
Property svn:ignore
set to
config.php
-
Property svn:ignore
set to
-
trunk/admin/modules/Elezioni/ele_riepilogo.php
r208 r235 58 58 ECHO "<TR><TH>".number_format($totel,0,',','.')."</TH><TH>".number_format($totm,0,',','.')."</TH><TH>".number_format($totf,0,',','.')."</TH><TH>".number_format($votm,0,',','.')."</TH><TH>".number_format($votf,0,',','.')."</TH><TH>".number_format($votc,0,',','.')."</TH></TR></table><br/>"; 59 59 ECHO "</fieldset><br/><br/><br/>"; 60 61 60 62 $totnulli=$nulli+$bianchi+$contestati+$votinulli; 61 63 if ($votog) echo "<fieldset><legend>"._VOTI_LISTA."</legend>"; … … 64 66 ECHO "<TR><TH>".number_format($validi,0,',','.')."</TH><TH>".number_format($nulli,0,',','.')."</TH><TH>".number_format($bianchi,0,',','.')."</TH><TH>".number_format($contestati,0,',','.')."</TH><TH>".number_format($votinulli,0,',','.')."</TH><TH>".number_format($totnulli,0,',','.')."</TH></TR></table><br/>"; 65 67 ECHO "</fieldset><br/><br/><br/>"; 68 69 66 70 if ($genere==5 and !$votog) { 67 71 $totnullil=$nullilista+$contestatilista; 68 72 $id_conf=0; 69 $res = mysql_query("SELECT t1.id_conf,t1.id_fascia, t2.limite from ".$prefix."_ele_cons_comune as t1 left join ".$prefix."_ele_conf as t2 on t1.id_conf=t2.id_conf where t1.id_cons='$id_cons'", $dbi);70 if($res) list($id_conf,$fascia,$limite ) = mysql_fetch_row($res);73 $res = mysql_query("SELECT t1.id_conf,t1.id_fascia, t2.limite, t1.solo_gruppo from ".$prefix."_ele_cons_comune as t1 left join ".$prefix."_ele_conf as t2 on t1.id_conf=t2.id_conf where t1.id_cons='$id_cons'", $dbi); 74 if($res) list($id_conf,$fascia,$limite,$dettnulli) = mysql_fetch_row($res); 71 75 if ($id_conf and $fascia<=$limite) { 72 76 echo "<fieldset><legend>"._VOTI_LISTA."</legend>"; … … 74 78 ECHO "<TR><TH>".number_format($validi,0,',','.')."</TH><TH>".number_format($nulli,0,',','.')."</TH><TH>".number_format($bianchi,0,',','.')."</TH><TH>".number_format($contestati,0,',','.')."</TH><TH>".number_format($votinulli,0,',','.')."</TH><TH>".number_format($totnulli,0,',','.')."</TH></TR></table><br/>"; 75 79 ECHO "</fieldset><br/><br/><br/>"; 80 76 81 }else{ 77 echo "<fieldset><legend>"._VOTI_LISTA."</legend>"; 82 if ($dettnulli){ 83 $res = mysql_query("SELECT id_gruppo,num_gruppo,descrizione from ".$prefix."_ele_gruppo where id_cons='$id_cons' order by num_gruppo", $dbi); 84 85 echo "<fieldset><legend>"._GRUPPO."</legend>"; 86 echo "<table border=\"1\" width=\"100%\"><tr><th colspan=\"2\" rowspan=\"2\" ALIGN=\"CENTER\"><b>Candidato</b></th><th rowspan=\"2\" ALIGN=\"CENTER\">"._VALIDI."</th><th colspan=\"2\" ALIGN=\"CENTER\">"._SOLO_GRUPPO."</th></tr><tr><th ALIGN=\"CENTER\">Senza indicazione di lista</th><th>"._VOTINULLI." di Lista</th></TR>"; 87 while(list($id_gruppo,$num_gruppo,$desc) = mysql_fetch_row($res)){ 88 $resv = mysql_query("SELECT sum(voti),sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_gruppo='$id_gruppo'", $dbi); 89 list($voti,$solo_gruppo)=mysql_fetch_row($resv); 90 $resv = mysql_query("SELECT sum(t1.nulli_lista) from ".$prefix."_ele_voti_lista as t1 left join ".$prefix."_ele_lista as t2 on t1.id_lista=t2.id_lista where t2.id_gruppo='$id_gruppo'", $dbi); 91 list($nulli_lista)=mysql_fetch_row($resv); 92 93 ECHO "<TR><TD>".$num_gruppo."</TD><TD>".$desc."</TD><TD ALIGN=\"RIGHT\">".number_format($voti,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($solo_gruppo,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($nulli_lista,0,',','.')."</TD></TD></TR>"; 94 } 95 ECHO "</table><br/></fieldset><br/><br/><br/>"; 96 97 } 98 echo "<fieldset><legend>"._VOTI_LISTA."</legend>"; 78 99 echo "<table border=\"1\" width=\"100%\"><tr><th>"._VALIDI."</th><th>"._VOTINULLI."</th><th>"._CONTESTATI."</th>"; 79 100 // if ($genere==5 and !$votog)
Note:
See TracChangeset
for help on using the changeset viewer.