[freeside-commits] freeside/httemplate/view/cust_main payment_history.html, 1.21.2.7, 1.21.2.8

Ivan,,, ivan at wavetail.420.am
Mon Mar 31 22:49:43 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv28766

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	payment_history.html 
Log Message:
finish component-izing overlib links

Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.21.2.7
retrieving revision 1.21.2.8
diff -u -d -r1.21.2.7 -r1.21.2.8
--- payment_history.html	27 Mar 2008 21:07:14 -0000	1.21.2.7
+++ payment_history.html	1 Apr 2008 05:49:41 -0000	1.21.2.8
@@ -3,12 +3,28 @@
 % my $s = 0;
 % if ( $payby{'BILL'} && $curuser->access_right('Post payment') ) { 
   <% $s++ ? ' | ' : '' %>
-  <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_pay.cgi?popup=1;payby=BILL;custnum=<% $custnum %>', 392, 336, 'cust_pay_popup' ), CAPTION, 'Enter check payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">Enter check payment</A>
+  <% include('/elements/popup_link-cust_main.html',
+               'label'       => 'Enter check payment',
+               'action'      => "${p}edit/cust_pay.cgi?popup=1;payby=BILL",
+               'cust_main'   => $cust_main,
+               'actionlabel' => 'Enter check payment',
+               'width'       => 392,
+               #default# 'height' => 336,
+            )
+  %>
 % } 
 
 % if ( $payby{'CASH'} && $curuser->access_right('Post payment') ) { 
   <% $s++ ? ' | ' : '' %>
-  <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_pay.cgi?popup=1;payby=CASH;custnum=<% $custnum %>', 392, 336, 'cust_pay_popup' ), CAPTION, 'Enter cash payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">Enter cash payment</A>
+  <% include('/elements/popup_link-cust_main.html',
+               'label'       => 'Enter cash payment',
+               'action'      => "${p}edit/cust_pay.cgi?popup=1;payby=CASH",
+               'cust_main'   => $cust_main,
+               'actionlabel' => 'Enter cash payment',
+               'width'       => 392,
+               #default# 'height' => 336,
+            )
+  %>
 % } 
 
 % if ( $payby{'WEST'} && $curuser->access_right('Post payment') ) { 
@@ -40,7 +56,15 @@
 <BR>
 
 % if ( $curuser->access_right('Post credit') ) { 
-  <A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('<% $p %>edit/cust_credit.cgi?<% $custnum %>', 392, 336, 'cust_credit_popup' ), CAPTION, 'Enter credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">Enter credit</A>
+  <% include('/elements/popup_link-cust_main.html',
+               'label'       => 'Enter credit',
+               'action'      => "${p}edit/cust_credit.cgi",
+               'cust_main'   => $cust_main,
+               'actionlabel' => 'Enter credit',
+               'width'       => 392,
+               #default# 'height' => 336,
+            )
+  %>
   <BR>
 % } 
 
@@ -119,9 +143,15 @@
 %    $post = '</FONT></B>';
 %    if ( $curuser->access_right('Apply payment') # ) {
 %         || $curuser->access_right('Post payment') ) { #remove after 1.7.3
-%      $apply = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_bill_pay.cgi?!.
-%               $cust_pay->paynum.
-%               qq!', 392, 336, 'cust_bill_pay_popup' ), CAPTION, 'Apply payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+%      $apply = ' ('. include( '/elements/popup_link.html',
+%                                'label'       => 'apply',
+%                                'action'      => "${p}edit/cust_bill_pay.cgi?".
+%                                                 $cust_pay->paynum,
+%                                'actionlabel' => 'Apply payment',
+%                                'width'       => 392,
+%                                #default# 'height' => 336,
+%                            ).
+%                ')';
 %    }
 %  } elsif (    scalar(@cust_bill_pay)   == 1
 %            && scalar(@cust_pay_refund) == 0
@@ -159,17 +189,28 @@
 %               $cust_pay->unapplied. ' unapplied</FONT></B>';
 %      if ( $curuser->access_right('Apply payment') # ) {
 %           || $curuser->access_right('Post payment') ) { #remove after 1.7.3
-%        $desc .= qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_bill_pay.cgi?!.
-%                 $cust_pay->paynum. 
-%                 qq!', 392, 336, 'cust_bill_pay_popup' ), CAPTION, 'Apply payment', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+%        $desc = ' ('. include( '/elements/popup_link.html',
+%                                 'label'      => 'apply',
+%                                 'action'     => "${p}edit/cust_bill_pay.cgi?".
+%                                                 $cust_pay->paynum,
+%                                 'actionlabel' => 'Apply payment',
+%                                 'width'      => 392,
+%                                 #default# 'height' => 336,
+%                            ).
+%                ')';
 %      }
 %      $desc .= '<BR>';
 %    }
 %  }
 %
-%  my $view = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}view/cust_pay.html?link=popup;paynum=!.
-%             $cust_pay->paynum.
-%             qq!', 540, 336, 'view_cust_pay_popup' ), CAPTION, 'Payment Receipt', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">view receipt</A>)!;
+%  my $view =
+%    ' ('. include('/elements/popup_link.html',
+%                    'label'     => 'view receipt',
+%                    'action'    => "${p}view/cust_pay.html?link=popup;paynum=".
+%                                    $cust_pay->paynum,
+%                    'actionlabel' => 'Payment Receipt',
+%                 ).
+%     ')';
 %
 %  my $refund = '';
 %  my $refund_days = $conf->config('card_refund-days') || 120;
@@ -303,9 +344,15 @@
 %    $post = '</FONT></B>';
 %    if ( $curuser->access_right('Apply credit') # ) {
 %         || $curuser->access_right('Post credit') ) { #remove after 1.7.3
-%      $apply = qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_credit_bill.cgi?!.
-%               $cust_credit->crednum.
-%               qq!', 392, 336, 'cust_credit_bill_popup' ), CAPTION, 'Apply credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+%      $apply = ' ('. include( '/elements/popup_link.html',
+%                                'label'    => 'apply',
+%                                'action'   => "${p}edit/cust_credit_bill.cgi?".
+%                                              $cust_credit->crednum,
+%                                'actionlabel' => 'Apply credit',
+%                                'width'    => 392,
+%                                #default# 'height' => 336,
+%                            ).
+%                ')';
 %    }
 %  } elsif (    scalar(@cust_credit_bill)   == 1
 %            && scalar(@cust_credit_refund) == 0
@@ -342,9 +389,15 @@
 %               $cust_credit->credited. ' unapplied</FONT></B>';
 %      if ( $curuser->access_right('Apply credit') # ) {
 %           || $curuser->access_right('Post credit') ) { #remove after 1.7.3
-%        $desc .= qq! (<A HREF="javascript:void(0);" onClick="overlib( OLiframeContent('${p}edit/cust_credit_bill.cgi?!.
-%                 $cust_credit->crednum.
-%                 qq!', 392, 336, 'cust_credit_bill_popup' ), CAPTION, 'Apply credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK ); return false;">apply</A>)!;
+%        $desc = ' ('. include( '/elements/popup_link.html',
+%                                'label'       => 'apply',
+%                                'action'      => "${p}edit/cust_credit_bill.cgi?".
+%                                                 $cust_credit->crednum,
+%                                'actionlabel' => 'Apply credit',
+%                                'width'       => 392,
+%                                #default# 'height' => 336,
+%                            ).
+%                ')';
 %      }
 %      $desc .= '<BR>';
 %    }



More information about the freeside-commits mailing list