Adding redirect parameter to opac-userupdate.pl so that message can be displayed...
authorOwen Leonard <oleonard@myacpl.org>
Tue, 8 Jan 2008 21:16:59 +0000 (15:16 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 8 Jan 2008 22:13:05 +0000 (16:13 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl
koha-tmpl/opac-tmpl/prog/images/alert-bg.gif [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/images/message-bg.gif [new file with mode: 0644]
opac/opac-user.pl
opac/opac-userupdate.pl

index 7364333..f57f20b 100644 (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%;
 }
\ No newline at end of file
index 18b3af0..cead61a 100644 (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>
diff --git a/koha-tmpl/opac-tmpl/prog/images/alert-bg.gif b/koha-tmpl/opac-tmpl/prog/images/alert-bg.gif
new file mode 100644 (file)
index 0000000..44625a2
Binary files /dev/null and b/koha-tmpl/opac-tmpl/prog/images/alert-bg.gif differ
diff --git a/koha-tmpl/opac-tmpl/prog/images/message-bg.gif b/koha-tmpl/opac-tmpl/prog/images/message-bg.gif
new file mode 100644 (file)
index 0000000..553546f
Binary files /dev/null and b/koha-tmpl/opac-tmpl/prog/images/message-bg.gif differ
index 4e32b4b..fdbaabf 100755 (executable)
@@ -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;
index eeef129..dad7450 100755 (executable)
@@ -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 {