label-manager.pl - purely whitespace edit, use git diff -U0 -w labels/label-manager.pl to verify
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
fc60e7413c
commit
081d40e305
1 changed files with 47 additions and 65 deletions
|
@ -64,7 +64,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
);
|
||||
|
||||
if ( $op eq 'save_conf' ) { # this early sub is depreciated, use save_layout()
|
||||
|
||||
SaveConf(
|
||||
$barcodetype, $title, $isbn,
|
||||
$issn, $itemtype, $bcn, $dcn,
|
||||
|
@ -74,8 +73,6 @@ if ( $op eq 'save_conf' ) { # this early sub is depreciated, use save_layout(
|
|||
print $query->redirect("label-home.pl");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
elsif ( $op eq 'save_layout' ) {
|
||||
save_layout(
|
||||
$barcodetype, $title, $subtitle, $isbn,
|
||||
|
@ -84,9 +81,7 @@ elsif ( $op eq 'save_layout' ) {
|
|||
$tmpl_id, $printingtype, $guidebox, $startlabel, $layoutname,
|
||||
$layout_id
|
||||
);
|
||||
|
||||
### $layoutname
|
||||
|
||||
print $query->redirect("label-home.pl");
|
||||
exit;
|
||||
}
|
||||
|
@ -98,17 +93,10 @@ add_layout(
|
|||
$tmpl_id, $printingtype, $guidebox, $startlabel, $layoutname,
|
||||
$layout_id
|
||||
);
|
||||
|
||||
### $layoutname
|
||||
|
||||
print $query->redirect("label-home.pl");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
elsif ( $op eq 'add' ) { # add item
|
||||
my $query2 = "INSERT INTO labels ( itemnumber, batch_id ) values ( ?,? )";
|
||||
my $sth2 = $dbh->prepare($query2);
|
||||
|
@ -129,26 +117,20 @@ elsif ( $op eq 'delete' ) {
|
|||
$sth2->execute($itemnumber);
|
||||
$sth2->finish;
|
||||
}
|
||||
|
||||
|
||||
elsif ( $op eq 'delete_batch' ) {
|
||||
delete_batch($batch_id);
|
||||
print $query->redirect("label-manager.pl?batch_id=");
|
||||
exit;
|
||||
}
|
||||
|
||||
elsif ( $op eq 'add_batch' ) {
|
||||
$batch_id= add_batch();
|
||||
|
||||
}
|
||||
|
||||
elsif ( $op eq 'set_active_layout' ) {
|
||||
set_active_layout($layout_id);
|
||||
print $query->redirect("label-home.pl");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
# first lets do a read of the labels table , to get the a list of the
|
||||
# currently entered items to be prinited
|
||||
#use Data::Dumper;
|
||||
|
|
Loading…
Reference in a new issue