Ignore:
Timestamp:
08/26/15 18:16:51 (9 years ago)
Author:
nanardon
Message:

Add %age on statistique page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/root/html/summary/rh/index.tt

    r1362 r1400  
    11 
    2 <h3>Compte par département</h3> 
     2<h3>Comptes actif par département</h3> 
    33<div> 
    44[% r = c.forward('/json/stat/dpmt') %] 
     5 
     6[% total = 0 %] 
     7[% FOREACH row = r %] 
     8    [% total = total + row.1 %] 
     9[% END %] 
    510 
    611[% FOREACH row = r %] 
     
    1217<th>[% row.0 | html %]</th> 
    1318<td>[% row.1 %]</td> 
     19<td>[% row.1 / total * 100 | format('%.2f') %] %</td> 
    1420</tr> 
    1521 
    1622[% IF loop.last %] 
     23<tr> 
     24<th>Total:</th> 
     25<td>[% total %]</td> 
     26<td> 100 %</td> 
     27</tr> 
    1728</table> 
    1829[% END %] 
     
    3748            { 
    3849                    title: ' ', 
    39                     seriesDefaults: { 
     50                seriesDefaults: { 
    4051                shadow: false, 
    4152                renderer: jQuery.jqplot.PieRenderer, 
    4253                rendererOptions: { padding: 2, sliceMargin: 2, showDataLabels: true } 
    43               }, 
    44                     legend: { show:true, location: 'e' } 
     54            }, 
     55            legend: { show:true, location: 'e' } 
    4556 
    4657                 
     
    5768</script> 
    5869 
    59 <div id="chartdpmt" style="width:400px; height:400px; display: inline-block;"></div> 
     70<div id="chartdpmt" style="width:60%; height:500px; display: inline-block;"></div> 
    6071</div> 
    6172 
    6273 
    63 <h3>Compte par contrat</h3> 
     74<h3>Comptes actifs par Statut</h3> 
    6475 
    6576[% r = c.forward('/json/stat/employment') %] 
     77 
     78[% total = 0 %] 
     79[% FOREACH row = r %] 
     80    [% total = total + row.1 %] 
     81[% END %] 
    6682 
    6783[% FOREACH row = r %] 
     
    7389<th>[% row.0 | html %]</th> 
    7490<td>[% row.1 %]</td> 
     91<td>[% row.1 / total * 100 | format('%.2f') %] %</td> 
    7592</tr> 
    7693 
    7794[% IF loop.last %] 
     95<tr> 
     96<th>Total:</th> 
     97<td>[% total %]</td> 
     98<td> 100 %</td> 
     99</tr> 
    78100</table> 
    79101[% END %] 
     
    111133</script> 
    112134 
    113 <div id="chartemployment" style="width:50%; height:400px; display: inline-block;"></div> 
     135<div id="chartemployment" style="width:60%; height:500px; display: inline-block;"></div> 
    114136 
Note: See TracChangeset for help on using the changeset viewer.