~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to local/in/dhis-web-dashboard/src/main/webapp/dhis-web-dashboard/surveyAnalysisResult.vm

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<html>
 
3
<head>
 
4
<title>Survey Analysis Result Screen</title>
 
5
<link type="text/css" rel="stylesheet" media="screen" href="css/StylesForTags.css">
 
6
<script>
 
7
  var indexForChart = 0;
 
8
  var chartNamesToView = new Array();
 
9
  chartNamesToView[0] = new Array("Nothing");
 
10
  chartNamesToView[1] = new Array("Vertical3DBarChart","Horizontal3DBarChart","LineChart","LineAndBarChart","DualAxisChart","AreaChart","PieChart3D");  
 
11
  chartNamesToView[2] = new Array("Vertical3DBarChart","Horizontal3DBarChart","LineChart","LineAndBarChart","DualAxisChart","AreaChart");                                                                                                       
 
12
        
 
13
  function nextCharttoView()
 
14
   {         
 
15
     indexForChart++;
 
16
     var chartType = 0;
 
17
     var tempICount = $selectedServiceList.size();
 
18
     if(tempICount==0)  chartType=0;
 
19
     else if(tempICount==1) chartType=1;
 
20
     else chartType=2;
 
21
   
 
22
     if(indexForChart >= chartNamesToView[chartType].length) indexForChart=0;
 
23
     iframeForChart.location.href = "generateChart.action?currentChart="+chartNamesToView[chartType][indexForChart];
 
24
   }
 
25
   
 
26
   function prevCharttoView()
 
27
   {      
 
28
     indexForChart--;
 
29
     var chartType = 0;
 
30
     var tempICount = $selectedServiceList.size();
 
31
     if(tempICount==0)  chartType=0;
 
32
     else if(tempICount==1) chartType=1;
 
33
     else chartType=2;
 
34
   
 
35
     if(indexForChart < 0) indexForChart=chartNamesToView[chartType].length-1;
 
36
     iframeForChart.location.href = "generateChart.action?currentChart="+chartNamesToView[chartType][indexForChart];     
 
37
   }   
 
38
   
 
39
</script>
 
40
</head>
 
41
<body >
 
42
    <div align="right">
 
43
                                <input type="button" name="prevChartButton" id="prevChartButton" style="width: 40; height: 35; background-image: url('images/moveLeft.gif'); background-repeat: no-repeat; background-position: center; " onClick="prevCharttoView()" title="Previous">
 
44
                                <input type="button" name="nextChartButton" id="nextChartButton" style="width: 40; height: 35; background-image: url('images/moveRight.gif'); background-repeat: no-repeat; background-position: center;" onClick="nextCharttoView()" title="Next">                                                                                             
 
45
    </div> 
 
46
    <br /><br />
 
47
    
 
48
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-style: dotted" bordercolor="#111111" width="100%">
 
49
        <tr>
 
50
            <td class="TableHeadingCellStyles" style="border-style: dotted; border-width: 1">Service Name</td>            
 
51
                #foreach($xaxisvalue in $xseriesList)
 
52
                    <td class="TableHeadingCellStyles" align="center" style="border-style: dotted; border-width: 1">$xaxisvalue</td>                                 
 
53
                #end
 
54
        </tr>
 
55
                #set($count1 = 0)                               
 
56
        #foreach($onedataList in $dataList)                    
 
57
            <tr>
 
58
                <td class="TableHeadingCellStyles" style="border-style: dotted; border-width: 1">$yseriesList.get($count1)</td>
 
59
                         #foreach($data in $onedataList)
 
60
                             <td class="TableDataCellStyles" align="center" style="border-style: dotted; border-width: 1">$data</td>                                         
 
61
                         #end
 
62
                         #set($count1 = $count1 + 1)
 
63
            </tr>    
 
64
        #end    
 
65
    </table>
 
66
    
 
67
    <br />
 
68
         <div align="center">
 
69
             <iframe name="iframeForChart" id="iframeForChart" src="generateChart.action?currentChart=Vertical3DBarChart" width="850px" height="550px" scrolling=auto frameborder="0"></iframe>
 
70
         </div>    
 
71
         <br />
 
72
    #set($count1 = 0)
 
73
    #set($count2 = $indicatorListSize.intValue() - 1)
 
74
                                            #if($count2 >= 0)
 
75
             <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-style: dotted" bordercolor="#111111" width="100%">
 
76
                                                    <tr>
 
77
                                                            <td class="TableHeadingCellStyles" width="30%" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1"><font color="maroon">Indicator Names</font></td>
 
78
                                                            <td class="TableHeadingCellStyles" width="30%" colspan="2" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1"><font color="maroon">Formula</font></td>
 
79
                                                            <td class="TableHeadingCellStyles" width="20%" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1"><font color="maroon">Numerator DataElements</font></td>
 
80
                                                            <td class="TableHeadingCellStyles" width="20%" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1"><font color="maroon">Denominator DataElements</font></td>                                        
 
81
                                                    </tr>                                               
 
82
                                                    #foreach($count1 in [0..$count2])
 
83
                                                        #set($service = $selectedServiceList.get($count1))
 
84
                                                        <tr>
 
85
                                                                        <td class="TableHeadingCellStyles" width="30%" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1">$service.getName()</td>
 
86
                                                                        <td class="TableHeadingCellStyles" width="25%" align="center" style="border-left-style:dotted; border-left-width:1; border-right-width:0; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1"><u>$service.getNumeratorDescription()</u><br>$service.getDenominatorDescription()</td>
 
87
                                                                        <td class="TableHeadingCellStyles" width="5%" align="left" style="border-left-style:dotted; border-left-width:0; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1">&nbsp;X&nbsp;$service.getIndicatorType().getFactor()</td>
 
88
                                                                        <td class="TableHeadingCellStyles" width="20%" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1">$numeratorDEList.get($count1)</td>
 
89
                                                                        <td class="TableHeadingCellStyles" width="20%" style="border-left-style:dotted; border-left-width:1; border-right-width:1; border-top-style:dotted; border-top-width:1; border-bottom-style:dotted; border-bottom-width:1">$denominatorDEList.get($count1)</td>
 
90
                                                                </tr>                                                                   
 
91
                                                        #set($count1 = $count1 + 1)
 
92
                                                    #end                                                
 
93
                                                </table>
 
94
                                            #end
 
95
        </body>
 
96
</html>   
 
 
b'\\ No newline at end of file'