Changeset 68


Ignore:
Timestamp:
Mar 31, 2010, 4:51:50 PM (14 years ago)
Author:
roby
Message:

gestione percentuali applicata a grafici, sistemazione xhtml in ele_voti, prova help in inglese

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_voti.php

    r63 r68  
    12571257                numeri_sezione(8);
    12581258                echo "<td></td></tr></table>\n";*/
    1259         }
    1260 echo"</td></tr></table>";
     1259                echo"</td></tr></table>";
     1260        }
    12611261
    12621262 switch ($op){
  • trunk/admin/modules/Elezioni/language/en/ele.html

    r53 r68  
    44<tr>
    55<td style="height: 33px;">
    6 <p style="margin-bottom: 0cm; text-align: center; width: 576px;"><b>Informazioni generali per l'avvio e l'uso di EleOnLine.</b></p>
     6
    77</td>
    88</tr><tr>
    99<td style="height: 89px;">
    10 <p style="margin-bottom: 0cm; text-align: center; width: 576px;">Il menu di aiuto contestuale, posto in cima alle voci di menu, vuole facilitare la comprensione delle funzioni del programma. Stando nella maschera di una funzione e cliccando sulla voce di menu "Help Contestuale" si attiva una scheda con le istruzioni per la gestione di quella funzione.<br> Attualmente e' in fase di completamento ed Ú disponibile solo per le voci: "Configurazione" - "Consultazione" - "Affluenze" - "Autorizza Comuni" del menu del Superutente e "Consultazioni" del menu dell'Amministratore.</td></tr><tr><td>
     10<p style="margin-bottom: 0cm; text-align: center; width: 576px;">The help menu listing, placed on top of the menu items, will facilitate the understanding of the functions of the program. Remaining in the form of a function and clicking on menu item "Help OnLine" activates a card with instructions on how to handle that function. <br> Available only for the entries: "Configuring"-"Consultation"-"Affluence"-"Allow municipalities" menu of the superuser and "Consultations" in the menu of the Administrator.</td></tr><tr><td>
    1111<p style="margin-bottom: 0cm; text-align: center; width: 576px;">
    12 <b>Operazioni da effettuare per la prima attivazione del sito da parte dell'utente Superuser:</b></td></tr><tr><td>
     12<b>Tasks Superuser must to perform for the first activation of the Site :</b></td></tr><tr><td>
    1313<p style="margin-bottom: 0cm; text-align: left; width: 576px;">
    14 1) Comuni: inserire almeno un comune<br>
    15 2) Amministratori: inserire la password per l'Amministratore principale del comune inserito<br>
    16 3) Consultazione: inserire una consultazione<br>
    17 4) Affluenze: impostare gli orari di rilevazione delle affluenze per la consultazione<br>
    18 5) Autorizza comuni: scegliere il comune da autorizzare, lasciare "stato" su attiva e confermare<br>
    19 6) Configurazione sito: impostare tutti i parametri che interessano, in particolare scegliere il comune di default<br>
     141) Municipalities: enter at least one city <br>
     152) Administrators: Enter the password for the Administrator <br>
     163) Consultation: Fill a consultation <br>
     174) Turnout: setting the times of detection of turnouts for consultation <br>
     185) Authorizes municipalities: the town choose to be authorized, leave "state" on active and confirm <br>
     196) Site Configuration: Set all the parameters of interest, in particular to choose the default communication<br>
     20<b></p>
     21</td>
     22</tr>
     23
     24</tbody>
     25</table>
     26
     27
     28<table style="width: 686px; height: 150px; color: #000000;">
     29
     30<tbody>
     31<tr>
     32<td style="height: 33px;">
     33<p style="margin-bottom: 0cm; text-align: center; width: 576px;"><b>General information for starting and using Eleonline.</b></p>
     34</td>
     35</tr><tr>
     36<td style="height: 89px;">
     37<p style="margin-bottom: 0cm; text-align: center; width: 576px;">The help menu listing, placed on top of the menu items, will facilitate the understanding of the functions of the program. Remaining in the form of a function and clicking on menu item "Help OnLine" activates a card with instructions on how to handle that function. <br> Available only for the entries: "Configuring"-"Consultation"-"Affluence"-"Allow municipalities" menu of the superuser and "Consultations" in the menu of the Administrator.</td></tr><tr><td>
     38<p style="margin-bottom: 0cm; text-align: center; width: 576px;">
     39<b>Tasks Superuser must to perform for the first activation of the Site :</b></td></tr><tr><td>
     40<p style="margin-bottom: 0cm; text-align: left; width: 576px;">
     411) Municipalities: enter at least one city <br>
     422) Administrators: Enter the password for the Administrator <br>
     433) Consultation: Fill a consultation <br>
     444) Turnout: setting the times of detection of turnouts for consultation <br>
     455) Authorizes municipalities: the town choose to be authorized, leave "state" on active and confirm <br>
     466) Site Configuration: Set all the parameters of interest, in particular to choose the default communication<br>
     47
    2048<b>Nota:</b> I punti 3, 4, 5 sono i soli necessari per l'inserimento delle consultazioni successive alla prima installazione</td></tr><tr><td>
    2149<p style="margin-bottom: 0cm; text-align: center; width: 576px;">
  • trunk/client/modules/Elezioni/grafici.php

    r65 r68  
    247247                from ".$prefix."_ele_voti_ref  where id_cons=$id_cons group by id_gruppo having tot>0",$dbi);
    248248        }
    249 
    250249        while  (list($tot_votanti,$validi,$nulli,$bianchi,$contestati,$id)  = mysql_fetch_row($res1)){
     250                $arperc=array();
     251                $arval=array($validi,$nulli,$bianchi,$contestati);
     252                $arperc=arrayperc($arval,$tot_votanti);
    251253                $tot_votanti=$validi+$bianchi+$nulli+$contestati;
    252                 $perc_validi=number_format($validi*100/$tot_votanti,2);
    253                 $perc_nulli=number_format($nulli*100/$tot_votanti,2);
    254                 $perc_bianchi=number_format($bianchi*100/$tot_votanti,2);
    255                 $perc_conte=number_format($contestati*100/$tot_votanti,2);
     254                $perc_validi=number_format($arperc[0],2);
     255                $perc_nulli=number_format($arperc[1],2);
     256                $perc_bianchi=number_format($arperc[2],2);
     257                $perc_conte=number_format($arperc[3],2);
    256258                $perc_votanti=number_format($tot_votanti*100/$tot_aventi,2);
    257259                $non_votanti=($tot_aventi - $tot_votanti);
     
    433435                                $gruppinum=mysql_num_rows($res);
    434436                                $altrivoti=0;
     437####calcolo percentuale
     438                                $arvoti=array();
     439                                $arperc=array();
     440                                while (list($id,$num,$descrizione,$voti)  = mysql_fetch_row($res)){
     441                                        $arvoti[$id]=$voti;
     442                                }
     443                                $arperc=arrayperc($arvoti,$tot);
     444                                mysql_data_seek($res,0);
     445####
    435446                                while (list($id,$num,$descrizione,$voti)  = mysql_fetch_row($res)){
    436447
     
    469480
    470481
    471                                 $prov=number_format($voti*100/$tot,3);
    472482                                $votiv=number_format($voti,0,',','.');
    473483                                // formattazione numeri perc
    474                                 $prov=number_format($prov,2); // funzione
    475 
     484                                $prov=number_format($arperc[$id],2);
    476485
    477486                        // sviluppo tabella dati
Note: See TracChangeset for help on using the changeset viewer.