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

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-gis/src/main/webapp/dhis-web-gis/listLegend.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
<h2>$i18n.getString( "legend" )</h2>
 
2
<form name="listLegend" action="addLegend.action" method="POST">
 
3
<table class="mainPageTable">
 
4
        <tr>
 
5
                <td></td>
 
6
                <td> 
 
7
                        
 
8
                </td>
 
9
                <td align="right">
 
10
                        <input type="submit" value="$i18n.getString( "add" )" />
 
11
                </td>           
 
12
        </tr>
 
13
  <tr>
 
14
    <td style="vertical-align:top" colspan=3>
 
15
      <table id="list" style="width:100%">
 
16
                  <tr>
 
17
            <th>$i18n.getString( "name" )</th>
 
18
                        <th>$i18n.getString( "color" )</th>
 
19
                        <th>$i18n.getString( "min" )</th>
 
20
                        <th>$i18n.getString( "max" )</th>
 
21
            <th>$i18n.getString( "operations" )</th>
 
22
          </tr>
 
23
                  <tbody>
 
24
            #set( $mark = false )
 
25
            #foreach( $legend in $legends )
 
26
                                <tr #if( $mark ) style="background-color:#dddddd" #end>
 
27
                                        <td>$encoder.htmlEncode( $legend.name )</td>
 
28
                                        <td bgcolor="#$legend.color">#$encoder.htmlEncode( $legend.color )</td>
 
29
                                        <td>$encoder.htmlEncode( $legend.min )</td>
 
30
                                        <td>#if($legend.autoCreateMax==1) $i18n.getString( "auto_create_max" ) #else $encoder.htmlEncode( $legend.max ) #end</td>
 
31
                                        <td>
 
32
                                                <a href="javascript:editLegend('$legend.id');" title="$i18n.getString( "edit" )"><img src="../images/edit.png" width="16" height="16" alt="$i18n.getString( "edit" )"></a> &nbsp;
 
33
                                                <a href="javascript:removeLegend( '$legend.id' )" title="$i18n.getString( "remove" )"><img src="../images/delete.png" width="16" height="16" alt="$i18n.getString( "remove" )"></a>
 
34
                                                <a href="javascript:showLegendDetails( $legend.id )" title="$i18n.getString( "show_details" )"><img src="../images/information.png" width="16" height="16" alt="$i18n.getString( "show_details" )"></a>
 
35
                                        </td>
 
36
                                </tr>
 
37
                                #if( $mark )
 
38
                                #set( $mark = false )
 
39
                          #else
 
40
                                #set( $mark = true )
 
41
                          #end
 
42
                        #end
 
43
                  </tbody>
 
44
          </table>
 
45
         </td>
 
46
         <td>
 
47
                <div style="position:fixed; width:200px; height:300px; border:#0000CC thin solid; background-color:#6699FF;display:none">
 
48
                  <table width="100%" border="0">
 
49
                        <tr>
 
50
                          <td colspan="2">&nbsp;</td>
 
51
                        </tr>
 
52
                        <tr>
 
53
                          <td>&nbsp;</td>
 
54
                          <td><div id="name" style="width:100%"></div></td>
 
55
                        </tr>
 
56
                        <tr>
 
57
                          <td>&nbsp;</td>
 
58
                          <td><div id="color" style="width:100%"></div></td>
 
59
                        </tr>
 
60
                        <tr>
 
61
                          <td>&nbsp;</td>
 
62
                          <td><div id="min" style="width:100%"></div></td>
 
63
                        </tr>
 
64
                        <tr>
 
65
                          <td>&nbsp;</td>
 
66
                          <td><div id="max" style="width:100%"></div></td>
 
67
                        </tr>
 
68
                        <tr>
 
69
                          <td colspan="2"><div id="indicators" style="width:100%">
 
70
                            </div></td>
 
71
                        </tr>
 
72
                  </table>
 
73
                </div>
 
74
         </td>
 
75
  </tr>
 
76
  
 
77
</table>
 
78
</form>
 
79
 
 
80
<script type="text/javascript">
 
81
function removeLegend(id){
 
82
        window.location = "deleteLegend.action?legendId=" + id;
 
83
}
 
84
function editLegend(id){
 
85
        window.location = "updateLegend.action?legendId=" + id;
 
86
}
 
87
</script>
 
 
b'\\ No newline at end of file'