X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fcust_main_county.cgi;h=2e433754e3e94d739ad1e2a959aa7c5377461646;hb=a3eeea576fbb0119c3c55306979e62352c6905ec;hp=12bdeb333b486612064984db4bf8abcd1ff459ac;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/httemplate/browse/cust_main_county.cgi b/httemplate/browse/cust_main_county.cgi index 12bdeb333..2e433754e 100755 --- a/httemplate/browse/cust_main_county.cgi +++ b/httemplate/browse/cust_main_county.cgi @@ -85,17 +85,31 @@ my $edit_link = [ 'javascript:void(0);', sub { ''; } ]; my $edit_onclick = sub { my $row = shift; my $taxnum = $row->taxnum; - my $color = '#333399'; - qq!overlib( OLiframeContent('${p}edit/cust_main_county.html?$taxnum', 540, 420, 'edit_cust_main_county_popup' ), CAPTION, 'Edit tax rate', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '$color', CGCOLOR, '$color' ); return false;!; + include( '/elements/popup_link_onclick.html', + 'action' => "${p}edit/cust_main_county.html?$taxnum", + 'actionlabel' => 'Edit tax rate', + 'height' => 420, + #default# 'width' => 540, + #default# 'color' => '#333399', + ); }; sub expand_link { - my( $row, $desc ) = @_; - my $taxnum = $row->taxnum; + my %param = @_; + + my $taxnum = $param{'row'}->taxnum; my $url = "${p}edit/cust_main_county-expand.cgi?$taxnum"; - my $color = '#333399'; - qq!!; + ''. + include( '/elements/popup_link.html', + 'label' => $param{'label'}, + 'action' => $url, + 'actionlabel' => $param{'desc'}, + 'height' => 420, + #default# 'width' => 540, + #default# 'color' => '#333399', + ). + ''; } sub separate_taxclasses_link { @@ -125,12 +139,7 @@ $html_init .= "
Click on separate taxclasses to specify taxes per taxc if $enable_taxclasses; $html_init .= '

'; -$html_init .= qq( - - - - -); +$html_init .= include('/elements/init_overlib.html'); my $title = ''; @@ -227,13 +236,17 @@ my @fields = ( sub { state_label($_[0]->state, $_[0]->country). ( $_[0]->state ? '' - : ' '. expand_link($_[0], 'Add States'). - 'add states
' + : ' '. expand_link( desc => 'Add States', + row => $_[0], + label => 'add states', + ) ) }, sub { $_[0]->county || '(all) '. - expand_link($_[0], 'Add Counties'). - 'add counties' + expand_link( desc => 'Add Counties', + row => $_[0], + label => 'add counties', + ) }, );