Skip to content
Browse files

*** empty log message ***

  • Loading branch information...
1 parent d40bdb9 commit 7d34ac8ec4866b467d0ab3c48453393ff6a38b83 tipaul committed Apr 11, 2003
View
11 C4/Circulation/Circ2.pm
@@ -38,6 +38,7 @@ use C4::Context;
#use C4::Scan;
use C4::Stats;
use C4::Reserves2;
+use C4::Koha;
#use C4::Search;
#use C4::Print;
@@ -337,17 +338,15 @@ sub findborrower {
my ($env, $key) = @_;
my $dbh = C4::Context->dbh;
my @borrowers;
- my $q_key=$dbh->quote($key);
- my $sth=$dbh->prepare("select * from borrowers where cardnumber=$q_key");
- $sth->execute;
+ my $sth=$dbh->prepare("select * from borrowers where cardnumber=?");
+ $sth->execute($key);
if ($sth->rows) {
my ($borrower)=$sth->fetchrow_hashref;
push (@borrowers, $borrower);
} else {
- $q_key=$dbh->quote("$key%");
$sth->finish;
- $sth=$dbh->prepare("select * from borrowers where surname like $q_key");
- $sth->execute;
+ $sth=$dbh->prepare("select * from borrowers where surname like ?");
+ $sth->execute($key."%");
while (my $borrower = $sth->fetchrow_hashref) {
push (@borrowers, $borrower);
}
View
6 koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl
@@ -4,14 +4,14 @@
<TMPL_IF name ="testdonation">
<a href="newbiblio.pl?id=<TMPL_VAR name="id">&basket=<TMPL_VAR name="basket">&sub=<TMPL_VAR name="parsub">">
- <img src=/images/add-biblio.gif width=187 heigth=42 border=0 align=right alt="Add New Biblio"></a>
+ <img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/filenew.png" border=0 align=right alt="Add New Biblio"></a>
<TMPL_ELSE>
<a href="newdonation.pl?id=<TMPL_VAR name="id">&basket=<TMPL_VAR name="basket">&sub=<TMPL_VAR name="parsub">">
- <img src=/images/add-biblio.gif width=187 heigth=42 border=0 align=right alt="Add New Biblio"></a>
+ <img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/filenew.png" border=0 align=right alt="Add New Biblio"></a>
</TMPL_IF>
<a href="basket.pl?basket=<TMPL_VAR name="basket">">
-<img src=/images/view-basket.gif width=187 heigth=42 border=0 align=right alt="View Basket"></a>
+<img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/1uparrow.png" border=0 align=right alt="View Basket"></a>
<FORM ACTION="/cgi-bin/koha/acqui/newbasket2.pl">
<input type=hidden name=id value=<TMPL_VAR name="id">>
<input type=hidden name=basket value=<TMPL_VAR name="basket">>
View
6 koha-tmpl/intranet-tmpl/default/en/search.marc/result.tmpl
@@ -4,12 +4,6 @@
<TMPL_INCLUDE NAME="cat-top.inc">
</TMPL_IF>
-<TMPL_IF NAME="loggedinuser">
- <p align=left>Logged in as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/logout.pl>Log Out</a>]</p>
-<TMPL_ELSE>
- <p align=left><a href=/cgi-bin/koha/userpage.pl>Log In</a> to Koha</p>
-</TMPL_IF>
-
<center>
<table border=0 cellspacing=0 cellpadding=2 width="90%">
View
20 koha-tmpl/intranet-tmpl/default/fr/members/member-password.tmpl
@@ -0,0 +1,20 @@
+<HTML>
+
+<TMPL_INCLUDE NAME="members-top.inc">
+
+<TMPL_IF NAME=newpassword>
+Cliquer <a href="/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR NAME=member>">Ici</a> Pour voir la fiche
+
+<TMPL_ELSE>
+ <h2><TMPL_VAR NAME="title"> <TMPL_VAR NAME="othernames"> <TMPL_VAR NAME="surname">, <TMPL_VAR NAME="firstname"></h2>
+ <form method=post>
+ <input type=hidden name=member value=<TMPL_VAR NAME=member>>
+ Identifiant utilisateur : <input name=newuserid size=20 value=<TMPL_VAR NAME=userid>> <br>
+ Nouveau mot de passe : <input name=newpassword size=20 value=<TMPL_VAR NAME=defaultnewpassword>>
+ <p>
+ <input type=submit value="Confirm Password">
+ </form>
+</TMPL_IF>
+
+
+<TMPL_INCLUDE NAME="members-bottom.inc">
View
110 koha-tmpl/opac-tmpl/default/en/opac-userupdate.tmpl
@@ -1,54 +1,56 @@
-<TMPL_INCLUDE NAME="members-top.inc">
-
-<TMPL_IF NAME="loggedinuser">
- <p align=left>Logged in as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/opac-main.pl?logout.x=1>Log Out</a>]</p>
-<TMPL_ELSE>
- <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log In</a> to Koha</p>
-</TMPL_IF>
-
-
-<TMPL_LOOP NAME="BORROWER_INFO">
-
-<CENTER>
-<FORM ACTION="/cgi-bin/koha/opac-userupdate.pl" method=get>
-<TABLE >
-
-<TR VALIGN=TOP>
-<TD>Surname</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='surname'>" NAME="surname"></TD></TR>
-
-<TR VALIGN=TOP>
-<TD>Title</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='title'>" NAME="title"></TD></TR>
-
-<TR VALIGN=TOP>
-<TD>Firstname</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='firstname'>" NAME="firstname"></TD></TR>
-
-<TR VALIGN=TOP>
-<TD>Street address</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='streetaddress'>" NAME="streetaddress"></TD></TR>
-
-<TR VALIGN=TOP>
-<TD>City</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='city'>" NAME="city"></TD></TR>
-
-
-<TR VALIGN=TOP>
-<TD>Home phone</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='phone'>" NAME="phone"></TD></TR>
-
-<TR VALIGN=TOP>
-<TD>Work/Fax phone</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='faxnumber'>" NAME="faxnumber"></TD></TR>
-
-<TR VALIGN=TOP>
-<TD>Email</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='emailaddress'>" NAME="emailaddress"></TD></TR>
-
-
-
-<TR VALIGN=TOP>
-<td><font size=4 face="arial,helvetica"><INPUT type="submit" value="Submit"></font></td>
-<TD><font size=4 face="arial,helvetica">
-</font></td></tr>
-
-</TABLE>
-</FORM>
-</CENTER>
-
-</TMPL_LOOP>
-
-<TMPL_INCLUDE NAME="opac-bottom.inc">
+<TMPL_INCLUDE NAME="members-top.inc">
+
+<TMPL_IF NAME="loggedinuser">
+ <p align=left>Logged in as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/opac-main.pl?logout.x=1>Log Out</a>]</p>
+<TMPL_ELSE>
+ <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log In</a> to Koha</p>
+</TMPL_IF>
+
+<i>Please, change what's needed. <b>Note</b> that a <b>mail</b> will be sent to the library, that will <b>validate</b> changes.<br/>
+So, the changes you will do won't appear immediatly.</i><br/><br/>
+
+<TMPL_LOOP NAME="BORROWER_INFO">
+
+<CENTER>
+<FORM ACTION="/cgi-bin/koha/opac-userupdate.pl" method=get>
+<TABLE >
+
+<TR VALIGN=TOP>
+<TD>Surname</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='surname'>" NAME="surname"></TD></TR>
+
+<TR VALIGN=TOP>
+<TD>Title</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='title'>" NAME="title"></TD></TR>
+
+<TR VALIGN=TOP>
+<TD>Firstname</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='firstname'>" NAME="firstname"></TD></TR>
+
+<TR VALIGN=TOP>
+<TD>Street address</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='streetaddress'>" NAME="streetaddress"></TD></TR>
+
+<TR VALIGN=TOP>
+<TD>City</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='city'>" NAME="city"></TD></TR>
+
+
+<TR VALIGN=TOP>
+<TD>Home phone</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='phone'>" NAME="phone"></TD></TR>
+
+<TR VALIGN=TOP>
+<TD>Work/Fax phone</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='faxnumber'>" NAME="faxnumber"></TD></TR>
+
+<TR VALIGN=TOP>
+<TD>Email</TD> <TD><INPUT TYPE="text" SIZE="25" value="<TMPL_VAR NAME='emailaddress'>" NAME="emailaddress"></TD></TR>
+
+
+
+<TR VALIGN=TOP>
+<td><font size=4 face="arial,helvetica"><INPUT type="submit" value="Submit"></font></td>
+<TD><font size=4 face="arial,helvetica">
+</font></td></tr>
+
+</TABLE>
+</FORM>
+</CENTER>
+
+</TMPL_LOOP>
+
+<TMPL_INCLUDE NAME="opac-bottom.inc">

0 comments on commit 7d34ac8

Please sign in to comment.
Something went wrong with that request. Please try again.