9 use HTML::Template::Pro;
13 my $dbh = C4::Context->dbh;
15 my $op = $query->param('op');
16 #my $prof_code = $query->param('prof_code');
17 my $prof_id = $query->param('prof_id');
18 #my $printername = $query->param('printername');
19 #my $tmpl_id = $query->param('tmpl_id');
20 #my $paper_bin = $query->param('paper_bin');
21 #my $offset_horz = $query->param('offset_horz');
22 #my $offset_vert = $query->param('offset_vert');
23 #my $creep_horz = $query->param('creep_horz');
24 #my $creep_vert = $query->param('creep_vert');
26 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
28 template_name => "labels/label-profiles.tmpl",
32 flagsrequired => { catalogue => 1 },
39 if ( $op eq 'delete' ) {
40 my $dberror = DeleteProfile($prof_id);
41 warn "DB returned error: $dberror" if $dberror;
44 @resultsloop = GetAllPrinterProfiles();
47 resultsloop => \@resultsloop,
50 output_html_with_http_headers $query, $cookie, $template->output;