[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/fr boraccount.tmpl,1.1,1.2

Paul POULAIN tipaul at users.sourceforge.net
Mon May 5 17:01:28 CEST 2003


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/fr
In directory sc8-pr-cvs1:/tmp/cvs-serv25217/koha-tmpl/intranet-tmpl/default/fr

Modified Files:
	boraccount.tmpl 
Log Message:
moving loggedinuser => loggedinusername in includes and Auth.pm :

The $loggedinuser in Koha is the CODE of the logged user (result of get_user_and_template subroutine).
BTW, in get_user_and_template subroutine, the TMPL_VAR loggedinuser is replaced by the NAME of the user.
This is troubleshooting.
so, I replace the name by the "loggedinusername" template variable.
If you want to add the username somewhere, just add <TMPL_VAR name="loggedinusername"> in the template.

Fixes bug #401

Index: boraccount.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/fr/boraccount.tmpl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** boraccount.tmpl	3 Feb 2003 10:55:00 -0000	1.1
--- boraccount.tmpl	5 May 2003 15:00:53 -0000	1.2
***************
*** 1,59 ****
! <HTML>
! 
! <!-- startmenu (member)
!      this  includes the head-container and <body>
!      including this via var contradicts the separation of code and design
!      a solution via tmpl_include would be better -->
! 
! <TMPL_VAR NAME=startmenumember>
! 
! <!-- The manual invoice and credit buttons --> <FONT SIZE=6><em>Compte de<TMPL_VAR NAME=firstname> 
! <TMPL_VAR NAME=surname></em></FONT> 
! <P>
! <a href="/cgi-bin/koha/maninvoice.pl?bornum=<TMPL_VAR NAME=bornum>"><image src=/images/create-man-invoice.gif border=0></a>
! &nbsp;
! <a href="/cgi-bin/koha/mancredit.pl?bornum=<TMPL_VAR NAME=bornum>"><image src=/images/create-man-credit.gif border=0></a>
! <center>
! <p>
! 
! <!-- The table with the account items -->
! 
! <TABLE  CELLSPACING=0  CELLPADDING=5 border=1 >
! 
!   <TR VALIGN=TOP>
!       <td  bgcolor="99cc33" background="/images/background-mem.gif" colspan=2><B>AMENDES 
! 		&amp; FRAIS</b></TD>
!       <td  bgcolor="99cc33" background="/images/background-mem.gif" colspan=1><B>MONTANT</b></TD>
!       <td  bgcolor="99cc33" background="/images/background-mem.gif" colspan=1><B>SOLDE 
! 		</b></TD>
!   </TR>
! 
!   <TMPL_LOOP NAME=accounts>
! 
!     <tr VALIGN=TOP>
!       <td><TMPL_VAR NAME=date></td>
!       <td><TMPL_VAR NAME=description><TMPL_IF NAME=printtitle> <TMPL_VAR NAME=title></TMPL_IF></td>
!       <td><TMPL_VAR NAME=amount></td>
!       <td><TMPL_VAR NAME=amountoutstanding></td>
!     </tr>
! 
!   </TMPL_LOOP>
! 
!   <tr VALIGN=TOP  >
!       <td></td>
!     <td colspan=2><b>Total d&ucirc;</b></td>
!     <td><b><TMPL_VAR NAME=total></b></td>
!   </tr>
! 
! </table>
! 
! <br clear=all>
! <p>&nbsp;  </p>
! 
! <!-- endmenu (member) -->
! 
! <TMPL_VAR NAME=member>
! 
! 
! </center></body></HTML>
! 
--- 1,59 ----
! <HTML>
! 
! <!-- startmenu (member)
!      this  includes the head-container and <body>
!      including this via var contradicts the separation of code and design
!      a solution via tmpl_include would be better -->
! 
! <TMPL_VAR NAME=startmenumember>
! 
! <!-- The manual invoice and credit buttons --> <FONT SIZE=6><em>Compte de<TMPL_VAR NAME=firstname> 
! <TMPL_VAR NAME=surname></em></FONT> 
! <P>
! <a href="/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR NAME=bornum>"><image src=<TMPL_VAR name="themelang">/images/create-man-invoice.gif border=0></a>
! &nbsp;
! <a href="/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR NAME=bornum>"><image src=<TMPL_VAR name="themelang">/images/create-man-credit.gif border=0></a>
! <center>
! <p>
! 
! <!-- The table with the account items -->
! 
! <TABLE  CELLSPACING=0  CELLPADDING=5 border=1 >
! 
!   <TR VALIGN=TOP>
!       <td  bgcolor="99cc33" background="<TMPL_VAR name="themelang">/images/background-mem.gif" colspan=2><B>AMENDES
! 		&amp; FRAIS</b></TD>
!       <td  bgcolor="99cc33" background="<TMPL_VAR name="themelang">/images/background-mem.gif" colspan=1><B>MONTANT</b></TD>
!       <td  bgcolor="99cc33" background="<TMPL_VAR name="themelang">/images/background-mem.gif" colspan=1><B>SOLDE
! 		</b></TD>
!   </TR>
! 
!   <TMPL_LOOP NAME=accounts>
! 
!     <tr VALIGN=TOP>
!       <td><TMPL_VAR NAME=date></td>
!       <td><TMPL_VAR NAME=description><TMPL_IF NAME=printtitle> <TMPL_VAR NAME=title></TMPL_IF></td>
!       <td><TMPL_VAR NAME=amount></td>
!       <td><TMPL_VAR NAME=amountoutstanding></td>
!     </tr>
! 
!   </TMPL_LOOP>
! 
!   <tr VALIGN=TOP  >
!       <td></td>
!     <td colspan=2><b>Total d&ucirc;</b></td>
!     <td><b><TMPL_VAR NAME=total></b></td>
!   </tr>
! 
! </table>
! 
! <br clear=all>
! <p>&nbsp;  </p>
! 
! <!-- endmenu (member) -->
! 
! <TMPL_VAR NAME=member>
! 
! 
! </center></body></HTML>
! 





More information about the Koha-cvs mailing list