Hi,
Ok, please try this.
format_multi_select
my @cut = split(/\n/, $_[0]);
use Data::Dumper;
my @loop;
foreach (@cut) {
push @loop, { value => $_ };
}
return { multi_select_loop => \@loop }
}
..then call with:
<%format_multi_select($Region)%>
<%loop multi_select_loop%>
<img border="0" src="<%config.build_root_url%>/flags/<%value%>.gif" height="14" width="25" border=0></a>
<%endloop%>
<%endif%>
That should do the trick =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Ok, please try this.
format_multi_select
Code:
sub { my @cut = split(/\n/, $_[0]);
use Data::Dumper;
my @loop;
foreach (@cut) {
push @loop, { value => $_ };
}
return { multi_select_loop => \@loop }
}
..then call with:
Code:
<%if Region%> <%format_multi_select($Region)%>
<%loop multi_select_loop%>
<img border="0" src="<%config.build_root_url%>/flags/<%value%>.gif" height="14" width="25" border=0></a>
<%endloop%>
<%endif%>
That should do the trick =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!