/[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 2482 by torben, Mon Mar 23 14:36:21 2015 UTC revision 2769 by torben, Thu Nov 5 08:06:00 2015 UTC
# Line 32  function refreshLoaderStatus() { Line 32  function refreshLoaderStatus() {
32    
33  $(document).ready( function() {  $(document).ready( function() {
34          $("#reloadData").click(function() {          $("#reloadData").click(function() {
35                  $.get("admin?reload=1");                  $.get("admin?reload=1&trigger=Manual");
36                                    
37                  $(this).text("Running")                  $(this).text("Running")
38                          .removeClass("btn-success")                          .removeClass("btn-success")
# 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 75  $(document).ready( function() { Line 139  $(document).ready( function() {
139                                  </tr>                                  </tr>
140                                  <tr>                                  <tr>
141                                          <td>100%: </td>                                          <td>100%: </td>
142                                          <td align="right"><c:out value="${stats.hundredePctCount}"></c:out></td>                                          <td align="right">
143                                                    <a href='CsvUdtraek?type=100pct' target='_blank'><c:out value="${stats.hundredePctCount}"></c:out></a>
144                                            </td>
145                                  </tr>                                  </tr>
146                                  <tr>                                  <tr>
147                                          <td>Ikke dækket: </td>                                          <td>Ikke dækket: </td>
148                                          <td align="right" target='_blank'>                                          <td align="right">
149                                                  <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>
150                                          </td>                                          </td>
151                                  </tr>                                  </tr>
152                                    <tr>
153                                            <td>Total: </td>
154                                            <td align="right"><c:out value="${stats.totalCount}"></c:out></td>
155                                    </tr>
156                          </table>                          </table>
157                            
158                            <canvas id="myChart" width="150" height="150"></canvas>
159                                    
160              </c:when>              </c:when>
161              <c:otherwise>              <c:otherwise>
# Line 122  $(document).ready( function() { Line 194  $(document).ready( function() {
194          <h3>Pages</h3>          <h3>Pages</h3>
195          <ul>          <ul>
196                  <li><a href='CsvUdtraek'>CSV Udtr&aelig;k</a></li>                  <li><a href='CsvUdtraek'>CSV Udtr&aelig;k</a></li>
197                    <li><a href='inspectData.jsp'>Inspect Data</a></li>
198          </ul>          </ul>
199    
200            <h3>Software</h3>
201            <table>
202                                    <tr>
203                                            <td>SVN version: </td>
204                                            <td align="right"><c:out value="${scmrevision}"></c:out></td>
205                                    </tr>
206                                    <tr>
207                                            <td>Build Time: </td>
208                                            <td align="right"><c:out value="${buildtime}"></c:out></td>
209                                    </tr>
210            </table>
211            
212                    
213                    
214                    
# Line 132  $(document).ready( function() { Line 218  $(document).ready( function() {
218            
219      <div class="col-sm-8">      <div class="col-sm-8">
220        <h3>Runtime options</h3>        <h3>Runtime options</h3>
221        <iframe src="ConfigServlet" width="100%" frameborder="0" height="250">        <iframe src="ConfigServlet" width="100%" height="250" style="border-width: 0px;">
222        </iframe>        </iframe>
223                
224                
225        <iframe src="CircuitBreakerServlet" width="100%" frameborder="0" height="450">        <iframe src="CircuitBreakerServlet" width="100%" height="450" style="border-width: 0px;">
226        </iframe>        </iframe>
227    
228      </div>      </div>
# Line 145  $(document).ready( function() { Line 231  $(document).ready( function() {
231    
232    
233      </jsp:body>      </jsp:body>
 </t:genericpage>  
234    </t:genericpage>

Legend:
Removed from v.2482  
changed lines
  Added in v.2769

  ViewVC Help
Powered by ViewVC 1.1.20