diff options
author | ivan <ivan> | 2006-01-31 04:26:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-01-31 04:26:54 +0000 |
commit | c1bb4ddb71147d0571bd301a6d8c452fdf0e1bc9 (patch) | |
tree | aceba418d4d41bdec62b95f5d20b2b9a2993cceb /httemplate/edit | |
parent | 7066204f45124e0100d5330cce63584ff9e4bacb (diff) |
move header() to include(/elements/header.html) so it can be changed in one place, thanks to Scott Edwards
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/REAL_cust_pkg.cgi | 2 | ||||
-rwxr-xr-x | httemplate/edit/agent.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/agent_payment_gateway.html | 2 | ||||
-rwxr-xr-x | httemplate/edit/agent_type.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/bulk-cust_svc.html | 2 | ||||
-rwxr-xr-x | httemplate/edit/cust_pay.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/part_export.cgi | 2 | ||||
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 2 | ||||
-rwxr-xr-x | httemplate/edit/part_svc.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/payment_gateway.html | 2 | ||||
-rw-r--r-- | httemplate/edit/prepay_credit.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/process/prepay_credit.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/process/reg_code.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/rate.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/rate_region.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/reg_code.cgi | 2 | ||||
-rwxr-xr-x | httemplate/edit/svc_acct.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/svc_broadband.cgi | 2 | ||||
-rwxr-xr-x | httemplate/edit/svc_forward.cgi | 2 |
19 files changed, 19 insertions, 19 deletions
diff --git a/httemplate/edit/REAL_cust_pkg.cgi b/httemplate/edit/REAL_cust_pkg.cgi index 78dd0fafa..1eefcfea0 100755 --- a/httemplate/edit/REAL_cust_pkg.cgi +++ b/httemplate/edit/REAL_cust_pkg.cgi @@ -33,7 +33,7 @@ if ( $error ) { #my $custnum = $cust_pkg->getfield('custnum'); %> -<%= header('Customer package - Edit dates') %> +<%= include("/elements/header.html",'Customer package - Edit dates') %> <% #, menubar( # "View this customer (#$custnum)" => popurl(2). "view/cust_main.cgi?$custnum", diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index cb64ad8cd..40115a932 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -19,7 +19,7 @@ my $conf = new FS::Conf; %> -<%= header("$action Agent", menubar( +<%= include("/elements/header.html","$action Agent", menubar( 'Main Menu' => $p, 'View all agents' => $p. 'browse/agent.cgi', )) %> diff --git a/httemplate/edit/agent_payment_gateway.html b/httemplate/edit/agent_payment_gateway.html index 61d29e0e9..db4331b84 100644 --- a/httemplate/edit/agent_payment_gateway.html +++ b/httemplate/edit/agent_payment_gateway.html @@ -12,7 +12,7 @@ my $action = 'Add'; %> -<%= header("$action payment gateway override for ". $agent->agent, menubar( +<%= include("/elements/header.html","$action payment gateway override for ". $agent->agent, menubar( 'Main Menu' => $p, #'View all payment gateways' => $p. 'browse/payment_gateway.html', 'View all agents' => $p. 'browse/agent.html', diff --git a/httemplate/edit/agent_type.cgi b/httemplate/edit/agent_type.cgi index 5addbbd4c..944ddd0d0 100755 --- a/httemplate/edit/agent_type.cgi +++ b/httemplate/edit/agent_type.cgi @@ -16,7 +16,7 @@ my $action = $agent_type->typenum ? 'Edit' : 'Add'; %> -<%= header("$action Agent Type", menubar( +<%= include("/elements/header.html","$action Agent Type", menubar( 'Main Menu' => "$p", 'View all agent types' => "${p}browse/agent_type.cgi", )) diff --git a/httemplate/edit/bulk-cust_svc.html b/httemplate/edit/bulk-cust_svc.html index 332b5b67c..be247ba4e 100644 --- a/httemplate/edit/bulk-cust_svc.html +++ b/httemplate/edit/bulk-cust_svc.html @@ -1,4 +1,4 @@ -<%= header( 'Bulk customer service change', +<%= include("/elements/header.html", 'Bulk customer service change', menubar( 'Main Menu' => $p, ), diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi index 0370ab726..94fd06ca5 100755 --- a/httemplate/edit/cust_pay.cgi +++ b/httemplate/edit/cust_pay.cgi @@ -45,7 +45,7 @@ $title .= " against Invoice #$linknum" if $link eq 'invnum'; %> -<%= header($title, '') %> +<%= include("/elements/header.html",$title, '') %> <% if ( $cgi->param('error') ) { %> <FONT SIZE="+1" COLOR="#ff0000">Error: <%= $cgi->param('error') %></FONT> diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi index b3d42bd96..6a8a0deb6 100644 --- a/httemplate/edit/part_export.cgi +++ b/httemplate/edit/part_export.cgi @@ -100,7 +100,7 @@ my $widget = new HTML::Widgets::SelectLayers( ); %> -<%= header("$action Export", menubar( +<%= include("/elements/header.html","$action Export", menubar( 'Main Menu' => popurl(2), ), ' onLoad="visualize()"') %> diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 60365f628..61e4086be 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -48,7 +48,7 @@ my $hashref = $part_pkg->hashref; %> -<%= header("$action Package Definition", menubar( +<%= include("/elements/header.html","$action Package Definition", menubar( 'Main Menu' => popurl(2), 'View all packages' => popurl(2). 'browse/part_pkg.cgi', )) %> diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 9749fc12d..c5fff25e0 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -23,7 +23,7 @@ my $hashref = $part_svc->hashref; #" onLoad=\"visualize()\"" %> -<%= header("$action Service Definition", +<%= include("/elements/header.html","$action Service Definition", menubar( 'Main Menu' => $p, 'View all service definitions' => "${p}browse/part_svc.cgi" ), diff --git a/httemplate/edit/payment_gateway.html b/httemplate/edit/payment_gateway.html index 33cc236d0..cf825df00 100644 --- a/httemplate/edit/payment_gateway.html +++ b/httemplate/edit/payment_gateway.html @@ -17,7 +17,7 @@ my $action = $payment_gateway->gatewaynum ? 'Edit' : 'Add'; %> -<%= header("$action Payment gateway", menubar( +<%= include("/elements/header.html","$action Payment gateway", menubar( 'Main Menu' => $p, 'View all payment gateways' => $p. 'browse/payment_gateway.html', )) %> diff --git a/httemplate/edit/prepay_credit.cgi b/httemplate/edit/prepay_credit.cgi index 9cf0fc6e1..253edb94b 100644 --- a/httemplate/edit/prepay_credit.cgi +++ b/httemplate/edit/prepay_credit.cgi @@ -15,7 +15,7 @@ $cgi->param('multiplier', '60') unless $cgi->param('multiplier'); %> -<%= header('Generate prepaid cards'. ($agent ? ' for '. $agent->agent : ''), +<%= include("/elements/header.html",'Generate prepaid cards'. ($agent ? ' for '. $agent->agent : ''), menubar( 'Main Menu' => $p, )) %> diff --git a/httemplate/edit/process/prepay_credit.cgi b/httemplate/edit/process/prepay_credit.cgi index 25ecbe079..ca7472432 100644 --- a/httemplate/edit/process/prepay_credit.cgi +++ b/httemplate/edit/process/prepay_credit.cgi @@ -29,7 +29,7 @@ unless ( ref($error) ) { $cgi->redirect(popurl(3). "edit/prepay_credit.cgi?". $cgi->query_string ) %><% } else { %> -<%= header( "$num prepaid cards generated". +<%= include("/elements/header.html", "$num prepaid cards generated". ( $agent ? ' for '.$agent->agent : '' ), menubar( 'Main menu' => popurl(3) ) ) diff --git a/httemplate/edit/process/reg_code.cgi b/httemplate/edit/process/reg_code.cgi index 4658257f3..a86c7383a 100644 --- a/httemplate/edit/process/reg_code.cgi +++ b/httemplate/edit/process/reg_code.cgi @@ -28,7 +28,7 @@ unless ( ref($error) ) { $cgi->redirect(popurl(3). "edit/reg_code.cgi?". $cgi->query_string ) %><% } else { %> -<%= header("$num registration codes generated for ". $agent->agent, menubar( +<%= include("/elements/header.html","$num registration codes generated for ". $agent->agent, menubar( 'Main menu' => popurl(3), 'View all agents' => popurl(3). 'browse/agent.cgi', ) ) %> diff --git a/httemplate/edit/rate.cgi b/httemplate/edit/rate.cgi index 1771f0105..f8f67f6c4 100644 --- a/httemplate/edit/rate.cgi +++ b/httemplate/edit/rate.cgi @@ -26,7 +26,7 @@ my %granularity = ( %> -<%= header("$action Rate plan", menubar( +<%= include("/elements/header.html","$action Rate plan", menubar( 'Main Menu' => $p, 'View all rate plans' => "${p}browse/rate.cgi", )) diff --git a/httemplate/edit/rate_region.cgi b/httemplate/edit/rate_region.cgi index cc14dd37d..934fe8035 100644 --- a/httemplate/edit/rate_region.cgi +++ b/httemplate/edit/rate_region.cgi @@ -34,7 +34,7 @@ if ( @rate_prefix ) { %> -<%= header("$action Region", menubar( +<%= include("/elements/header.html","$action Region", menubar( 'Main Menu' => $p, #'View all regions' => "${p}browse/rate_region.cgi", )) diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index 899d1ec45..2fba39e00 100644 --- a/httemplate/edit/reg_code.cgi +++ b/httemplate/edit/reg_code.cgi @@ -6,7 +6,7 @@ my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); %> -<%= header('Generate registration codes for '. $agent->agent, menubar( +<%= include("/elements/header.html",'Generate registration codes for '. $agent->agent, menubar( 'Main Menu' => $p, )) %> diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index e74d84d53..1e87c67ad 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -119,7 +119,7 @@ my $p1 = popurl(1); %> -<%= header("$action $svc account") %> +<%= include("/elements/header.html","$action $svc account") %> <% if ( $cgi->param('error') ) { %> <FONT SIZE="+1" COLOR="#ff0000">Error: <%= $cgi->param('error') %></FONT> diff --git a/httemplate/edit/svc_broadband.cgi b/httemplate/edit/svc_broadband.cgi index 9e064c5c8..cbd0c2c3a 100644 --- a/httemplate/edit/svc_broadband.cgi +++ b/httemplate/edit/svc_broadband.cgi @@ -82,7 +82,7 @@ my ($ip_addr, $speed_up, $speed_down, $blocknum) = %> -<%=header("Broadband Service $action", '')%> +<%=include("/elements/header.html","Broadband Service $action", '')%> <% if ($cgi->param('error')) { %> <FONT SIZE="+1" COLOR="#ff0000">Error: <%=$cgi->param('error')%></FONT><BR> diff --git a/httemplate/edit/svc_forward.cgi b/httemplate/edit/svc_forward.cgi index 2b9d35ad1..c1b90a9bd 100755 --- a/httemplate/edit/svc_forward.cgi +++ b/httemplate/edit/svc_forward.cgi @@ -110,7 +110,7 @@ my $src = $svc_forward->dbdef_table->column('src') ? $svc_forward->src : ''; %> -<%= header("Mail Forward $action") %> +<%= include("/elements/header.html","Mail Forward $action") %> <% if ( $cgi->param('error') ) { %> <FONT SIZE="+1" COLOR="#ff0000">Error: <%= $cgi->param('error') %></FONT> |