Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
#*
2
 * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
3
 *
4
 * Licensed to the Apache Software Foundation (ASF) under one
5
 * or more contributor license agreements.  See the NOTICE file
6
 * distributed with this work for additional information
7
 * regarding copyright ownership.  The ASF licenses this file
8
 * to you under the Apache License, Version 2.0 (the
9
 * "License"); you may not use this file except in compliance
10
 * with the License.  You may obtain a copy of the License at
11
 *
12
 *  http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing,
15
 * software distributed under the License is distributed on an
16
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
 * KIND, either express or implied.  See the License for the
18
 * specific language governing permissions and limitations
19
 * under the License.
20
 *#
21
#set($webTable=$tag)
22
#set($tableModel=$webTable.Model)
23
 
24
 
25
#if($tableModel)
26
		<p align="center">
27
			<table bgcolor="white" border="0" cellpadding="1" cellspacing="0" >
28
				<tr>
29
					<td>
30
						<table  border="0" cellpadding="2" cellspacing="1">
31
 
32
                            <tr bgcolor="yellow">
33
 
34
                            #*
35
                                Show the visible column names.  Use the display name that can
36
                                be set in the jsp.
37
                            *#
38
                            #foreach($curColumn in $webTable.Columns)
39
                                #if($curColumn.isVisible())
40
                                        <th>
41
 
42
                                            #if($webTable.isSortable())
43
                                                <table border="0" cellspacing="0" cellpadding="0">
44
												<tr>
45
												    <td>
46
												        $curColumn.DisplayName
47
												    </td>
48
												    <td>
49
												        <table border="0" cellspacing="0" cellpadding="0">
50
												            <tr>
51
                                                                <td align="bottom">
52
 
53
                                                                    #if(($webTable.sortColumn == $curColumn.offset) && ($webTable.sortOrder == 'ASC'))
54
                                                                        <img src="#tag( URL "value='/images/sorted_asc.gif'")" border="0" align="bottom" />                                                                    #else
55
                                                                        <a href="#bodytag( URL )
56
                                                                                    #param( $webTable.sortColumnLinkName $curColumn.offset)
57
                                                                                    #param( $webTable.sortOrderLinkName 'ASC')
58
                                                                                 #end">
59
                                                                       <img src="#tag( URL "value='/images/unsorted_asc.gif'")" border="0" align="bottom" /></a>
60
                                                                    #end
61
                                                                </td>
62
												            </tr>
63
												            <tr>
64
 
65
                                                                <td align="top">
66
                                                                    #if(($webTable.sortColumn == $curColumn.offset) && ($webTable.sortOrder == 'DESC'))
67
                                                                        <img src="#tag( URL "value='/images/sorted_desc.gif'")" border="0" align="top" />
68
                                                                    #else
69
                                                                        <a href="#bodytag( URL )
70
                                                                                    #param( $webTable.sortColumnLinkName $curColumn.offset)
71
                                                                                    #param( $webTable.sortOrderLinkName 'DESC')
72
                                                                                  #end"><img src="#tag( URL "value='/images/unsorted_desc.gif'")" border="0" align="top" /></a>
73
                                                                    #end
74
                                                                </td>
75
                                                            </tr>
76
												        </table>
77
 
78
												    </td>
79
												</tr>
80
												</table>
81
                                            #else
82
                                                $curColumn.DisplayName
83
                                            #end
84
                                        </th>
85
                                #end
86
                            #end
87
                            </tr>
88
                             #foreach($curRow in $webTable.RowIterator)
89
                                <tr #if($velocityCount % 2 == 1) bgcolor="EEEEFF" #else bgcolor="FFFFFF" #end/>
90
                                #foreach($curColumn in $curRow)
91
                                <td>$curColumn</td>
92
 
93
                                #end
94
                             #end
95
						</table>
96
					</td>
97
				</tr>
98
			</table>
99
		</p>
100
 
101
#end