Adding redirect parameter to opac-userupdate.pl so that message can be displayed on opac-user.pl when patron submits changes. Copying dialog styles from staff client.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2008-01-08 15:16:59 -06:00 committed by Joshua Ferraro
parent 11fb51d19e
commit 4c832dca8b
6 changed files with 34 additions and 8 deletions

View File

@ -889,13 +889,6 @@ div.tab-container {
width : 90%;
}
div.message {
border : 1px solid #8ebaff;
padding : .3em;
margin : .3em;
width : 50%;
}
#catalogue_detail_biblio table, #catalogue_detail_biblio td, #catalogue_detail_biblio th {
background-color : transparent;
border : 0;
@ -993,4 +986,32 @@ line-height : 40px;
.searchhighlightblob {
font-size:75%;
font-style : italic;
}
.dialog {
border: 1px solid #bcbcbc;
padding : .5em;
margin : 1em auto;
width: 65%;
}
.dialog h2, .dialog h3, .dialog h4 {
margin : auto;
text-align : center;
}
div.alert {
background : #FFC url(../../images/alert-bg.gif) repeat-x left 0;
text-align : center;
}
div.alert strong {
color : #900;
}
div.message {
background : white url("../../images/message-bg.gif") repeat-x left 0;
border : 1px solid #bcbcbc;
width : 55%;
}

View File

@ -23,6 +23,8 @@
<!-- TMPL_LOOP NAME="BORROWER_INFO" -->
<h2>Hello, <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> <span class="hint">(<a href="/cgi-bin/koha/opac-logout.pl">Click here</a> if you're not <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" -->)</span></h2>
<!-- TMPL_IF NAME="patronupdate" --><div class="dialog message"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="opacnote"-->
<h3>Message from the library</h3>
<p><!-- TMPL_VAR name="opacnote" --></p>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

View File

@ -44,6 +44,8 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
}
);
my $patronupdate = $query->param('patronupdate');
# get borrower information ....
my ( $borr, $flags ) = GetMemberDetails( $borrowernumber );
@ -219,6 +221,7 @@ foreach ( @$alerts ) {
$template->param(
waiting_count => $wcount,
textmessaging => $borr->{textmessaging},
patronupdate => $patronupdate,
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -102,7 +102,7 @@ EOF
# do something if it works....
warn "Mail sent ok\n";
print $query->redirect('/cgi-bin/koha/opac-user.pl');
print $query->redirect('/cgi-bin/koha/opac-user.pl?patronupdate=sent');
exit;
}
else {