diff options
author | ivan <ivan> | 2008-04-13 10:20:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-04-13 10:20:09 +0000 |
commit | 0fa6b21504e13fb8997eec6961623c7ab52be733 (patch) | |
tree | d3ebef991382115a3aeca28a99aa08fb7df11a99 /httemplate/elements/selectlayers.html | |
parent | 7aef77aa2c25b7bca3569376f08b1d2cc57a1592 (diff) |
add a tr- for just the select bit of a selectlayers...
Diffstat (limited to 'httemplate/elements/selectlayers.html')
-rw-r--r-- | httemplate/elements/selectlayers.html | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/httemplate/elements/selectlayers.html b/httemplate/elements/selectlayers.html index 4496892ff..302621775 100644 --- a/httemplate/elements/selectlayers.html +++ b/httemplate/elements/selectlayers.html @@ -50,13 +50,15 @@ Example: # ("what" is the element) 'js_only' => 0, #set true to return only the JS portions 'html_only' => 0, #set true to return only the HTML portions + 'select_only' => 0, #set true to return only the <SELECT> HTML + 'layers_only' => 0, #set true to return only the layers <DIV> HTML ) </%doc> -% unless ( $opt{html_only} || $opt{js_only} ) { +% unless ( grep $opt{$_}, qw(html_only js_only select_only layers_only) ) { <SCRIPT TYPE="text/javascript"> % } -% unless ( $opt{html_only} ) { +% unless ( grep $opt{$_}, qw(html_only select_only layers_only) ) { //alert('start function define'); function <% $key %>changed(what) { @@ -86,11 +88,11 @@ Example: } //alert('end function define'); % } -% unless ( $opt{html_only} || $opt{js_only} ) { +% unless ( grep $opt{$_}, qw(html_only js_only select_only layers_only) ) { </SCRIPT> % } % -% unless ( $opt{js_only} ) { +% unless ( grep $opt{$_}, qw(js_only layers_only) ) { <SELECT NAME = "<% $key %>" ID = "<% $key %>" @@ -109,8 +111,15 @@ Example: </SELECT> +% } +% unless ( grep $opt{$_}, qw(js_only select_only layers_only) ) { + <% ref($between) ? &{$between}($key) : $between %> +% } +% +% unless ( grep $opt{$_}, qw(js_only select_only) ) { + % foreach my $layer ( keys %$options ) { <DIV ID="<% $key %>d<% $layer %>" |