use strict;
use C4::Output;
-use C4::Interface::CGI::Output;
use C4::Auth;
use CGI;
use C4::Context;
-default =>
"$defaulttagfield $defaulttagsubfield - $defaultliblibrarian",
-size => 1,
- -tabindex => '',
-multiple => 0,
);
$template->param( "marclist$i" => $marclist );
################## DEFAULT ##################################
}
else { # DEFAULT
- my $env;
my $sth =
$dbh->prepare(
"Select tagfield,tagsubfield,liblibrarian,kohafield from marc_subfield_structure"
my $sth2 = $dbh->prepare("SHOW COLUMNS from $tablename");
$sth2->execute;
- my $toggle = "white";
my @loop_data = ();
while ( ( my $field ) = $sth2->fetchrow_array ) {
- if ( $toggle eq 'white' ) {
- $toggle = "#ffffcc";
- }
- else {
- $toggle = "white";
- }
my %row_data; # get a fresh hash for the row data
$row_data{tagfield} = $fields{ $tablename . "." . $field }->{tagfield};
$row_data{tagsubfield} =
$row_data{kohafield} = $field;
$row_data{edit} =
"$script_name?op=add_form&tablename=$tablename&kohafield=$field";
- $row_data{bgcolor} = $toggle;
push( @loop_data, \%row_data );
}
$template->param(
],
-default => $tablename,
-size => 1,
- -tabindex => '',
-multiple => 0
)
);
} #---- END $OP eq DEFAULT
-$template->param(
- intranetcolorstylesheet =>
- C4::Context->preference("intranetcolorstylesheet"),
- intranetstylesheet => C4::Context->preference("intranetstylesheet"),
- IntranetNav => C4::Context->preference("IntranetNav"),
-);
output_html_with_http_headers $input, $cookie, $template->output;