/[pxelator]/lib/PXElator/html.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/html.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 160 by dpavlin, Wed Aug 5 23:22:17 2009 UTC revision 161 by dpavlin, Thu Aug 6 18:09:30 2009 UTC
# Line 29  sub tt { Line 29  sub tt {
29    
30  sub select {  sub select {
31          my $name = shift;          my $name = shift;
32          my $checked_option = shift;          my $selected_option = shift;
33          return join("\n"                  return join("\n"        
34                  , qq|<select type=select name=$name>|                  , qq|<select type=select name=$name>|
35                  , join("\n", map { my $checked = $_ eq $checked_option ? 'checked' : ''; qq|<option name=$_ $checked>$_</option>| } @_ )                  , join("\n", map { my $selected = $_ eq $selected_option ? 'selected' : ''; qq|<option name=$_ $selected>$_</option>| } @_ )
36                  , qq|</select>|                  , qq|</select>|
37                  , qq|</form>|                  , qq|</form>|
38          );          );

Legend:
Removed from v.160  
changed lines
  Added in v.161

  ViewVC Help
Powered by ViewVC 1.1.26