Changeset 116 for trunk/client/modules/Elezioni/index.php
- Timestamp:
- Jun 2, 2011, 8:32:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/index.php
r99 r116 663 663 664 664 665 $aff=mysql_query("select orario,data from ".$prefix."_ele_rilaff where id_cons_gen='$id_cons_gen' order by data desc", $dbi);665 $aff=mysql_query("select t3.orario,t3.data from ".$prefix."_ele_rilaff as t1 left join ".$prefix."_ele_cons_comune as t2 on t1.id_cons_gen=t2.id_cons_gen left join ".$prefix."_ele_voti_parziale as t3 on t2.id_cons=t3.id_cons where t1.id_cons_gen='$id_cons_gen' and t2.id_cons='$id_cons' order by t3.data desc, t3.orario desc limit 0,1", $dbi); 666 666 list($ora,$data) = mysql_fetch_row($aff); 667 667 668 669 $tot_rel =mysql_query("select sum(voti_uomini+voti_donne) from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' and orario='$ora' and data='$data' and id_gruppo='$id_gruppo2'", $dbi); 668 $tot_rel =mysql_query("select sum(voti_complessivi) from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' and orario='$ora' and data='$data' and id_gruppo='$id_gruppo2'", $dbi); 670 669 list($tot_relativo) = mysql_fetch_row($tot_rel); 671 670 … … 687 686 688 687 689 688 list ($ore,$minuti,$secondi)=explode(':',$ora); 690 689 $var1="<table class=\"table-80\"> 691 690 <tr> 692 691 <td class=\"redbig\"> 693 <h2> percentuale affluenze:<span class=\"redbig\"> $perc_tot% </span></h2></td>692 <h2>"._PERC_ASS." $ore,$minuti:<span class=\"redbig\"> $perc_tot% </span></h2></td> 694 693 </tr>"; 695 694
Note:
See TracChangeset
for help on using the changeset viewer.