(MT 3267) Add Homebranch and Holdingbranch search criterion on circulation stat.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / aqbudget.tmpl
index 1827e99..3a19fee 100644 (file)
@@ -1,5 +1,5 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Administration &rsaquo; <!-- TMPL_IF NAME="else" -->Budgets<!-- /TMPL_IF --><!-- TMPL_IF name="add_form" -->Budgets &rsaquo; <!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> Budget<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" -->Budgets &rsaquo; Budget Data Recorded<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Budgets &rsaquo; Budget Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" -->Budgets &rsaquo; Delete Book Budget?<!-- /TMPL_IF --></title>
+<title>Koha &rsaquo; Administration &rsaquo; <!-- TMPL_IF NAME="else" -->Budgets<!-- /TMPL_IF --><!-- TMPL_IF name="add_form" -->Budgets &rsaquo; <!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> Budget<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" -->Budgets &rsaquo; Budget Data Recorded<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Budgets &rsaquo; Budget Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" -->Budgets &rsaquo; Delete Budget?<!-- /TMPL_IF --></title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
 <!-- TMPL_IF name="add_form" -->
@@ -62,9 +62,9 @@
 </head>
 <body>
 <!-- TMPL_INCLUDE NAME="header.inc" -->
-<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
+<!-- TMPL_INCLUDE NAME="bookfund-admin-search.inc" -->
 
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF NAME="else" -->Budgets<!-- /TMPL_IF --><!-- TMPL_IF name="add_form" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; <!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> Budget<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; Budget Data Recorded<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; Budget Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; Delete Book Budget?<!-- /TMPL_IF --></div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF NAME="else" -->Budgets<!-- /TMPL_IF --><!-- TMPL_IF name="add_form" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; <!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> Budget<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; Budget Data Recorded<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; Budget Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> &rsaquo; Delete Budget?<!-- /TMPL_IF --></div>
 
 <div id="doc3" class="yui-t2">
    
 
 
 <!-- TMPL_IF NAME="add_validate" -->
-  <ul id="_informations"><li>Budget Data Recorded, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li></ul>
+  <div class="dialog message">
+  <h3>Budget Data Recorded</h3>
+  <form action="<!-- TMPL_VAR name="script_name" -->" method="get"><input type="submit" class="approve" value="OK" /></form></div>
 <!-- /TMPL_IF --> <!-- add_validate -->
 
 <!-- TMPL_IF name="delete_confirmed" -->
-  <ul id="_informations"><li>Budget deleted, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li></ul>
+  <div class="dialog message"><h3>Budget deleted</h3>
+  <form action="<!-- TMPL_VAR name="script_name" -->" method="get"><input type="submit" class="approve" value="OK" /></form></div>
 <!-- /TMPL_IF --> <!-- delete_confirmed -->
 
 
 <!-- TMPL_IF name="else" -->
 <h1>Budgets</h1>
-
 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
-<table>
-  <tr>
-    <th>Book fund</th>
-    <th>Branch</th>
-    <th>Start date</th>
-    <th>End date</th>
-    <th>Budget amount</th>
-    <th>Actions</th>
-  </tr>
-
-  <tr class="filter">
-    <td>
-      <select name="filter_bookfundid">
+<fieldset class="rows"><legend>Search Budgets</legend><ol>
+    <li><label for="filter_bookfundid"> Fund:</label>
+      <select name="filter_bookfundid" id="filter_bookfundid">
         <option value="">----</option>
     <!-- TMPL_LOOP name="filter_bookfundids" -->
       <!-- TMPL_IF NAME="selected" -->
       <!-- /TMPL_IF -->
     <!-- /TMPL_LOOP -->
       </select>
-    </td>
-    <td>
-      <select name="filter_branchcode">
+    </li>
+    <li><label for="filter_branchcode">Library:</label>
+      <select name="filter_branchcode" id="filter_branchcode">
         <option value="">----</option>
     <!-- TMPL_LOOP name="filter_branches" -->
       <!-- TMPL_IF NAME="selected" -->
       <!-- /TMPL_IF -->
     <!-- /TMPL_LOOP -->
       </select>
-    </td>
-    <td>
-      <select name="filter_startdate_sign">
+    </li>
+    <li><label for="filter_startdate_sign"> Start date:</label>
+      <select name="filter_startdate_sign" id="filter_startdate_sign">
     <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
         <option value="=" selected="selected">=</option>
     <!-- TMPL_ELSE -->
         );
       //]]>
 </script>
-    </td>
-    <td>
-      <select name="filter_enddate_sign">
+    </li>
+    <li><label for="filter_enddate_sign"> End date:</label>
+      <select name="filter_enddate_sign" id="filter_enddate_sign">
     <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
         <option value="=" selected="selected">=</option>
     <!-- TMPL_ELSE -->
         <option value="&lt;=">&lt;=</option>
     <!-- /TMPL_IF -->
       </select>
-      <input type="text" size="8" maxlength="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
+      <input type="text" size="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
       <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_enddate_button" alt="Show Calendar" />
       <script type="text/javascript">
 //<![CDATA[
         );
       //]]>
 </script>
-    </td>
-    <td>
-      <select name="filter_amount_sign">
+    </li>
+    <li><label for="filter_amount_sign"> Budget amount:</label>
+      <select name="filter_amount_sign" id="filter_amount_sign">
     <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
         <option value="=" selected="selected">=</option>
     <!-- TMPL_ELSE -->
     <!-- /TMPL_IF -->
       </select>
       <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8" />
-    </td>
-    <td>
-      <input type="submit" name="filter" value="Filter" />
-    </td>
+    </li>
+  </ol></fieldset>
+  <fieldset class="action"><input type="submit" name="filter" value="Search" /></fieldset>
+       </form>
+
+<table>
+  <tr>
+    <th>Fund</th>
+    <th>Library</th>
+    <th>Start date</th>
+    <th>End date</th>
+    <th>Budget amount</th>
+    <th colspan="2">Actions</th>
   </tr>
-  
+
   <!-- TMPL_LOOP name="budget" -->
-    <!-- TMPL_IF NAME="toggle" -->
+    <!-- TMPL_UNLESS name="__odd__" -->
   <tr class="highlight">
     <!-- TMPL_ELSE -->
   <tr>
     <td><!-- TMPL_VAR NAME="enddate" --></td>
     <td><!-- TMPL_VAR NAME="budgetamount" --></td>
     <td>
-      <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&amp;aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a>
+      <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&amp;aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a></td><td>
       <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&amp;aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Delete</a>
     </td>
   </tr>
   <!-- /TMPL_LOOP --> <!-- budget -->
 </table>
-</form>
 
 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
 <!-- /TMPL_IF --> <!-- else -->
 <!-- TMPL_IF name="add_form" -->
 
 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
-  <fieldset>
+  <fieldset class="rows">
     <legend><!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> budget</legend>
     <input type="hidden" name="op" value="add_validate" />
     <input type="hidden" name="checked" value="0" />
 
-    <table>
-      <tr>
-        <th>Book fund</th>
-        <td>
-          <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
+    
+     <ol> <li>
+        <span class="label">Fund: </span>
+        <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
           <!-- TMPL_VAR NAME="bookfundname" -->
-        </td>
-      </tr>
+      </li>
 
-      <tr>
-        <th>
-          <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
-        </th>
-        <td>
-          <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
+      <li>
+          <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->): </label>
+                       <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
           <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="startdate_button" alt="Show Calendar" />
           <script type="text/javascript">
 //<![CDATA[
             );
           //]]>
 </script>
-        </td>
-      </tr>
-      <tr>
-        <th>
-          <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
-        </th>
-        <td>
+        
+      </li>
+      <li>
+          <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->): </label>
           <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
           <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enddate_button" alt="Show Calendar" />
           <script type="text/javascript">
             );
           //]]>
 </script>
-        </td>
-      </tr>
-      <tr>
-        <th>
-          <label for="budgetamount">Budget amount</label>
-        </th>
-        <td>
+        
+      </li>
+      <li>
+          <label for="budgetamount">Budget amount: </label>
           <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
-        </td>
-      </tr>
-      <tr>
-        <th>
-          <label for="branch">Branch</label>
-        </th>
-        <td>
+        
+      </li>
+      <li>
+          <label for="branch">Library: </label>
+        
   <!-- TMPL_IF NAME="disable_branchselection" -->
           <!-- Pierrick's note: I've found that a disabled select was not -->
           <!-- giving its value to Perl :-/ So I use a hidden field trick -->
           <input type="hidden" name="branch" id="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
           <select name="branch" disabled="disabled">
   <!-- TMPL_ELSE -->
-          <select name="branch">
+          <select name="branch" id="branch">
   <!-- /TMPL_IF -->
 
             <option value="">----</option>
     <!-- /TMPL_IF -->
   <!-- /TMPL_LOOP -->
           </select>
-        </td>
-      </tr>
-    </table>
+        
+      </li></ol>
+    
 
   <!-- TMPL_IF NAME="aqbudgetid" -->
     <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
   <!-- /TMPL_IF -->
 
-    <p id="action">
-      <input type="button" value="Submit" onclick="Check(this.form)" />
-      <input type="submit" value="Cancel" onclick="location.href='/cgi-bin/koha/admin/aqbudget.pl'; return false;" />
-    </p>
   </fieldset>
+    <fieldset class="action">
+      <input type="button" value="Submit" onclick="Check(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudget.pl">Cancel</a>
+     </fieldset>
 </form>
 <!-- /TMPL_IF --> <!-- add_form -->
 
 <!-- TMPL_IF name="delete_confirm" -->
-<form action="<!-- TMPL_VAR NAME="action" -->" method="post">
-  <fieldset>
-    <legend>Delete Book Budget?</legend>
+ <div class="dialog alert"> <h3>Delete Budget?</h3>
 
     <table>
       <tr>
-        <th>Start date</th>
+        <th scope="row">Start date: </th>
         <td><!-- TMPL_VAR NAME="startdate" --></td>
       </tr>
       
       <tr>
-        <th>End date</th>
+        <th scope="row">End date: </th>
         <td><!-- TMPL_VAR NAME="enddate" --></td>
       </tr>
       
       <tr>
-        <th>Budget Amount</th>
+        <th scope="row">Budget Amount: </th>
         <td><!-- TMPL_VAR NAME="budgetamount" --></td>
       </tr>
     </table>
 
-    <input type="hidden" name="op" value="delete_confirmed" />
-    <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
+<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" -->" />
+<input type="submit" value="Delete this budget" class="approve" /></form>
+<form action="<!-- TMPL_VAR NAME="action" -->" method="get">
+<input type="submit" class="deny" value="No, Do Not Delete" /></form></div>
 
-    <p id="action">
-      <input type="submit" value="Delete this budget" />
-      <input type="submit" value="Do Not Delete" />
-    </p>
-  </fieldset>
-</form>
 <!-- /TMPL_IF -->
 
 </div>