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

« back to all changes in this revision

Viewing changes to webservice/dhis-webservice-expoze/src/main/resources/cssHtmlReportTableData.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
#macro( alternate $mark )
 
3
    #if( $mark ) class="listAlternateRow"#else class="listRow"#end
 
4
#end
 
5
 
 
6
<html>
 
7
        <head>
 
8
                <link type="text/css" rel="stylesheet" href="css/stylesheet.css">
 
9
        </head>
 
10
    <body>
 
11
        <table class="listTable">
 
12
            <tr>
 
13
                <td style="text-align:center" colspan="$object.columns.values().size()"><h3>$object.name</h3></td>
 
14
            </tr>
 
15
            <tr>
 
16
            #foreach( $column in $object.columns.values() )
 
17
                <th>$column</th>
 
18
            #end
 
19
            </tr>
 
20
            #set( $mark = false )
 
21
            #foreach( $row in $object.rows )
 
22
                <tr>
 
23
                #foreach( $value in $row.values() )
 
24
                    <td#alternate( $mark )>$value</td>
 
25
                #end
 
26
                </tr>
 
27
                #if( $mark )
 
28
                    #set( $mark = false )
 
29
                #else
 
30
                    #set( $mark = true )
 
31
                #end
 
32
            #end
 
33
        </table>
 
34
    </body>
 
35
</html>