Koha/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc
2007-10-29 16:21:45 -05:00

43 lines
1.5 KiB
HTML

<div id="toolbar">
<script type="text/javascript">
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
$("#addchild").parent().remove();
$("#addprofessional").parent().remove();
$("#addorganisation").parent().remove();
$("#newmenuc").empty();
yuiToolbar();
});
// YUI Toolbar Functions
function yuiToolbar() {
var newmenu = [
{ text: "Adult Patron", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A" },
{ text: "Child Patron", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=C" },
{ text: "Professional Patron", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=P" },
{ text: "Organisation", url: "/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=I" },
]
new YAHOO.widget.Button({
type: "menu",
label: "New",
name: "newmenubutton",
menu: newmenu,
container: "newmenuc"
});
}
//]]>
</script>
<ul class="toolbar">
<li id="newmenuc"><a id="addadult" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=A">Adult</a></li>
<li><a id="addchild" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=C">Child</a></li>
<li><a id="addprofessional" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=P">Professional</a></li>
<li><a id="addorganisation" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;category_type=I">Organisation</a></li>
</ul></div>