Permalink
Browse files

Handle non-latin1 charsets

Corrected wrong method to include the page header and footer
  • Loading branch information...
1 parent 5acde63 commit ade845cdd358ad15e2de07b6e16fec0ff1b0200b acli committed Jan 25, 2003
@@ -1,6 +1,6 @@
<HTML>
-<TMPL_VAR NAME=startmenumember>
+<TMPL_INCLUDE NAME="members-top.inc">
<FONT SIZE=6><em>Member Search</em></FONT><br>
@@ -46,7 +46,7 @@ You Searched for <TMPL_VAR NAME=member><p>
<INPUT TYPE="radio" name="chooseform" value="organisation" >Organisation
</form>
-<TMPL_VAR NAME=endmenumember>
+<TMPL_INCLUDE NAME="members-bottom.inc">
</body>
</HTML>
@@ -1,6 +1,6 @@
<HTML>
-<TMPL_VAR NAME=startmenumember>
+<TMPL_INCLUDE NAME="members-top.inc">
<FONT SIZE=6><em>B�squeda de Socios</em></FONT><br>
@@ -46,7 +46,7 @@ Ha buscado en <TMPL_VAR NAME=member><p>
<INPUT TYPE="radio" name="chooseform" value="organisation" >Organizaci�n
</form>
-<TMPL_VAR NAME=endmenumember>
+<TMPL_INCLUDE NAME="members-bottom.inc">
</body>
</HTML>
@@ -1,6 +1,6 @@
<HTML>
-<TMPL_VAR NAME=startmenumember>
+<TMPL_INCLUDE NAME="members-top.inc">
<FONT SIZE=6><em>Wyszukiwanie czytelnik�w</em></FONT><br>
@@ -46,7 +46,7 @@ Szukano <TMPL_VAR NAME=member><p>
<INPUT TYPE="radio" name="chooseform" value="organisation" >Organizacja
</form>
-<TMPL_VAR NAME=endmenumember>
+<TMPL_INCLUDE NAME="members-bottom.inc">
</body>
</HTML>
View
@@ -26,6 +26,7 @@
use strict;
use C4::Auth;
use C4::Output;
+use C4::Charset;
use CGI;
use C4::Search;
use HTML::Template;
@@ -73,9 +74,11 @@
push(@resultsdata, \%row);
}
-$template->param( startmenumember => join ('', startmenu('member')),
- endmenumember => join ('', endmenu('member')),
+$template->param(
member => $member,
resultsloop => \@resultsdata );
-print $input->header(-cookie => $cookie),$template->output;
+print $input->header(
+ -type => guesstype($template->output),
+ -cookie => $cookie
+),$template->output;

0 comments on commit ade845c

Please sign in to comment.