/[projects]/dao/DaoAdresseService/src/main/webapp/admin.jsp
ViewVC logotype

Diff of /dao/DaoAdresseService/src/main/webapp/admin.jsp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2457 by torben, Fri Mar 20 13:57:47 2015 UTC revision 2636 by torben, Thu Jul 23 07:31:35 2015 UTC
# Line 44  $(document).ready( function() { Line 44  $(document).ready( function() {
44                  $("#dbProbeContent").load("DbConnectionProbe");                          $("#dbProbeContent").load("DbConnectionProbe");        
45          });          });
46                    
47            var options = {
48                        //Boolean - Whether we should show a stroke on each segment
49                        segmentShowStroke : true,
50    
51                        //String - The colour of each segment stroke
52                        segmentStrokeColor : "#fff",
53    
54                        //Number - The width of each segment stroke
55                        segmentStrokeWidth : 2,
56    
57                        //Number - The percentage of the chart that we cut out of the middle
58                        percentageInnerCutout : 50, // This is 0 for Pie charts
59    
60                        //Number - Amount of animation steps
61                        animationSteps : 10,
62    
63                        //String - Animation easing effect
64                        animationEasing : "easeOutBounce",
65    
66                        //Boolean - Whether we animate the rotation of the Doughnut
67                        animateRotate : true,
68    
69                        //Boolean - Whether we animate scaling the Doughnut from the centre
70                        animateScale : false,
71    
72                    };
73            
74            
75            if ( "<c:out value="${stats.direkteCount}"></c:out>" != "") {  
76                    var data = [
77                                {
78                                    value: <c:out value="${stats.direkteCount}"></c:out>,
79                                    color: "#46BFBD", //grøn
80                                    highlight: "#5AD3D1",
81                                    
82                                    label: "Direkte"
83                                },
84                                {
85                                    value: <c:out value="${stats.extendedCount}"></c:out>,
86                                    color: "#FDB45C", //gul
87                                    highlight: "#FFC870",
88                                    label: "Udvidet"
89                                },
90                                {
91                                    value: <c:out value="${stats.hundredePctCount}"></c:out>,
92                                    color: "#949FB1", //grey
93                                    highlight: "#A8B3C5",
94                                    label: "100%"
95                                }
96                                ,
97                                {
98                                    value: <c:out value="${stats.ikkeDaekketCount}"></c:out>,
99                                    color:"#F7464A", //rød
100                                    highlight: "#FF5A5E",
101                                    label: "Ikke dækket"
102                                }
103                            ]
104                    
105                    // Get context with jQuery - using jQuery's .get() method.
106                    var ctx = $("#myChart").get(0).getContext("2d");
107                    // This will get the first returned node in the jQuery collection.
108                    var myNewChart = new Chart(ctx).Pie(data,options);
109                    
110            }
111                    
112                    
113                    
# Line 79  $(document).ready( function() { Line 143  $(document).ready( function() {
143                                  </tr>                                  </tr>
144                                  <tr>                                  <tr>
145                                          <td>Ikke dækket: </td>                                          <td>Ikke dækket: </td>
146                                          <td align="right" target='_blank'>                                          <td align="right">
147                                                  <a href='CsvUdtraek?type=ikkedaekket'><c:out value="${stats.ikkeDaekketCount}"></c:out></a>                                                  <a href='CsvUdtraek?type=ikkedaekket' target='_blank'><c:out value="${stats.ikkeDaekketCount}"></c:out></a>
148                                          </td>                                          </td>
149                                  </tr>                                  </tr>
150                                    <tr>
151                                            <td>Total: </td>
152                                            <td align="right"><c:out value="${stats.totalCount}"></c:out></td>
153                                    </tr>
154                          </table>                          </table>
155                            
156                            <canvas id="myChart" width="150" height="150"></canvas>
157                                    
158              </c:when>              </c:when>
159              <c:otherwise>              <c:otherwise>
# Line 119  $(document).ready( function() { Line 189  $(document).ready( function() {
189          <button type="button" class="btn" id="dbConnectionProbe">Test Connection</button><br>          <button type="button" class="btn" id="dbConnectionProbe">Test Connection</button><br>
190          <span id="dbProbeContent"></span>          <span id="dbProbeContent"></span>
191                    
192            <h3>Pages</h3>
193            <ul>
194                    <li><a href='CsvUdtraek'>CSV Udtr&aelig;k</a></li>
195                    <li><a href='inspectData.jsp'>Inspect Data</a></li>
196            </ul>
197    
198            <h3>Software</h3>
199            <table>
200                                    <tr>
201                                            <td>SVN version: </td>
202                                            <td align="right"><c:out value="${scmrevision}"></c:out></td>
203                                    </tr>
204                                    <tr>
205                                            <td>Build Time: </td>
206                                            <td align="right"><c:out value="${buildtime}"></c:out></td>
207                                    </tr>
208            </table>
209            
210            
211                    
212                    
213            
# Line 140  $(document).ready( function() { Line 229  $(document).ready( function() {
229    
230    
231      </jsp:body>      </jsp:body>
 </t:genericpage>  
232    </t:genericpage>

Legend:
Removed from v.2457  
changed lines
  Added in v.2636

  ViewVC Help
Powered by ViewVC 1.1.20