Lines 1-37
Link Here
|
1 |
<div id="toolbar"><script type="text/javascript"> |
|
|
2 |
//<![CDATA[ |
3 |
|
4 |
// prepare DOM for YUI Toolbar |
5 |
$(document).ready(function() { |
6 |
$("#periods_menuc").empty(); |
7 |
$("#budgets_menuc").empty(); |
8 |
$("#planning_menuc").empty(); |
9 |
|
10 |
yuiToolbar(); |
11 |
}); |
12 |
|
13 |
// YUI Toolbar Functions |
14 |
function yuiToolbar() { |
15 |
var periods_menu = [ |
16 |
{ text: _("Display all root budgets"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl" }, |
17 |
{ text: _("New root budget"), url: "/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form" }, |
18 |
{ text: _("Duplicate root budget"), }, |
19 |
] |
20 |
new YAHOO.widget.Button({ |
21 |
type: "menu", |
22 |
label: _("Root budgets"), |
23 |
name: "periods_button", |
24 |
menu: periods_menu, |
25 |
container: "periods_menuc" |
26 |
}); |
27 |
} |
28 |
|
29 |
//]]> |
30 |
</script> |
31 |
<ul class="toolbar"> |
32 |
<li id="periods_menuc"><a id="periods_menu" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">Budgets</a></li> |
33 |
<li id="budgets_menuc"><a id="budgets_menu" href="/cgi-bin/koha/cataloguing/aqbudgets.pl">Funds</a></li> |
34 |
<li id="planning_menuc"><a id="planning_menu" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">Budget planning</a></li> |
35 |
|
36 |
</ul> |
37 |
</div> |
38 |
- |