1
<h2>$i18n.getString( "legend" )</h2>
2
<form name="listLegend" action="addLegend.action" method="POST">
3
<table class="mainPageTable">
10
<input type="submit" value="$i18n.getString( "add" )" />
14
<td style="vertical-align:top" colspan=3>
15
<table id="list" style="width:100%">
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>
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>
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>
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>
47
<div style="position:fixed; width:200px; height:300px; border:#0000CC thin solid; background-color:#6699FF;display:none">
48
<table width="100%" border="0">
50
<td colspan="2"> </td>
54
<td><div id="name" style="width:100%"></div></td>
58
<td><div id="color" style="width:100%"></div></td>
62
<td><div id="min" style="width:100%"></div></td>
66
<td><div id="max" style="width:100%"></div></td>
69
<td colspan="2"><div id="indicators" style="width:100%">
80
<script type="text/javascript">
81
function removeLegend(id){
82
window.location = "deleteLegend.action?legendId=" + id;
84
function editLegend(id){
85
window.location = "updateLegend.action?legendId=" + id;
b'\\ No newline at end of file'