Handle non-latin1 charsets
Corrected wrong method to include page header and footer
This commit is contained in:
parent
ef50ee5217
commit
9773b0bec1
|
|
@ -26,6 +26,7 @@
|
|||
use strict;
|
||||
use C4::Auth;
|
||||
use C4::Output;
|
||||
use C4::Charset;
|
||||
use CGI;
|
||||
use C4::Search;
|
||||
use HTML::Template;
|
||||
|
|
@ -71,12 +72,14 @@ for (my $i=0;$i<$numaccts;$i++){
|
|||
push(@accountrows, \%row);
|
||||
}
|
||||
|
||||
$template->param( startmenumember => join('', startmenu('member')),
|
||||
endmenumember => join('', endmenu('member')),
|
||||
$template->param(
|
||||
firstname => $data->{'firstname'},
|
||||
surname => $data->{'surname'},
|
||||
bornum => $bornum,
|
||||
total => $total,
|
||||
accounts => \@accountrows );
|
||||
|
||||
print $input->header(-cookie => $cookie),$template->output;
|
||||
print $input->header(
|
||||
-type => guesstype($template->output),
|
||||
-cookie => $cookie
|
||||
),$template->output;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
<HTML>
|
||||
|
||||
<!-- startmenu (member)
|
||||
this includes the head-container and <body>
|
||||
including this via var contradicts the separation of code and design
|
||||
a solution via tmpl_include would be better -->
|
||||
|
||||
<TMPL_VAR NAME=startmenumember>
|
||||
<TMPL_INCLUDE NAME="members-top.inc">
|
||||
|
||||
<!-- The manual invoice and credit buttons -->
|
||||
|
||||
|
|
@ -21,9 +14,9 @@
|
|||
<TABLE CELLSPACING=0 CELLPADDING=5 border=1 >
|
||||
|
||||
<TR VALIGN=TOP>
|
||||
<td bgcolor="99cc33" background="/images/background-mem.gif" colspan=2><B>FINES & CHARGES</TD>
|
||||
<td bgcolor="99cc33" background="/images/background-mem.gif" colspan=1><B>AMOUNT</TD>
|
||||
<td bgcolor="99cc33" background="/images/background-mem.gif" colspan=1><B>STILL OWING</TD>
|
||||
<td bgcolor="#99cc33" background="/images/background-mem.gif" colspan=2><B>FINES & CHARGES</TD>
|
||||
<td bgcolor="#99cc33" background="/images/background-mem.gif" colspan=1><B>AMOUNT</TD>
|
||||
<td bgcolor="#99cc33" background="/images/background-mem.gif" colspan=1><B>STILL OWING</TD>
|
||||
</TR>
|
||||
|
||||
<TMPL_LOOP NAME=accounts>
|
||||
|
|
@ -50,7 +43,7 @@
|
|||
|
||||
<!-- endmenu (member) -->
|
||||
|
||||
<TMPL_VAR NAME=member>
|
||||
<TMPL_INCLUDE NAME="members-bottom.inc">
|
||||
|
||||
</body>
|
||||
</HTML>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
<HTML>
|
||||
|
||||
<!-- startmenu (member)
|
||||
this includes the head-container and <body>
|
||||
including this via var contradicts the separation of code and design
|
||||
a solution via tmpl_include would be better -->
|
||||
|
||||
<TMPL_VAR NAME=startmenumember>
|
||||
<TMPL_INCLUDE NAME="members-top.inc">
|
||||
|
||||
<!-- The manual invoice and credit buttons -->
|
||||
|
||||
|
|
@ -50,7 +43,7 @@
|
|||
|
||||
<!-- endmenu (member) -->
|
||||
|
||||
<TMPL_VAR NAME=member>
|
||||
<TMPL_INCLUDE NAME="members-bottom.inc">
|
||||
|
||||
</body>
|
||||
</HTML>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
<HTML>
|
||||
|
||||
<!-- startmenu (member)
|
||||
this includes the head-container and <body>
|
||||
including this via var contradicts the separation of code and design
|
||||
a solution via tmpl_include would be better -->
|
||||
|
||||
<TMPL_VAR NAME=startmenumember>
|
||||
<TMPL_INCLUDE NAME="members-top.inc">
|
||||
|
||||
<!-- The manual invoice and credit buttons -->
|
||||
|
||||
|
|
@ -50,7 +43,7 @@
|
|||
|
||||
<!-- endmenu (member) -->
|
||||
|
||||
<TMPL_VAR NAME=member>
|
||||
<TMPL_INCLUDE NAME="members-bottom.inc">
|
||||
|
||||
</body>
|
||||
</HTML>
|
||||
|
|
|
|||
Loading…
Reference in New Issue