[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters aqbud
From: |
David Strainchamps |
Subject: |
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters aqbudget.tmpl,NONE,1.1 |
Date: |
Sat, 16 Nov 2002 13:26:13 -0800 |
Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/parameters
In directory usw-pr-cvs1:/tmp/cvs-serv21963
Added Files:
aqbudget.tmpl
Log Message:
template for aqbudget.pl
--- NEW FILE ---
<TMPL_INCLUDE NAME="cat-top.inc">
<TMPL_IF name="else">
<FONT SIZE=6><em>Budget admin</em></FONT><form
action=/cgi-bin/koha/admin/aqbudget.pl method=post>
<input type=text name=searchfield value=""><input type=reset name=reset
value="clr"></form>
<TMPL_IF name=search>
<br>You Searched for <b><TMPL_VAR name=searchfield><b><p><br>
</TMPL_IF>
<table border=0 cellspacing=0 cellpadding=5>
<tr valign=top bgcolor=#99cc33><td
background="/images/background-mem.gif"><b>Book fund</b></td><td
background="/images/background-mem.gif"><b>Start date</b></td><td
background="/images/background-mem.gif"><b>End date</b></td><td
background="/images/background-mem.gif"><b>Budget amount</b></td><td
background="/images/background-mem.gif"> </td><td
background="/images/background-mem.gif"> </td></tr>
<TMPL_LOOP name="budget">
<tr valign=top bgcolor=<TMPL_VAR name="toggle"> ><td><TMPL_VAR
name="bookfundid"> (<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&bookfundid=<TMPL_VAR
name="bookfundid">">Edit</a></td><td><a
href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&bookfundid=<TMPL_VAR
name="bookfundid">">Delete</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="/images/button-add-new.gif" WIDTH=188 HEIGHT=44 ALT="Add
budget" BORDER=0 ></a><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.bookfundid.value.length==0) {
_alertString += "- bookfundid 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>Book fund</td><td><input type=hidden name=bookfundid value=<TMPL_VAR
name=bookfundid>><TMPL_VAR name="bookfundid"></td></tr>
<tr><td>Book fund</td><td><TMPL_VAR name="bookfundname"></td></tr>
</TMPL_IF>
<TMPL_IF name="adding">
<tr><td>Book fund</td><td><input type=text name=bookfundid size=5 maxlength=5
onBlur=toUC(this)></td></tr>
</TMPL_IF>
<tr><td>Start date</td><td><input type=text name=startdate size=40 maxlength=80
value='<TMPL_VAR name="startdate">'> </td></tr>
<tr><td>End date</td><td><input type=text name=enddate value='<TMPL_VAR
name="enddate">'></td></tr>
<tr><td>Budget amount</td><td><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">
data recorded
<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="/images/background-mem.gif"><b>Book fund</b></td><td
background="/images/background-mem.gif"><b><TMPL_VAR
name="bookfundid"></b></td></tr>
<form action='<TMPL_VAR name="action">' method=post><input type=hidden name=op
value=delete_confirmed><input type=hidden name=bookfundid value='<TMPL_VAR
name="bookfundid">'>
<tr><td>Start date</td><td><TMPL_VAR name="startdate"></td></tr>
<tr><td>End date</td><td><TMPL_VAR name="enddate"></td></tr>
<tr><td>budgetamount</td><td><TMPL_VAR name="budgetamount"></td></tr>
<tr><td colspan=2 align=center>CONFIRM DELETION</td></tr>
<tr><td><INPUT type=submit value='YES'></form></td><td><form action='<TMPL_VAR
name="action">' method=post><input type=submit value=NO></form></td></tr>"
</TMPL_IF>
<TMPL_IF name="delete_confirmed">
data deleted
<form action='<TMPL_VAR name="action">' method=post>
<input type=submit value=OK>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="cat-bottom.inc">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters aqbudget.tmpl,NONE,1.1,
David Strainchamps <=
- Prev by Date:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en mancredit.tmpl,NONE,1.1 maninvoice.tmpl,NONE,1.1
- Next by Date:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters aqbookfund.tmpl,1.2,1.3
- Previous by thread:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en mancredit.tmpl,NONE,1.1 maninvoice.tmpl,NONE,1.1
- Next by thread:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/parameters aqbookfund.tmpl,1.2,1.3
- Index(es):