161 lines
6.4 KiB
Cheetah
161 lines
6.4 KiB
Cheetah
<TMPL_INCLUDE NAME="parameters-top.inc">
|
||
<TMPL_IF name="else">
|
||
<FONT SIZE=6><em>Gestion budgétaire </em></FONT>
|
||
<form action=/cgi-bin/koha/admin/aqbudget.pl method=post>
|
||
<input type=text name=searchfield value="">
|
||
<input type=reset name=reset value="effacer">
|
||
</form>
|
||
<TMPL_IF name=search>
|
||
<br>
|
||
Votre recherche <b><TMPL_VAR name=searchfield><b>
|
||
<p><br>
|
||
</TMPL_IF>
|
||
<table border=0 cellspacing=0 cellpadding=5>
|
||
<tr valign=top bgcolor=#99cc33>
|
||
<td background="<TMPL_VAR name="themelang">/images/background-mem.gif"><b>Fonds documentaire</b></td>
|
||
<td background="<TMPL_VAR name="themelang">/images/background-mem.gif"><b>Date de début</b></td>
|
||
<td background="<TMPL_VAR name="themelang">/images/background-mem.gif"><b>Date de fin</b></td>
|
||
<td background="<TMPL_VAR name="themelang">/images/background-mem.gif"><b>Montant du budget</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="budget">
|
||
<tr valign=top bgcolor="<TMPL_VAR name="toggle">">
|
||
<td><TMPL_VAR name="aqbudgetid"> (<TMPL_VAR name="bookfundname">)</td>
|
||
<td><TMPL_VAR name="startdate"></td>
|
||
<td><TMPL_VAR name="enddate"></td>
|
||
<td><TMPL_VAR name="budgetamount"></td>
|
||
<td><a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetdid=<TMPL_VAR name="aqbudgetid">"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/fileopen.png" border="0"></a></td>
|
||
<td><a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<TMPL_VAR name="aqbudgetid">"><img src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/edittrash.png" border="0"></a></td>
|
||
</tr>
|
||
</TMPL_LOOP>
|
||
</table>
|
||
<form action='/cgi-bin/koha/admin/aqbudget.pl' method=post><input type=hidden name=op value=add_form> <br><input type=image src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/filenew.png" ALT="Add budget" BORDER=0 ><br></form><br clear=all>
|
||
</TMPL_IF>
|
||
|
||
<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.aqbudgetid.value.length==0) {
|
||
_alertString += "- aqbudgetid missing\n";
|
||
}
|
||
if (!(isNotNull(window.document.Aform.budgetamount,1))) {
|
||
_alertString += "- Budget 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>
|
||
<h1><TMPL_VAR name="header"></h1>
|
||
<form action='/cgi-bin/koha/admin/aqbudget.pl' name=Aform method=post>
|
||
<input type=hidden name=op value=add_validate>
|
||
<input type=hidden name=checked value=0>
|
||
<table>
|
||
<TMPL_IF name="modify">
|
||
<tr>
|
||
<td>Fonds documentaire</td>
|
||
<td><input type=hidden name=bookfundid value=<TMPL_VAR name=bookfundid>><TMPL_VAR name="aqbudgetid"></td>
|
||
</tr>
|
||
<tr>
|
||
<td>Fonds documentaire</td>
|
||
<td><TMPL_VAR name="bookfundname"></td></tr>
|
||
</TMPL_IF>
|
||
<TMPL_IF name="adding">
|
||
<tr><td>fonds</td><td><input type=hidden name=bookfundid size=5 maxlength=5 value="<TMPL_VAR name="bookfundid">"><TMPL_VAR name="bookfundid"></td></tr>
|
||
</TMPL_IF>
|
||
<tr>
|
||
<td>Date de début (<TMPL_VAR NAME=dateformat>)</td>
|
||
<td><input type=text name=startdate size=20 maxlength=14 value='<TMPL_VAR name="startdate">'> </td></tr>
|
||
<tr>
|
||
<td>Date de fin (<TMPL_VAR NAME=dateformat>)</td>
|
||
<td><input type=text name=enddate size=20 maxlength=14 value='<TMPL_VAR name="enddate">'></td></tr>
|
||
<tr>
|
||
<td>Montant du budget</td>
|
||
<td><input type="hidden" name="aqbudgetid" value="<TMPL_VAR name="aqbudgetid">"><input type=text name=budgetamount value='<TMPL_VAR name="budgetamount">'></td></tr>
|
||
<tr><td> </td><td><INPUT type=button value='OK' onClick='Check(this.form)'></td></tr>
|
||
</table>
|
||
</form>
|
||
<br clear=all>
|
||
<p> </p>
|
||
</TMPL_IF> <TMPL_IF name="add_validate"> Données enregistrées
|
||
<form action='<TMPL_VAR name="action">' method=post>
|
||
<input type=submit value=OK>
|
||
</form>
|
||
</TMPL_IF>
|
||
|
||
<TMPL_IF name="delete_confirm">
|
||
<table border=0 cellspacing=0 cellpadding=5>
|
||
<tr valign=top bgcolor=#99cc33>
|
||
<td background="<TMPL_VAR name="themelang">/images/background-mem.gif"><b>Budget</b></td>
|
||
<td background="<TMPL_VAR name="themelang">/images/background-mem.gif"><b><TMPL_VAR name="aqbudgetid"></b></td></tr>
|
||
<form action='<TMPL_VAR name="action">' method=post>
|
||
<input type="hidden" name="op" value="delete_confirmed">
|
||
<input type="hidden" name="aqbudgetid" value='<TMPL_VAR name="aqbudgetid">'>
|
||
<tr>
|
||
<td>Date de début</td>
|
||
<td><TMPL_VAR name="startdate"></td></tr>
|
||
<tr>
|
||
<td>Date de fin</td>
|
||
<td><TMPL_VAR name="enddate"></td></tr>
|
||
<tr>
|
||
<td>Montant du budget</td>
|
||
<td><TMPL_VAR name="budgetamount"></td></tr>
|
||
<tr>
|
||
<td colspan=2 align=center>CONFIRMEZ LA SUPPRESSION</td>
|
||
</tr>
|
||
<tr><td>
|
||
<INPUT type=submit value='OUI'>
|
||
</form><td><form action='<TMPL_VAR name="action">' method=post>
|
||
<input type=submit value=NON>
|
||
</form></td></tr>
|
||
</TABLE>
|
||
</TMPL_IF>
|
||
|
||
<TMPL_IF name="delete_confirmed">
|
||
Donn<EFBFBD>e supprim<69>e
|
||
<form action='<TMPL_VAR name="action">' method=post>
|
||
<input type=submit value=OK>
|
||
</form>
|
||
</TMPL_IF>
|
||
|
||
<TMPL_INCLUDE NAME="parameters-bottom.inc"></table></b></b>
|