Skip to content

Commit

Permalink
Fixed Bug #230.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpac444 committed Mar 26, 2003
1 parent feb424a commit 398a4d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<td COLSPAN=2 ALIGN=RIGHT background="<TMPL_VAR name="themelang">/images/background-mem.gif">*
<input type="radio" name="sex" value="F"<TMPL_IF NAME=female> checked</TMPL_IF>>F
<input type="radio" name="sex" value="M"<TMPL_UNLESS NAME=female> checked</TMPL_UNLESS>> M
&nbsp; &nbsp; <B>Date of Birth</B> (dd/mm/yy)
&nbsp; &nbsp; <B>Date of Birth</B> (<TMPL_VAR NAME=dateformat>)
<input type=text name=dateofbirth size=10 value="<TMPL_VAR NAME=dateofbirth>">
</td>
</tr>
Expand Down
8 changes: 4 additions & 4 deletions memberentry.pl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use C4::Koha;
use HTML::Template;
use Date::Manip;
use C4::Date;

my $input = new CGI;

Expand Down Expand Up @@ -176,9 +177,7 @@
}

#Convert dateofbirth to correct format
$data->{'dateofbirth'}=ParseDate($data->{'dateofbirth'});
$data->{'dateofbirth'}=UnixDate($data->{'dateofbirth'},'%d/%m/%Y');

$data->{'dateofbirth'} = format_date($data->{'dateofbirth'});

$template->param(
member => $member,
Expand Down Expand Up @@ -208,7 +207,8 @@
dateenrolled => $data->{'dateenrolled'},
expiry => $data->{'expiry'},
cardnumber => $cardnumber,
dateofbirth => $data->{'dateofbirth'});
dateofbirth => $data->{'dateofbirth'},
dateformat => display_date_format());

output_html_with_http_headers $input, $cookie, $template->output;

Expand Down

0 comments on commit 398a4d5

Please sign in to comment.