summaryrefslogtreecommitdiff
path: root/pre_enqueue.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pre_enqueue.pl')
-rwxr-xr-xpre_enqueue.pl12
1 files changed, 7 insertions, 5 deletions
diff --git a/pre_enqueue.pl b/pre_enqueue.pl
index 7b3df63..fea581e 100755
--- a/pre_enqueue.pl
+++ b/pre_enqueue.pl
@@ -3,18 +3,20 @@ use strict;
use CGI qw(:standard);
use CGI::Carp 'fatalsToBrowser';
use local::db;
+use local::menu;
my @cat = local::db::category->retrieve_all();
die "Ungültige category" if not @cat;
print header;
-print start_html('nzbget pre_enqueue');
+my $menu = new local::menu(%ENV);
+print $menu->start_html('nzbget pre_enqueue');
print CGI::start_form(-action=>'/cgi-bin/nzbget/enqueue.pl');
-print table(
+print table({class=>'nohigh'},
Tr(td(param('title'))),
Tr(td(param('description'))),
),
-table(
+table({class=>'nohigh'},
Tr(td(['name',textfield('name').hidden('description',param('description')).hidden('url',param('url')).hidden('title',param('title'))])),
Tr(td(['category',
CGI::popup_menu(
@@ -22,7 +24,7 @@ table(
-values=>[0,map {$_->name()} @cat],
-labels => {0=>'---', map { ($_->category_id() => $_->name() ) } @cat}
)])),
- Tr(td([submit()])),
+ Tr(td([' ',submit("Download starten")])),
);
print CGI::end_form;
-print end_html();
+print $menu->end_html();