X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=4f6f7ef75fbfcd72b94505030ac7dd1016b11e48;hp=f99f2f068b979eaea3ba2ae5fbb38dcc9df2c6c6;hb=18bc864bfbf806ea49323094f2f571e9cefd0498;hpb=5e05724a635a22776f1b973f5d7e77989da4e048
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi
index f99f2f068..4f6f7ef75 100644
--- a/httemplate/misc/payment.cgi
+++ b/httemplate/misc/payment.cgi
@@ -1,220 +1,334 @@
-<% include( '/elements/header.html', "Process $type{$payby} payment" ) %>
-<% include( '/elements/small_custview.html', $cust_main, '', '', popurl(2) . "view/cust_main.cgi" ) %>
+<& /elements/header-cust_main.html, view=>'payment_history', cust_main=>$cust_main &>
+
+
-<% include('/elements/footer.html') %>
+<& /elements/footer-cust_main.html &>
+<%once>
+
+my %weight = (
+ 1 => 'Primary',
+ 2 => 'Secondary',
+ 3 => 'Tertiary',
+ 4 => 'Fourth',
+ 5 => 'Fifth',
+ 6 => 'Sixth',
+ 7 => 'Seventh',
+);
+
+%once>
<%init>
die "access denied"
@@ -239,8 +353,9 @@ my $balance = $cust_main->balance;
my $payinfo = '';
-#false laziness w/selfservice make_payment.html shortcut for one-country
my $conf = new FS::Conf;
+
+#false laziness w/selfservice make_payment.html shortcut for one-country
my %states = map { $_->state => 1 }
qsearch('cust_main_county', {
'country' => $conf->config('countrydefault') || 'US'
@@ -250,5 +365,3 @@ my @states = sort { $a cmp $b } keys %states;
my $payunique = "webui-payment-". time. "-$$-". rand() * 2**32;
%init>
-
-