summaryrefslogtreecommitdiff
path: root/httemplate/elements/header.html
diff options
context:
space:
mode:
authorivan <ivan>2009-04-20 00:20:29 +0000
committerivan <ivan>2009-04-20 00:20:29 +0000
commitd42bde7981ec594818fa69b5ff6b920698380cfc (patch)
tree7be4484e86ba04d755a27161986ec65e2fae9ce9 /httemplate/elements/header.html
parent83cf53bba06bd40c34e547f2ae18cd4a59109ff7 (diff)
fix botched backport from 1.9
Diffstat (limited to 'httemplate/elements/header.html')
-rw-r--r--httemplate/elements/header.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html
index ba45617ac..3843a0fd2 100644
--- a/httemplate/elements/header.html
+++ b/httemplate/elements/header.html
@@ -165,7 +165,7 @@ input.fsblackbuttonselected {
</TD>
<TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
-% if ( $FS::CurrentUser::CurrentUser->access_right('List customers') ) {
+% if ( $curuser->access_right('List customers') ) {
<FORM ACTION="<%$fsurl%>search/cust_main.cgi" METHOD="GET" STYLE="margin:0">
<INPUT NAME="search_cust" TYPE="text" VALUE="(cust #, name, company or phone)" SIZE="28" onFocus="clearhint_search_cust(this);" onClick="clearhint_search_cust(this);" STYLE="vertical-align:bottom;text-align:right"><BR>
<A HREF="<%$fsurl%>search/report_cust_main.html" STYLE="color: #ffffff; font-size: 70%">Advanced</A>
@@ -186,11 +186,11 @@ input.fsblackbuttonselected {
</TD>
<TD COLSPAN=1 BGCOLOR="#000000" ALIGN="right">
-% if ( $FS::CurrentUser::CurrentUser->access_right('View invoices') ) {
+% if ( $curuser->access_right('View invoices') ) {
<FORM ACTION="<%$fsurl%>search/cust_bill.html" METHOD="GET" STYLE="margin:0;display:inline">
<INPUT NAME="invnum" TYPE="text" VALUE="(inv #)" SIZE="4" onFocus="clearhint_search_invoice(this);" onClick="clearhint_search_invoice(this);" STYLE="vertical-align:bottom;text-align:right;margin-bottom:1px">
-% if ( $FS::CurrentUser::CurrentUser->access_right('List invoices') ) {
+% if ( $curuser->access_right('List invoices') ) {
<A HREF="<%$fsurl%>search/report_cust_bill.html" STYLE="color: #ffffff; font-size: 70%">Advanced</A>
% }
@@ -268,8 +268,11 @@ input.fsblackbuttonselected {
my($title, $menubar) = ( shift, shift );
my $etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
my $head = @_ ? shift : ''; #$head is for things that go in the <HEAD> section
+
my $conf = new FS::Conf;
+my $curuser = $FS::CurrentUser::CurrentUser;
+
my $menu_position = $FS::CurrentUser::CurrentUser->option('menu_position')
|| 'left';