1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| #!/usr/bin/perl
use warnings;
use strict;
use CGI;
use Encode;
my $query = new CGI;
print $query->header( -lang => 'fr-FR', -charset => 'utf-8' );
print $query->start_html(
-title => "appli",
-base => $query->url( -base ),
-target => '_self',
-meta => { 'keywords' => 'traçabilité' }
); print "<h1>testé</H1>";
print $query->checkbox(
-name => 'downloadFullList',
-id => 'downloadFullList',
-value => 'downloadFullList',
-label => set_texte_utf8('Envoyer le résultat par e-mail')
)."<br />";
my @UsersValues;
my %UsersHash = {};
push( @UsersValues, -1,1 );
$UsersHash{-1} = set_texte_utf8('Sélectionnez un utilisateur');
$UsersHash{1} = 'Gérald';
print "<label for=\"user\">Manipulateur était : </label>";
print $query->popup_menu(
-name => 'user',
-id => 'user',
-values => \@UsersValues,
-labels => \%UsersHash
) . '<br />';
print $query->end_html();
sub set_texte_utf8 {
return encode('utf-8', shift);
} |
Partager