K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / perl5 / Debconf / Element / Web /
server ip : 172.67.156.115

your ip : 172.69.58.79

H O M E


Filename/usr/share/perl5/Debconf/Element/Web/Select.pm
Size877
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified23-Feb-2014 22:30
Last accessed06-Jul-2025 09:06
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Web::Select;
use strict;
use base qw(Debconf::Element::Select);


sub show {
my $this=shift;

$_=$this->question->extended_description;
s/\n/\n<br>\n/g;
$_.="\n<p>\n";

my $default=$this->translate_default;
my $id=$this->id;
$_.="<b>".$this->question->description."</b>\n<select name=\"$id\">\n";
my $c=0;
foreach my $x ($this->question->choices_split) {
if ($x ne $default) {
$_.="<option value=".$c++.">$x\n";
}
else {
$_.="<option value=".$c++." selected>$x\n";
}
}
$_.="</select>\n";

return $_;
}


sub value {
my $this=shift;

return $this->SUPER::value() unless @_;
my $value=shift;

$this->question->template->i18n('');
my @choices=$this->question->choices_split;
$this->question->template->i18n(1);
$this->SUPER::value($choices[$value]);
}


1