Bug 11608: Delete unused commented lines in template
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / acqui-home.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript">
9 //<![CDATA[
10
11 dt_overwrite_html_sorting_localeCompare();
12
13 $(document).ready(function() {
14     $('#showallbudgets').click(function() {
15         if ( $('#showallbudgets:checked').val() !== undefined) {
16             $('.b_inactive').show();
17             $('#b_inactive').show();
18             $('.bu_active').show();
19             $('.bu_inactive').hide();
20         }
21         else {
22             $('.b_inactive').hide();
23             $('#b_inactive').hide();
24             $('.bu_inactive').show();
25             $('.bu_active').hide();
26         }
27     });
28     var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
29         "aoColumns": [
30             null,
31             null,
32             null,
33             null,
34             { "sType": "num-html" },
35             { "sType": "num-html" },
36             null,
37         ],
38         'sDom': 't',
39         'bPaginate': false,
40         'bFilter': false,
41         'bInfo': false,
42     } ) );
43 });
44 //]]>
45 </script>
46
47 </head>
48 <body id="acq_acqui-home" class="acq">
49 [% INCLUDE 'header.inc' %]
50 [% INCLUDE 'acquisitions-search.inc' %]
51
52 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; </div>
53
54 <div id="doc3" class="yui-t2">
55
56 <div id="bd">
57     <div id="yui-main">
58     <div class="yui-b">
59
60 [% INCLUDE 'acquisitions-toolbar.inc' %]
61
62 <h1>Acquisitions</h1>
63 <div class="yui-g">
64 <div class="yui-u first">
65 <div id="acqui_acqui_home_order">
66
67     [% UNLESS ( loop_budget ) %]
68         [% IF ( CAN_user_parameters ) %]
69         <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
70         [% ELSE %]
71         <div class="dialog alert">Your administrator must define a budget in Administration</div>
72         [% END %]
73     [% END %]
74
75     <fieldset>
76         <legend>Manage orders</legend>
77         <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
78             <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
79             <input type="submit" value="Search" />
80             </p>
81         </form>
82     </fieldset>
83 </div>
84
85 [% IF ( suggestion ) %][% IF ( suggestions_count ) %]
86 <div id="acqui_acqui_home_suggestions">
87     <fieldset>
88     <legend>Pending suggestions</legend>
89         <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
90     </fieldset>
91 </div>[% END %][% END %]
92
93 </div>
94
95 <div class="yui-u">
96
97         [% IF ( loop_budget ) %]
98
99             <h3>All available funds[% IF ( branchname ) %] for [% branchname %][% END %]</h3>
100
101     <div id="BudgetsAndFunds">
102     <table id="accounts">
103         <thead>
104         <tr>
105             <th>Fund</th>
106             <th>Owner</th>
107             <th>Library</th>
108             <th>Amount</th>
109             <th>Ordered</th>
110             <th>Spent</th>
111             <th>Avail</th>
112         </tr>
113         </thead>
114         <tfoot id="funds_total">
115         <tr>
116             <th>Total</th>
117             <th>&nbsp;</th>
118             <th>&nbsp;</th>
119             <th align="right" ><span class="bu_active" style="display : none;">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
120             <th align="right" ><span class="bu_active" style="display : none;">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
121             <th align="right" ><span class="bu_active" style="display : none;">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
122             <th align="right" ><span class="bu_active" style="display : none;">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
123         </tr>
124         </tfoot>
125         <tbody>
126         [% FOREACH loop_budge IN loop_budget %]
127             [% IF ( loop_budge.budget_period_active ) %]
128             [% IF ( loop.odd ) %]
129                 <tr>
130             [% ELSE %]
131                 <tr class="highlight">
132             [% END %]
133                 <td align="center">[% loop_budge.budget_code %]</td>
134                 <td align="center">[% loop_budge.budget_owner %]</td>
135                 <td align="center">[% loop_budge.budget_branchname %]</td>
136                 <td align="right" >[% loop_budge.budget_amount %]</td>
137                 <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
138                 <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
139                 <td align="right" >[% loop_budge.budget_avail %]</td>
140             </tr>
141             [% ELSE %]
142             [% IF ( loop.odd ) %]
143                 <tr class="b_inactive" style="display : none;">
144             [% ELSE %]
145                 <tr class="highlight" id = "b_inactive" style="display : none;">
146             [% END %]
147             <td align="center" >[% loop_budge.budget_code %]</td>
148                 <td align="center">[% loop_budge.budget_owner %]</td>
149                 <td align="center">[% loop_budge.budget_branchname %]</td>
150                 <td align="right" >[% loop_budge.budget_amount %]</td>
151                 <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
152                 <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
153                 <td align="right" >[% loop_budge.budget_avail %]</td>
154             [% END %]
155         [% END %]
156         </tbody>
157     </table>
158     </div><span class="label">Show all :&nbsp;</span><input type="checkbox" id="showallbudgets" />
159     [% END %]
160 </div>
161
162 </div>
163 </div>
164 </div>
165 <div class="yui-b">
166 [% INCLUDE 'acquisitions-menu.inc' %]
167 </div>
168 </div>
169 [% INCLUDE 'intranet-bottom.inc' %]