Revision 9484d564
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
bin/mozilla/common.pl | ||
---|---|---|
396 | 396 |
|
397 | 397 |
# ------------------------------------------------------------------------- |
398 | 398 |
|
399 |
sub show_history { |
|
400 |
$main::lxdebug->enter_sub(); |
|
401 |
|
|
402 |
my $form = $main::form; |
|
403 |
my %myconfig = %main::myconfig; |
|
404 |
my $locale = $main::locale; |
|
405 |
|
|
406 |
my $dbh = $form->dbconnect(\%myconfig); |
|
407 |
my ($sort, $sortby) = split(/\-\-/, $form->{order}); |
|
408 |
$sort =~ s/.*\.(.*)/$1/; |
|
409 |
|
|
410 |
$form->{title} = $locale->text("History"); |
|
411 |
$form->header(); |
|
412 |
print $form->parse_html_template( "common/show_history", { |
|
413 |
"DATEN" => $form->get_history($dbh,$form->{input_name},"",$form->{order}), |
|
414 |
"SUCCESS" => ($form->get_history($dbh,$form->{input_name}) ne "0"), |
|
415 |
uc($sort) => 1, |
|
416 |
uc($sort)."BY" => $sortby |
|
417 |
} ); |
|
418 |
|
|
419 |
$dbh->disconnect(); |
|
420 |
$main::lxdebug->leave_sub(); |
|
421 |
} |
|
422 |
|
|
423 |
# ------------------------------------------------------------------------- |
|
424 |
|
|
399 | 425 |
sub call_sub { |
400 | 426 |
$main::lxdebug->enter_sub(); |
401 | 427 |
|
Auch abrufbar als: Unified diff
Aus versehen in bc433711 entfernte Funktion "show_history" wieder eingebaut