From 4c832dca8b2022964109db4a903a7869080de349 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 8 Jan 2008 15:16:59 -0600 Subject: [PATCH] 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 Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 35 ++++++++++++++---- .../opac-tmpl/prog/en/modules/opac-user.tmpl | 2 + koha-tmpl/opac-tmpl/prog/images/alert-bg.gif | Bin 0 -> 2255 bytes .../opac-tmpl/prog/images/message-bg.gif | Bin 0 -> 966 bytes opac/opac-user.pl | 3 ++ opac/opac-userupdate.pl | 2 +- 6 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/prog/images/alert-bg.gif create mode 100644 koha-tmpl/opac-tmpl/prog/images/message-bg.gif diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 7364333130..f57f20b227 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -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 diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl index 18b3af0c33..cead61a9ba 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl @@ -23,6 +23,8 @@

Hello, (Click here if you're not )

+

Thank you!

Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.

+

Message from the library

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 index 0000000000000000000000000000000000000000..44625a2ec273b20a2708ba2c8f3489b92113a480 GIT binary patch literal 2255 zcmcJM>sOP99e|^CKp}W+=YYd(OD}_nh^})$(RLo&LI{C6yNQQ-$!seeK;(3-c&ObF zkWfev1qlrxfdB~*NVo>WRc^Th0ul@$cM=GJklPz_`Mq2BKkWJNe0;t<;SpgWAN}K9 zOu@c&30l&GU!o`q=p>+0K*s@n0q88iQ$VKy6$9E0 z=meljKt+Jc0UZNV2B6OX9RcV9TRA`{pu>PF0G$JL0PJ;u3Q=?(ERO)m2g^f1s9-4o znjI&xi(;CYN^nZLP)yDZ{W4wBt}z?b2htA_J_cQ1ZU)XWqE)>?V#pG(zq;#SsJ#m8|jZxPzq&zYZpi@PFetD9s+ zRpQGD?e#Aj{{Aq2Ueey6;9mJE=dH*N&db(s6WLd!9gVa6o9Ne~@<@KueAf?|>Uk-j zyU_R3W0$vyoxG*N`+vnK|R@UZLGJ)`nqmKTJc3+uft|BXcor$`rx-1C){HC0gw2_ zdoI2u0~y#L^W_H z5!?#peyH>O&K|=Dodf0RONTp>r_wfnm1Gx=}wZk z!&x2)>dGA7H1%tgpiMQiAk2TGy69rUMor0$gbnAi+nXCKMz;SZySg}GvyNSx;Qtz@ zV{@~CH{!41v`r^y8avk$G)~>-O%1o->DU%;$Rly9S>&6T9UfsE!gVNY2zV;DVyY#GMRoOstb{+Z`Z$0jOm)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rO96-W*FbVr(p-93P zLUvNSnM@`eP3-Qb8NCPn;$Sq3$eLXk7pr1QpTv}c+t*&IRy;yw`D`|4wk78jo>4wNFh|Qf zOWe|ra~C>KoV)s_OggyOjk&@+q>~OApP#vHU|f*#mitQYLR*WnVN-@xMyk!j%lUtE z%R6v22DxBu_%avYkDnl~i)v&kWdlqtwlJKK>p7oSkLp!tJi}xpmu5$_oVBPb*8n?e5FCLRZg^)pf3CHMIg4{aOR) zdVZ_9(B1nBz0UoDz!SJ%-cf+=zWVt>598iOou|LiE$}cOAfSguMq>f?qg*1up&Al1 z1MMXc!0p0e!NHztA~@7rD+GCr1_&HxH)A3GAe{&a_&gyb98o}!NHULwN8}qscvR&U k!ebf)g2g&?kyr9Mm*gGS7l^#lr4raHTg8z`IjHac1(BF02mk;8 literal 0 HcmV?d00001 diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 4e32b4b7d9..fdbaabff0d 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -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; diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl index eeef129430..dad7450f4a 100755 --- a/opac/opac-userupdate.pl +++ b/opac/opac-userupdate.pl @@ -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 { -- 2.39.5