Changeset 1400 for trunk/LATMOS-Accounts-Web/root/html
- Timestamp:
- 08/26/15 18:16:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/root/html/summary/rh/index.tt
r1362 r1400 1 1 2 <h3>Compte par département</h3>2 <h3>Comptes actif par département</h3> 3 3 <div> 4 4 [% r = c.forward('/json/stat/dpmt') %] 5 6 [% total = 0 %] 7 [% FOREACH row = r %] 8 [% total = total + row.1 %] 9 [% END %] 5 10 6 11 [% FOREACH row = r %] … … 12 17 <th>[% row.0 | html %]</th> 13 18 <td>[% row.1 %]</td> 19 <td>[% row.1 / total * 100 | format('%.2f') %] %</td> 14 20 </tr> 15 21 16 22 [% IF loop.last %] 23 <tr> 24 <th>Total:</th> 25 <td>[% total %]</td> 26 <td> 100 %</td> 27 </tr> 17 28 </table> 18 29 [% END %] … … 37 48 { 38 49 title: ' ', 39 50 seriesDefaults: { 40 51 shadow: false, 41 52 renderer: jQuery.jqplot.PieRenderer, 42 53 rendererOptions: { padding: 2, sliceMargin: 2, showDataLabels: true } 43 44 54 }, 55 legend: { show:true, location: 'e' } 45 56 46 57 … … 57 68 </script> 58 69 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> 60 71 </div> 61 72 62 73 63 <h3>Compte par contrat</h3>74 <h3>Comptes actifs par Statut</h3> 64 75 65 76 [% r = c.forward('/json/stat/employment') %] 77 78 [% total = 0 %] 79 [% FOREACH row = r %] 80 [% total = total + row.1 %] 81 [% END %] 66 82 67 83 [% FOREACH row = r %] … … 73 89 <th>[% row.0 | html %]</th> 74 90 <td>[% row.1 %]</td> 91 <td>[% row.1 / total * 100 | format('%.2f') %] %</td> 75 92 </tr> 76 93 77 94 [% IF loop.last %] 95 <tr> 96 <th>Total:</th> 97 <td>[% total %]</td> 98 <td> 100 %</td> 99 </tr> 78 100 </table> 79 101 [% END %] … … 111 133 </script> 112 134 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> 114 136
Note: See TracChangeset
for help on using the changeset viewer.