french translations & fixes

This commit is contained in:
tipaul 2003-05-06 14:56:39 +00:00
parent 3aae53c4e1
commit 4a2bd256be
10 changed files with 1612 additions and 187 deletions

View file

@ -0,0 +1,21 @@
<br clear=all>
<p> &nbsp; </p>
</BLOCKQUOTE>
<CENTER>
<FONT SIZE=2 face="arial, helvetica">
<A HREF="/cgi-bin/koha/mainpage.pl">Home</a> ||
<A HREF="/cgi-bin/koha/circ/circulation.pl">Circulation</a> ||
<A HREF="/cgi-bin/koha/loadmodules.pl?module=search&type=intranet">Catalogue</a> ||
<A HREF="/cgi-bin/koha/members-home.pl">Members</a> ||
<A HREF="/cgi-bin/koha/loadmodules.pl?module=acquisitions">Acquisitions</a> ||
<A HREF="/cgi-bin/koha/reports-home.pl">Reports</a> ||
<A HREF="/cgi-bin/koha/admin-home.pl">System Parameters</a> ||
<A HREF="/help/">Help</a>
</FONT>
</CENTER>
</BODY>
</HTML>

View file

@ -0,0 +1,195 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>KOHA: INTRANET: Catalogue</title>
</head>
<body text="black" bgcolor="white" link="#0000ff" vlink="#0000ff" "3366cc" Alink="#cc3300"
marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<style>
#menubar {
border-top:1px solid #666;
}
.koha {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
text-align:center;
background-image:url("/images/background-mem.gif");
}
a.home {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
}
a.home:hover {
background-color: #339933;
color: #000000;
text-decoration: none;
font-weight: normal;
font-weight: bold;
}
a.catalogue {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
margin:0;
}
a.catalogue:hover {
background-color: #ad11ad;
color: #000000;
text-decoration: none;
font-weight: normal;
font-weight: bold;
margin:0;
}
a.members {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
}
a.members:hover {
background-color: #86c268;
color: #000000;
text-decoration: none;
font-weight: bold;
}
a.acquisition:hover {
background-color: #ffdf61;
color: #000000;
text-decoration: normal;
font-weight: bold;
}
a.acquisition {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
}
a.reports {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
}
a.reports:hover {
background-color: #6b7cbe;
color: #000000;
text-decoration: normal;
font-weight: bold;
}
a.circulation {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
}
a.circulation:hover {
background-color: #be6170;
color: #000000;
text-decoration: normal;
font-weight: bold;
}
a.parameters {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#777777;
padding:4px;
font-weight: bold;
}
a.parameters:hover {
background-color: #86c268;
color: #000000;
text-decoration: normal;
font-weight: bold;
}
a.about {
background-color: #86c268;
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#FFFFFFF;
padding:4px;
font-weight: bold;
}
a.about:hover {
background-color: #86c268;
color: #FFFFFF;
text-decoration: normal;
font-weight: bold;
}
</style>
<!------------------------MENUS-------------------------------->
<table cellpadding=0 cellspacing=0 width="100%" border=0>
<tr height="45">
<td valign="bottom" align="left">
<table bgcolor="dddddd" width="100%" cellpadding=0 cellspacing=0>
<tr>
<td>
<div id="menubar">
<table cellpadding=0 cellspacing=0 border=0 height=29 width=70%>
<tr>
<td class="koha"><b>KOHA</b></td>
<td>
<a class="home" href="/cgi-bin/koha/mainpage.pl">Accueil</a>
</td>
<td>
<a class="catalogue" href="/cgi-bin/koha/loadmodules.pl?module=search&type=intranet" alt="Catalogue">Catalogue</a>
</td>
<td>
<a class="members" href="/cgi-bin/koha/members-home.pl" alt="Lecteurs">Lecteurs</a>
</td>
<td>
<a class="acquisition" href="/cgi-bin/koha/loadmodules.pl?module=acquisitions" alt="Acquisition">Acquisition</a>
</td>
<td>
<a class="catalogue" href="/cgi-bin/koha/loadmodules.pl?module=MARC">Marc</a>
</td>
<td>
<a class="circulation" href="/cgi-bin/koha/circ/circulation.pl" alt="Circulation">Circulation</a>
</td>
<td>
<a class="reports" href="/cgi-bin/koha/reports-home.pl" alt="Etats">Etats</a>
</td>
<td>
<a class="parameters" href="/cgi-bin/koha/admin-home.pl" alt="Paramètres">Paramètres</a>
</td>
<td>
<a class="parameters" href="/cgi-bin/koha/about.pl">A propos</a>
</td>
</TR>
</TABLE>
</div>
</td></tr></table>
</TD>
</tr>
</table>
<BLOCKQUOTE>
<TMPL_IF NAME="loggedinusername">
<p align=left>Connecté en tant que : <TMPL_VAR NAME="loggedinusername"> [<a href=/cgi-bin/koha/logout.pl>Log Out</a>]</p>
<TMPL_ELSE>
<p align=left><a href=/cgi-bin/koha/userpage.pl>Se connecter</a> à Koha</p>
</TMPL_IF>

View file

@ -0,0 +1,15 @@
.button {
text-align: center;
font: 1.2em sans-serif;
padding: 10px 15px;
border-style: solid;
border-width: 2px;
border-color: black;
text-decoration: none;
color: black;
border-radius: 6px;
-moz-border-radius: 6px;
background-color:#FFFFFF;
background-image:url("/intranet-tmpl/default/en/images/background-mem.gif");
}

View file

@ -8,6 +8,7 @@
marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
<style>
<TMPL_INCLUDE NAME="common-style.css">
#menubar {
border-top:1px solid #666;
}
@ -19,7 +20,7 @@ marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
padding:4px;
font-weight: bold;
text-align:center;
background-image:url("/images/background-mem.gif");
background-image:url("<TMPL_VAR name="themelang">/images/background-mem.gif");
}
a.home {
@ -116,7 +117,7 @@ a.parameters {
font-weight: normal;
text-decoration: none;
cursor: hand;
color:#FFFFFFF;
color: #FFFFFF;
padding:4px;
font-weight: bold;
}
@ -126,6 +127,20 @@ a.parameters:hover {
text-decoration: normal;
font-weight: bold;
}
a.about {
font-weight: normal;
text-decoration: none;
cursor: hand;
color: #777777;
padding:4px;
font-weight: bold;
}
a.about:hover {
background-color: #86c268;
color: #000000;
text-decoration: normal;
font-weight: bold;
}
</style>
<!------------------------MENUS-------------------------------->
@ -164,7 +179,7 @@ a.parameters:hover {
<a class="parameters" href="/cgi-bin/koha/admin-home.pl" alt="Paramètres">Paramètres</a>
</td>
<td>
<a class="parameters" href="/cgi-bin/koha/about.pl">A propos</a>
<a class="about" href="/cgi-bin/koha/about.pl">A propos</a>
</td>
</TR>
</TABLE>

View file

@ -0,0 +1,306 @@
<TMPL_INCLUDE NAME="parameters-top.inc">
<TMPL_IF NAME=add_form>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNotNull(f,noalert) {
if (f.value.length ==0) {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
return false;
}
if (maybenull==0 && v.value=='') {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isDate(f) {
var t = Date.parse(f.value);
if (isNaN(t)) {
return false;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Check(f) {
var ok=1;
var _alertString="";
var alertString2;
if (f.categorycode.value.length==0) {
_alertString += "- categorycode missing\n";
}
// alert(window.document.Aform.description.value);
if (!(isNotNull(window.document.Aform.description,1))) {
_alertString += "- description missing\n";
}
if (!isNum(f.upperagelimit,0)) {
_alertString += "- upperagelimit is not a number\n";
}
if (_alertString.length==0) {
document.Aform.submit();
} else {
alertString2 = "Form not submitted because of the following problem(s)\n";
alertString2 += "------------------------------------------------------------------------------------\n\n";
alertString2 += _alertString;
alert(alertString2);
}
}
</SCRIPT>
<TMPL_IF NAME=categorycode>
<h1>Modifier categorie</h1>
<TMPL_ELSE>
<h1>Ajouter categorie</h1>
</TMPL_IF>
<form action=<TMPL_VAR NAME=script_name> name=Aform method=post>
<input type=hidden name=op value='add_validate'>
<input type=hidden name=checked value=0>
<table>
<TMPL_IF NAME=categorycode>
<tr>
<td>Code cat&eacute;gorie</td>
<td>
<input type=hidden name=categorycode value=<TMPL_VAR NAME=categorycode>>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td>Code cat&eacute;gorie</td>
<td>
<input type=text name=categorycode size=3 maxlength=2 onBlur=toUC(this)>
</td>
</tr>
</TMPL_IF>
<tr>
<td>Description</td>
<td>
<input type=text name=description size=40 maxlength=80 value=<TMPL_VAR NAME=description>>
&nbsp;
</td>
</tr>
<tr>
<td>Enrollment</td>
<td>
<input type=text name=enrolmentperiod size=2 maxlength=2 value=<TMPL_VAR NAME=enrolmentperiod>>
</td>
</tr>
<tr>
<td>Age maximum</td>
<td>
<input type=text name=upperagelimit size=3 maxlength=3 value=<TMPL_VAR NAME=upperagelimit>>
</td>
</tr>
<tr>
<td>Age Minimum</td>
<td>
<input type=text name=dateofbirthrequired value=<TMPL_VAR NAME=dateofbirthrequired>>
</td>
</tr>
<tr>
<td>Profil</td>
<td>
<input type=text name=finetype size=30 maxlength=30 value=<TMPL_VAR NAME=finetype>>
</td>
</tr>
<tr>
<td>??</td>
<td>
<input type=text name=bulk value=<TMPL_VAR NAME=bulk>>
</td>
</tr>
<tr>
<td>Frais inscription</td>
<td>
<input type=text name=enrolmentfee value=<TMPL_VAR NAME=enrolmentfee>>
</td>
</tr>
<tr>
<td>D&eacute;passement</td>
<td>
<input type=text name=overduenoticerequired value=<TMPL_VAR NAME=overduenoticerequired>>
</td>
</tr>
<tr>
<td>Nb maxi emprunts</td>
<td>
<input type=text name=issuelimit size=2 maxlength=2 value=<TMPL_VAR NAME=issuelimit>>
</td>
</tr>
<tr>
<td>Frais réservation</td>
<td>
<input type=text name=reservefee value=<TMPL_VAR NAME=reservefee>>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<INPUT type=button value='OK' onClick='Check(this.form)'>
</td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_IF NAME=add_validate>
Valeurs enregistr&eacute;es
<form action=<TMPL_VAR NAME=script_name> method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=delete_confirm>
TOTAL : <TMPL_VAR NAME=categorycode> : <TMPL_VAR NAME=total><br>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='/images/background-mem.gif'>
<b>Code cat&éacute;gorie</b>
</td>
<td background='/images/background-mem.gif'>
<TMPL_VAR NAME=categorycode>
</td>
</tr>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=delete_confirmed>
<input type=hidden name=categorycode value=<TMPL_VAR NAME=categorycode>>
<tr>
<td>Description</td>
<td><TMPL_VAR NAME=description></td>
</tr>
<tr>
<td>Période inscription</td>
<td><TMPL_VAR NAME=enrolmentperiod></td>
</tr>
<tr>
<td>Age maximum</td>
<td><TMPL_VAR NAME=upperagelimit></td>
</tr>
<tr>
<td>Age minimum</td>
<td><TMPL_VAR NAME=dateofbirthrequired></td>
</tr>
<tr>
<td>Profil</td>
<td><TMPL_VAR NAME=finetype></td>
</tr>
<tr>
<td>???</td>
<td><TMPL_VAR NAME=bulk></td>
</tr>
<tr>
<td>Frais inscription</td>
<td><TMPL_VAR NAME=enrolmentfee></td>
</tr>
<tr>
<td>D&eacute;passement</td>
<td><TMPL_VAR NAME=overduenoticerequired></td>
</tr>
<tr>
<td>Nb maxi emprunts</td>
<td><TMPL_VAR NAME=issuelimit></td>
</tr>
<tr>
<td>Frais réservation</td>
<td><TMPL_VAR NAME=reservefee></td>
</tr>
<TMPL_IF NAME=totalgtzero>
<tr>
<td colspan=2 align=center><b>Valeur utilisée <TMPL_VAR NAME=total>fois.Suppression impossible</b></td>
</tr>
<tr>
<td colspan=2>
</form><form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td colspan=2 align=center>CONFIRMER SUPPRESSION</td>
</tr>
<tr>
<td><INPUT type=submit value='YES'></form></td>
<td><form action='<TMPL_VAR NAME=script_name>' method=post><input type=submit value=NO></form></td>
</tr>
</TMPL_IF>
</TMPL_IF>
<TMPL_IF NAME=delete_confirmed>
Valeur supprimée
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=else>
<h2>Administration catégorie</h2>
<TMPL_IF NAME=searchfield>
Rechercher sur <TMPL_VAR NAME=searchfield>
</TMPL_IF>
<form action='<TMP_VAR NAME=script_name>' method=post>
<input type=text name=description value=<TMPL_VAR NAME=searchfield>>
<input type=reset name=reset value="clr">
</form>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='/images/background-mem.gif'><b>Categorie</b></td>
<td background='/images/background-mem.gif'><b>Description</b></td>
<td background='/images/background-mem.gif'><b>Inscription</b></td>
<td background='/images/background-mem.gif'><b>Age maxi</b></td>
<td background='/images/background-mem.gif'><b>Age mini</b></td>
<td background='/images/background-mem.gif'><b>Profil</b></td>
<td background='/images/background-mem.gif'><b>??</b></td>
<td background='/images/background-mem.gif'><b>Frais</b></td>
<td background='/images/background-mem.gif'><b>overdue</b></td>
<td background='/images/background-mem.gif'><b>nb max emprunt</b></td>
<td background='/images/background-mem.gif'><b>frais réserv</b></td>
<td background='/images/background-mem.gif'> </td>
<td background='/images/background-mem.gif'> </td>
</tr>
<TMPL_LOOP NAME=loop>
<tr bgcolor="<TMPL_VAR NAME=toggle>">
<td><TMPL_VAR NAME=categorycode></td>
<td><TMPL_VAR NAME=description></td>
<td><TMPL_VAR NAME=enrolmentperiod></td>
<td><TMPL_VAR NAME=upperagelimit></td>
<td><TMPL_VAR NAME=dateofbirthrequired></td>
<td><TMPL_VAR NAME=finetype></td>
<td><TMPL_VAR NAME=bulk></td>
<td><TMPL_VAR NAME=enrolmentfee></td>
<td><TMPL_VAR NAME=overduenoticerequired></td>
<td><TMPL_VAR NAME=issuelimit></td>
<td><TMPL_VAR NAME=reservefee></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=add_form&categorycode=<TMPL_VAR NAME=categorycode>">Edit</a></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&categorycode=<TMPL_VAR NAME=categorycode>">Delete</a></td>
</tr>
</TMPL_LOOP>
</table>
<p><form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=add_form>
<input type=submit class="button" value="Add Category" ALT="Add Category"><br>
</form></p>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">

View file

@ -0,0 +1,211 @@
<TMPL_INCLUDE NAME="parameters-top.inc">
<TMPL_IF NAME=add_form>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNotNull(f,noalert) {
if (f.value.length ==0) {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
return false;
}
if (maybenull==0 && v.value=='') {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isDate(f) {
var t = Date.parse(f.value);
if (isNaN(t)) {
return false;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Check(f) {
var ok=1;
var _alertString="";
var alertString2;
if (f.currency.value.length==0) {
_alertString += "- Currency name missing\\n";
}
if (f.rate.value.length==0) {
_alertString += "- Rate missing\\n";
}
if (_alertString.length==0) {
document.Aform.submit();
} else {
alertString2 = "Form not submitted because of the following problem(s)\\n";
alertString2 += "------------------------------------------------------------------------------------\\n\\n";
alertString2 += _alertString;
alert(alertString2);
}
}
</SCRIPT>
<TMPL_IF NAME=searchfield>
<h1>Modifier monnaie</h1>
<TMPL_ELSE>
<h1>Ajout monnaie</h1>
</TMPL_IF>
<form action='<TMPL_VAR NAME=script_name>' name=Aform method=post>
<input type=hidden name=op value='add_validate'>
<table>
<TMPL_IF NAME=searchfield>
<tr>
<td>Monnaie</td>
<td>
<input type=hidden name=currency value='<TMPL_VAR NAME=searchfield>'><TMPL_VAR NAME=searchfield>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td>Monnaie</td>
<td>
<input type=text name=currency size=50 maxlength=50 onBlur=toUC(this)>
</td>
</tr>
</TMPL_IF>
<tr>
<td>Taux</td>
<td>
<input type=text name=rate size=10 maxlength=10 value='<TMPL_VAR NAME=rate>'>
</td>
</tr>
<tr>
<td> </td>
<td><INPUT type=button value='OK' onClick='Check(this.form)'></td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_IF NAME=add_validate>
Donn&eacute;e enregistr&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=delete_confirm>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='/images/background-mem.gif'><b>Monnaie</b></td>
<td background='/images/background-mem.gif'><b><TMPL_VAR NAME=searchfield></b></td>
</tr>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=delete_confirmed>
<input type=hidden name=searchfield value='<TMPL_VAR NAME=searchfield>'>
<tr>
<td>Taux</td>
<td><TMPL_VAR NAME=rate></td>
</tr>
<TMPL_IF NAME=totalgtzero>
<tr>
<td colspan=2 align=center>
<b>Cette donn&eacute;e est utilis&eacute;e <TMPL_VAR NAME=total> fois. Suppression impossible</b>
</td>
</tr>
<tr>
<td colspan=2>
</form>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td colspan=2 align=center>CONFIRMER SUPPRESSION</td>
</tr>
<tr>
<td>
<INPUT type=submit value='YES'>
</form>
</td>
<td>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=NO>
</form>
</td>
</tr>
</TMPL_IF>
</table>
</TMPL_IF>
<TMPL_IF NAME=delete_confirmed>
Donn&eacute;e supprim&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=else>
<h2>Monnaies</h2>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=text name=description value=<TMPL_VAR NAME=searchfield>>
<input type=reset name=reset value="clr">
</form>
<TMPL_IF NAME=searchfield>
Rechercher sur :<b><TMPL_VAR NAME=searchfield></b>
</TMPL_IF>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='/images/background-mem.gif'><b>Monnaie</b></td>
<td background='/images/background-mem.gif'><b>Taux</b></td>
<td background='/images/background-mem.gif'> </td>
<td background='/images/background-mem.gif'> </td>
</tr>
<TMPL_LOOP NAME=loop>
<tr bgcolor="<TMPL_VAR NAME=toggle>">
<td><TMPL_VAR NAME=currency></td>
<td><TMPL_VAR NAME=rate></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=add_form&searchfield=<TMPL_VAR NAME=currency>">Editer</a></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&searchfield=<TMPL_VAR NAME=currency>">Supprimer</a></td>
</tr>
</TMPL_LOOP>
</table>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=add_form>
<TMPL_IF NAME=offsetgtzero>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=prevpage>"><< Prec</a>
</TMPL_IF>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<TMPL_IF NAME=ltcount>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=nextpage>">Suiv >></a>
</TMPL_iF>
<br>
<input type=submit class="button" value="Ajouter" alt="Ajout monnaie">
<br>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">

View file

@ -1,184 +1,182 @@
<TMPL_INCLUDE NAME="cat-top.inc">
<TMPL_IF name="add_form">
<!-------------------------------------------------------------------------------------------------->
<H1><TMPL_VAR name="action"></H1>
<p>Choisir et valider 1 parmi les suivants :<b><TMPL_VAR name="kohafield"></b></p>
<table>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist0">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist1">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist2">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist3">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist4">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist5">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist6">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist7">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist8">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist9">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<td>
<p align="right">To "unmap", click ==></p>
</td>
<td>
<form action='<TMPL_VAR name="script_name">' name=Aform method=put>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<input type="hidden" name="choice" value="">
<INPUT type=submit value='ICI'>
</form>
</td>
</tr>
</table>
<font SIZE=6><em>Liens MARC</em></font>
<p></p>
<form action='<TMPL_VAR name="script_name">' method=post>
<TMPL_VAR name="tablename"> <input type="submit" value="OK">
</form>
<table border=0 cellspacing=0 cellpadding=5>
<tr valign=top bgcolor=#99cc33>
<td background="/images/background-mem.gif" width=10%><b>Champ koha</b><span style="font-size:8;color:red" title="the koha-DB field linked to this subfield">?</span></td>
<td background="/images/background-mem.gif" width=5%><b>Balise</b></td>
<td background="/images/background-mem.gif" width=5%><b>Sous champ</b></td>
<td background="/images/background-mem.gif" width=42%><b>Biblioth&egrave;que</b></td>
<td background="/images/background-mem.gif" width=8%>
<TMPL_LOOP name="loop">
<tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
<td><b><TMPL_VAR name="kohafield"></b></td>
<td><TMPL_VAR name="tagfield"></td>
<td><TMPL_VAR name="tagsubfield"></td>
<td><TMPL_VAR name="liblibrarian"></td>
<td><a href="<TMPL_VAR name="edit">">Modifier</a></td>
</tr>
</TMPL_LOOP>
</table>
</TMPL_IF>
<!-------------------------------------------------------------------------------------------------->
<TMPL_IF name="else">
</TMPL_IF>
<TMPL_INCLUDE NAME="cat-bottom.inc">
<TMPL_INCLUDE NAME="parameters-top.inc">
<TMPL_IF name="add_form">
<!-------------------------------------------------------------------------------------------------->
<H1><TMPL_VAR name="action"></H1>
<p>Choisir et valider 1 parmi les suivants :<b><TMPL_VAR name="tablename">.<TMPL_VAR name="kohafield"></b></p>
<table>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist0">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist1">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist2">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist3">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist4">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist5">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist6">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist7">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist8">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<form action='<TMPL_VAR name="script_name">'method=put>
<td>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<TMPL_VAR name="marclist9">
</td>
<td>
<INPUT type=submit value='OK'>
</td>
</form>
</tr>
<tr>
<td>
<p align="right">Pour d&eacute;connecter cliquer ==></p>
</td>
<td>
<form action='<TMPL_VAR name="script_name">' name=Aform method=put>
<input type=hidden name=op value='add_validate'>
<input type="hidden" name="tablename" value="<TMPL_VAR name="tablename">">
<input type="hidden" name="kohafield" value="<TMPL_VAR name="kohafield">">
<input type="hidden" name="choice" value="">
<INPUT type=submit value='HERE'>
</form>
</td>
</tr>
</table>
</TMPL_IF>
<!-------------------------------------------------------------------------------------------------->
<TMPL_IF name="else">
<font SIZE=6><em>Liens MARC<TMPL_VAR name="tagfield"></em></font>
<p></p>
<form action='<TMPL_VAR name="script_name">' method=post>
<TMPL_VAR name="tablename"> <input type="submit" value="OK">
</form>
<table border=0 cellspacing=0 cellpadding=2>
<tr valign=top bgcolor=#99cc33>
<td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=10%><b>Champ Koha</b> <span style="font-size:8;color:red" title="the koha-DB field linked to this subfield">?</span></td>
<td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=5%><b>Champ</b></td>
<td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=5%><b>Sous-champ</b></td>
<td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=42%><b>Lib</b></td>
<td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%>
<TMPL_LOOP name="loop">
<tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
<td><b><TMPL_VAR name="kohafield"></b></td>
<td><TMPL_VAR name="tagfield"></td>
<td><TMPL_VAR name="tagsubfield"></td>
<td><TMPL_VAR name="liblibrarian"></td>
<td><a href="<TMPL_VAR name="edit">"><img src="<TMPL_VAR NAME='interface'>/<TMPL_VAR name="theme">/images/fileopen.png" width=32 hspace=0 vspace=0 border=0></a></td>
</tr>
</TMPL_LOOP>
</table>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">

View file

@ -0,0 +1,203 @@
<TMPL_INCLUDE NAME="parameters-top.inc">
<TMPL_IF NAME=add_form>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNotNull(f,noalert) {
if (f.value.length ==0) {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
return false;
}
if (maybenull==0 && v.value=='') {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isDate(f) {
var t = Date.parse(f.value);
if (isNaN(t)) {
return false;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Check(f) {
var ok=1;
var _alertString="";
var alertString2;
if (f.printername.value.length==0) {
_alertString += "- printer name missing\n";
}
if (f.printqueue.value.length==0) {
_alertString += "- Queue missing\n";
}
if (_alertString.length==0) {
document.Aform.submit();
} else {
alertString2 = "Form not submitted because of the following problem(s)\n";
alertString2 += "------------------------------------------------------------------------------------\n\n";
alertString2 += _alertString;
alert(alertString2);
}
}
</SCRIPT>
<TMPL_IF NAME=searchfield>
<h1>Modifier imprimante</h1>
<TMPL_ELSE>
<h1>Ajout imprimante</h1>
</TMPL_IF>
<form action='<TMPL_VAR NAME=script_name>' name=Aform method=post>
<input type=hidden name=op value='add_validate'>
<table>
<TMPL_IF NAME=searchfield>
<tr>
<td>Nom imprimante</td>
<td>
<input type=hidden name=printername value='<TMPL_VAR NAME=searchfield>'><TMPL_VAR NAME=searchfield>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td>Nom imprimante</td>
<td>
<input type=text name=printername size=50 maxlength=50>
</td>
</tr>
</TMPL_IF>
<tr>
<td>Queue</td>
<td><input type=text name=printqueue size=50 maxlength=50 value='<TMPL_VAR NAME=printqueue>'> </td>
</tr>
<tr>
<td>Type</td>
<td><input type=text name=printtype size=50 maxlength=50 value='<TMPL_VAR NAME=printtype>'> </td>
</tr>
<tr>
<td> </td>
<td><INPUT type=button value='OK' onClick='Check(this.form)'></td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_IF NAME=add_validate>
Donn&eacute;e enregistr&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=delete_confirm>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='/images/background-mem.gif'><b>Imprimante</b></td>
<td background='/images/background-mem.gif'><b><TMPL_VAR NAME=searchfield></b></td>
</tr>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=delete_confirmed>
<input type=hidden name=searchfield value='<TMPL_VAR NAME=searchfield>'>
<tr>
<td>Queue</td>
<td><TMPL_VAR NAME=printqueue></td>
</tr>
<tr>
<td>Type</td>
<td><TMPL_VAR NAME=printtype></td>
</tr>
<tr>
<td colspan=2 align=center>CONFIRMER SUPPRESSION</td>
</tr>
<tr>
<td>
<input type=submit value=YES>
</form>
</td>
<td>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=NO>
</form>
</td>
</tr>
</table>
</TMPL_IF>
<TMPL_IF NAME=delete_confirmed>
Donn&eacute;e supprim&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=else>
<h2>Imprimantes</h2>
<form action='<TMP_VAR NAME=script_name>' method=post>
<input type=text name=description value=<TMPL_VAR NAME=searchfield>>
<input type=reset name=reset value="clr">
</form>
<TMPL_IF NAME=searchfield>
Rechercher sur : <b><TMPL_VAR NAME=searchfield></b>
</TMPL_IF>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='/images/background-mem.gif'><b>Nom</b></td>
<td background='/images/background-mem.gif'><b>Queue</b></td>
<td background='/images/background-mem.gif'><b>Type</b></td>
<td background='/images/background-mem.gif'> </td>
<td background='/images/background-mem.gif'> </td>
</tr>
<TMPL_LOOP NAME=loop>
<tr bgcolor="<TMPL_VAR NAME=toggle>">
<td><TMPL_VAR NAME=printername></td>
<td><TMPL_VAR NAME=printqueue></td>
<td><TMPL_VAR NAME=printtype></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=add_form&searchfield=<TMPL_VAR NAME=printername>">Edit</a></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&searchfield=<TMPL_VAR NAME=printername>">Delete</a></td>
</tr>
</TMPL_LOOP>
</table>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=add_form>
<TMPL_IF NAME=offsetgtzero>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=prevpage>"><< Prec</a>
</TMPL_IF>
<TMPL_IF NAME=ltcount>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=nextpage>">Suiv >></a>
</TMPL_iF>
<br>
<input type=submit class="button" value="Ajout" alt="Ajouter imprimante">
<br>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">

View file

@ -0,0 +1,173 @@
<TMPL_INCLUDE NAME="parameters-top.inc">
<TMPL_IF NAME=add_form>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNotNull(f,noalert) {
if (f.value.length ==0) {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
return false;
}
if (maybenull==0 && v.value=='') {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isDate(f) {
var t = Date.parse(f.value);
if (isNaN(t)) {
return false;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Check(f) {
var ok=1;
var _alertString="";
var alertString2;
if (f.word.value.length==0) {
_alertString += "- word missing\n";
}
if (_alertString.length==0) {
document.Aform.submit();
} else {
alertString2 = "Form not submitted because of the following problem(s)\n";
alertString2 += "------------------------------------------------------------------------------------\n\n";
alertString2 += _alertString;
alert(alertString2);
}
}
</SCRIPT>
<TMPL_IF NAME=searchfield>
<h1>Modifier mot vide</h1>
<TMPL_ELSE>
<h1>Ajouter mot vide</h1>
</TMPL_IF>
<form action="<TMPL_VAR NAME=script_name>" name=Aform method=post>
<input type=hidden name=op value='add_validate'>
<table>
<TMPL_IF NAME=searchfield>
<tr>
<td>Mot vide</td>
<td>
<input type=hidden name=word value='<TMPL_VAR NAME=searchfield>'><TMPL_VAR NAME=searchfield>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td>Mot vide</td>
<td>
<input type=text name=word size=80 maxlength=250 onBlur=toUC(this)>
</td>
</tr>
</TMPL_IF>
<tr>
<td> </td>
<td><INPUT type=button value='OK' onClick='Check(this.form)'></td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_IF NAME=add_validate>
Mot vide enregistr&eacute;
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=delete_confirm>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Mot vide</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b><TMPL_VAR NAME=searchfield></b></td>
</tr>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=delete_confirmed>
<input type=hidden name=searchfield value='<TMPL_VAR NAME=searchfield>'>
<tr>
<td colspan=2 align=center>CONFIRMER SUPPRESSION</td>
</tr>
<tr>
<td>
<input type=submit value='YES'>
</form>
</td>
<td>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=NO>
</form>
</td>
</tr>
</table>
</TMPL_IF>
<TMPL_IF NAME=delete_confirmed>
Donn&eacute;e supprim&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=else>
<h2>Mots vides</h2>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=text name=searchfield value=<TMPL_VAR NAME=searchfield>>
<input type=reset name=reset value="clr">
</form>
<TMPL_IF NAME=searchfield>
Rechercher sur <b><TMPL_VAR NAME=searchfield></b>
</TMPL_IF>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Mot vide</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
</tr>
<TMPL_LOOP NAME=loop>
<tr bgcolor="<TMPL_VAR NAME=toggle>">
<td><TMPL_VAR NAME=word></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&searchfield=<TMPL_VAR NAME=word>">Delete</a></td>
</tr>
</TMPL_LOOP>
</table>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=add_form>
<TMPL_IF NAME=offsetgtzero>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=prevpage>"><< Prec</a>
</TMPL_IF>
<TMPL_IF NAME=ltcount>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=nextpage>">Suiv >></a>
</TMPL_iF>
<br>
<input type=submit class="button" value="Ajouter">
<br>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">

View file

@ -0,0 +1,288 @@
<TMPL_INCLUDE NAME="parameters-top.inc">
<TMPL_IF NAME=add_form>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNotNull(f,noalert) {
if (f.value.length ==0) {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
return false;
}
if (maybenull==0 && v.value=='') {
return false;
}
return true;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function isDate(f) {
var t = Date.parse(f.value);
if (isNaN(t)) {
return false;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Check(f) {
var ok=1;
var _alertString="";
var alertString2;
if (f.searchfield.value.length==0) {
_alertString += "- site name missing\n";
}
if (f.host.value.length==0) {
_alertString += "- host missing\n";
}
if (f.port.value.length==0) {
_alertString += "- port missing\n";
}
if (f.db.value.length==0) {
_alertString += "- database missing\n";
}
if (isNaN(f.port.value)) {
_alertString += "- port must be a number\n";
}
if (isNaN(f.rank.value)) {
_alertString += "- rank must be a number\n";
}
if (isNaN(f.checked.value) || f.checked.value<0 || f.checked.value>1) {
_alertString += "- checked must be 0 or 1\n";
}
if (_alertString.length==0) {
document.Aform.submit();
} else {
alertString2 = "Form not submitted because of the following problem(s)\n";
alertString2 += "------------------------------------------------------------------------------------\n\n";
alertString2 += _alertString;
alert(alertString2);
}
}
</SCRIPT>
<TMPL_IF NAME=searchfield>
<h1>ModifierServeur Z39.50</h1>
<TMPL_ELSE>
<h1>Ajouter Serveur Z39.50</h1>
</TMPL_IF>
<form action="<TMPL_VAR NAME=script_name>" name=Aform method=post>
<input type=hidden name=op value='add_validate'>
<table>
<TMPL_IF NAME=searchfield>
<tr>
<td>Serveur Z39.50</td>
<td>
<input type=hidden name=searchfield value='<TMPL_VAR NAME=searchfield>'><TMPL_VAR NAME=searchfield>
</td>
</tr>
<TMPL_ELSE>
<tr>
<td>Server Z39.50</td>
<td>
<input type=text name=searchfield size=100 maxlength=100 onBlur=toUC(this)>
</td>
</tr>
</TMPL_IF>
<tr>
<td>Hostname</td>
<td>
<input type=text name=host size=30 value='<TMPL_VAR NAME=host>'>
</td>
</tr>
<tr>
<td>Port</td>
<td>
<input type=text name=port size=5 value='<TMPL_VAR NAME=port>' onBlur=isNum(this)>
</td>
</tr>
<tr>
<td>Database</td>
<td>
<input type=text name=db value='<TMPL_VAR NAME=db>'>
</td>
</tr>
<tr>
<td>Userid</td>
<td>
<input type=text name=userid value='<TMPL_VAR NAME=userid>'>
</td>
</tr>
<tr>
<td>Password</td>
<td>
<input type=text name=password value='<TMPL_VAR NAME=password>'>
</td>
</tr>
<tr>
<td>Actif</td>
<td>
<input type=text size=1 name=checked value='<TMPL_VAR NAME=checked>' onBlur=isNum(this)>
<tr>
<td>Priorité (d'affichage)</td>
<td>
<input type=text name=rank size=4 value='<TMPL_VAR NAME=rank>' onBlur=isNum(this)>
</td>
</tr>
<tr>
<td>Syntaxe (les serveurs renvoient les données dans des formats variables. En choisir un)</td>
<td>
<select name="syntax">
<option value="USMARC">USMARC</option>
<option value="UNIMARC">UNIMARC</option>
</select>
</td>
</tr>
<tr>
<td> </td>
<td>
<INPUT type=button value='OK' onClick='Check(this.form)'>
</td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_IF NAME=add_validate>
Donn&eacute;e enregistr&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=delete_confirm>
<TMPL_VAR NAME=reqsel>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'>
<b>Site</b>
</td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'>
<TMPL_VAR NAME=searchfield>
</td>
</tr>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=delete_confirmed>
<input type=hidden name=searchfield value=<TMPL_VAR NAME=searchfield>>
<tr>
<td>Hostname</td>
<td><TMPL_VAR NAME=host></td>
</tr>
<tr>
<td>Port</td>
<td><TMPL_VAR NAME=port></td>
</tr>
<tr>
<td>Database</td>
<td><TMPL_VAR NAME=db></td>
</tr>
<tr>
<td>Userid</td>
<td><TMPL_VAR NAME=userid></td>
</tr>
<tr>
<td>Password</td>
<td><TMPL_VAR NAME=password></td>
</tr>
<tr>
<td>Checked</td>
<td><TMPL_VAR NAME=checked></td>
</tr>
<tr>
<td>Rank</td>
<td><TMPL_VAR NAME=rank></td>
</tr>
<tr>
<td colspan=2 align=center>CONFIRMER SUPPRESSION</td>
</tr>
<tr>
<td><INPUT type=submit value='YES'></form></td>
<td><form action='<TMPL_VAR NAME=script_name>' method=post><input type=submit value=NO></form></td>
</tr>
</table>
</TMPL_IF>
<TMPL_IF NAME=delete_confirmed>
Donn&eacute;e supprim&eacute;e
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_IF NAME=else>
<h2>Serveurs z3950</h2>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=text name=description value=<TMPL_VAR NAME=searchfield>>
<input type=reset name=reset value="clr">
</form>
<TMPL_IF NAME=searchfield>
Rechercher sur <b><TMPL_VAR NAME=searchfield></b>
</TMPL_IF>
<table border=0 cellspacing=0 cellpadding=5>
<tr bgcolor='#99cc33'>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Site</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Hostname</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Port</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Database</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Userid</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Password</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Checked</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Rank</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'><b>Syntax</b></td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
<td background='<TMPL_VAR name="themelang">/images/background-mem.gif'> </td>
</tr>
<TMPL_LOOP NAME=loop>
<tr bgcolor="<TMPL_VAR NAME=toggle>">
<td><TMPL_VAR NAME=name></td>
<td><TMPL_VAR NAME=host></td>
<td><TMPL_VAR NAME=port></td>
<td><TMPL_VAR NAME=db></td>
<td><TMPL_VAR NAME=userid></td>
<td><TMPL_VAR NAME=password></td>
<td><TMPL_VAR NAME=checked></td>
<td><TMPL_VAR NAME=rank></td>
<td><TMPL_VAR NAME=syntax></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=add_form&searchfield=<TMPL_VAR NAME=name>"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/fileopen.png" ALT="Edit" title="edit" BORDER=0 ></a></td>
<td><a href="<TMPL_VAR NAME=script_name>?op=delete_confirm&searchfield=<TMPL_VAR NAME=name>"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/edittrash.png" ALT="Delete" title="delete" BORDER=0 ></a></td>
</tr>
</TMPL_LOOP>
</table>
<form action='<TMPL_VAR NAME=script_name>' method=post>
<input type=hidden name=op value=add_form>
<TMPL_IF NAME=offsetgtzero>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=prevpage>"><< Prec</a>
</TMPL_IF>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<TMPL_IF NAME=ltcount>
<a href="<TMPL_VAR NAME=script_name>?offset=<TMPL_VAR NAME=nextpage>">suiv >></a>
</TMPL_iF>
<br>
<input type=submit class="button" alt="Ajouter" value="Ajouter serveur Z39.50">
<br>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">