Add and change preferences, change tab names in sysprefs editor
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / aqbookfund.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Funds and Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 //<![CDATA[
6 <!-- TMPL_IF name="add_form" -->
7         function toUC(f) {
8                 f.value=f.value.toUpperCase();
9                 return true;
10         }
11
12         function Check(f) {
13                 var _alertString="";
14                 var alertString2;
15                 if (f.bookfundid.value.length==0) {
16                         _alertString += "- bookfundid missing\n";
17                 }
18                 if (f.bookfundname.value.length==0) {
19                         _alertString += "- bookfundname missing\n";
20                 }
21                 if (_alertString.length==0) {
22                         document.Aform.submit();
23                 } else {
24                         alertString2 = "Form not submitted because of the following problem(s)\n";
25                         alertString2 += "------------------------------------------------------------------------------------\n\n";
26                         alertString2 += _alertString;
27                         alert(alertString2);
28                 }
29         }
30 <!-- /TMPL_IF -->
31          $(document).ready(function() {
32             new YAHOO.widget.Button("newfund");
33          });
34 //]]>
35 </script>
36 </head>
37 <body>
38 <!-- TMPL_INCLUDE NAME="header.inc" -->
39 <!-- TMPL_INCLUDE NAME="bookfund-admin-search.inc" -->
40
41 <div id="breadcrumbs">
42     <a href="/cgi-bin/koha/mainpage.pl">Home</a>
43 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
44 &rsaquo; <a href="/cgi-bin/koha/admin/aqbookfund.pl">Funds and Budgets</a>
45 <!-- TMPL_IF name="add_form" -->&rsaquo; Add fund<!-- /TMPL_IF -->
46 </div>
47
48 <div id="doc3" class="yui-t2">
49   <div id="bd">
50     <div id="yui-main">
51       <div class="yui-b">
52         
53 <!-- TMPL_IF name="else" -->
54 <div id="toolbar">
55         <ul class="toolbar">
56         <li><a id="newfund" href="/cgi-bin/koha/admin/aqbookfund.pl?op=add_form">New Fund</a></li>
57 </ul></div>
58 <h1>Funds and budgets administration</h1>
59   <!-- TMPL_IF NAME="bookfund" -->
60 <form action="aqbudget.pl" method="post">
61 <table>
62   <tr>
63     <th>Code</th>
64     <th>Name</th>
65     <th>Library</th>
66     <th colspan="3">Actions</th>
67   </tr>
68
69     <!-- TMPL_LOOP name="bookfund" -->
70       <!-- TMPL_UNLESS NAME="__odd__" -->
71   <tr class="highlight">
72       <!-- TMPL_ELSE -->
73   <tr>
74       <!-- /TMPL_UNLESS -->
75     <td><!-- TMPL_VAR name="bookfundid" --></td>
76     <td><!-- TMPL_VAR name="bookfundname" --></td>
77     <td><!-- TMPL_VAR name="branchname" DEFAULT="" --></td>
78     <td>
79       <a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&amp;bookfundid=<!-- TMPL_VAR name="bookfundid" -->&amp;branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a></td><td>
80       <a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&amp;bookfundid=<!-- TMPL_VAR name="bookfundid" -->&amp;branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a></td><td>
81       <a href="aqbudget.pl?op=add_form&amp;bookfundid=<!-- TMPL_VAR name="bookfundid" -->&amp;branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
82       <!-- TMPL_IF NAME="has_budgets" -->
83       <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
84       <!-- /TMPL_IF -->
85     </td>
86   </tr>
87     <!-- /TMPL_LOOP --> <!-- bookfund -->
88 </table>
89 </form>
90
91 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
92   <!-- /TMPL_IF --> <!-- bookfund -->
93
94 <p>
95   <a href="aqbudget.pl">Show all budgets</a>
96 </p>
97
98 <!-- /TMPL_IF --> <!-- else -->
99
100 <!-- TMPL_IF name="add_form" -->
101 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
102   <input type="hidden" name="checked" value="0" />
103
104 <!-- TMPL_IF name="header-is-modify-p" -->
105   <input type="hidden" name="op" value="mod_validate" />
106   <input type="hidden" name="current_branch" value="<!-- TMPL_VAR name="current_branch" -->"/>
107 <!-- TMPL_ELSIF name="header-is-add-p" -->
108   <input type="hidden" name="op" value="add_validate" />
109 <!-- /TMPL_IF -->
110
111   <fieldset class="rows">
112     <legend><!-- TMPL_IF name="header-is-modify-p" -->Modify book fund<!-- TMPL_ELSIF name="header-is-add-p" -->Add book fund<!-- /TMPL_IF -->
113     </legend>
114     
115   <ol>
116   <!-- TMPL_IF name="add_or_modify" -->
117     <li><span class="label">Fund: </span>
118         <input type="hidden" name="bookfundid" id="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
119         <!-- TMPL_VAR name="bookfundid" -->
120     </li>
121   <!-- TMPL_ELSE -->
122     <li><label for="bookfundid">Fund: </label>
123         <input type="text" name="bookfundid" id="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
124     </li>
125   <!-- /TMPL_IF --> <!-- add_or_modify -->
126     
127     <li><label for="bookfundname">Name: </label>
128             <input type="text" name="bookfundname" id="bookfundname" size="40" maxlength="80" value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->" />
129     </li>
130
131     <li><label for="branchcode">Library: </label>
132         <select name="branchcode" id="branchcode">
133           <option value="">----</option>
134   <!-- TMPL_LOOP NAME="branches" -->
135     <!-- TMPL_IF NAME="selected" -->
136           <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
137     <!-- TMPL_ELSE -->
138           <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
139     <!-- /TMPL_IF -->
140   <!-- /TMPL_LOOP -->
141         </select>
142     </li>
143   </ol>
144     
145   </fieldset>
146
147   <fieldset class="action">
148     <input type="button" value="Submit" onclick="Check(this.form); return false;" />
149     <a class="cancel" href="/cgi-bin/koha/admin/aqbookfund.pl">Cancel</a>
150   </fieldset>
151 </form>
152 <!-- /TMPL_IF --> <!-- add_form -->
153
154 <!-- TMPL_IF name="add_validate" -->
155 <h3>Fund added</h3>
156 <p>
157   <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
158 </p>
159 <!-- TMPL_ELSIF name="mod_validate" -->
160 <h3>Fund modified</h3>
161 <p>
162   <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
163 </p>
164 <!-- TMPL_ELSIF name="delete_confirm" -->
165 <div class="dialog alert">
166 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
167 <form action="<!-- TMPL_VAR name="action" -->" method="post">
168   <input type="hidden" name="op" value="delete_confirmed" />
169   <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
170   <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
171         <table>
172   <tr>
173     <th scope="row">Fund: </th><td>
174     <!-- TMPL_VAR name="bookfundid" --></td></tr>
175   <tr>
176     <th scope="row">Library: </th><td>
177     <!-- TMPL_VAR name="branchcode" --></td></tr>
178   <tr>
179     <th scope="row">Name: </th><td>
180     <!-- TMPL_VAR name="bookfundname" --></td></tr>
181   <tr>
182     <th scope="row">Group: </th><td>
183     <!-- TMPL_VAR name="bookfundgroup" --></td></tr>
184         </table>
185   <input type="submit" class="approve" value="Yes, Delete this Fund" />
186 </form>
187 <form action="/cgi-bin/koha/admin/aqbookfund.pl" method="get"><input type="submit" class="deny" value="No, Do not Delete" /></form>
188 </div>
189
190 <!-- TMPL_ELSIF name="delete_confirmed" -->
191 <div class="dialog message"><h3>Data Deleted</h3>
192 <form action="<!-- TMPL_VAR name="action" -->" method="get">
193   <input type="submit" class="approve" value="OK" />
194 </form></div>
195 <!-- /TMPL_IF --> <!-- delete_confirmed -->
196
197 </div>
198 </div>
199 <div class="yui-b">
200 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
201 </div>
202 </div>
203 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->