[freeside-commits] freeside/httemplate/view svc_www.cgi,1.13,1.14
Jeff Finucane,420,,
jeff at wavetail.420.am
Tue Oct 24 20:12:12 PDT 2006
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv14970/httemplate/view
Modified Files:
svc_www.cgi
Log Message:
no usersvc svc_www tweak
Index: svc_www.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_www.cgi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- svc_www.cgi 23 Aug 2006 22:25:38 -0000 1.13
+++ svc_www.cgi 25 Oct 2006 03:12:10 -0000 1.14
@@ -20,6 +20,9 @@
%}
%#eofalse
%
+%my $part_svc=qsearchs('part_svc',{'svcpart'=>$cust_svc->svcpart})
+% or die "svc_www: Unknown svcpart" . $cust_svc->svcpart;
+
%my $usersvc = $svc_www->usersvc;
%my $svc_acct = '';
%my $email = '';
@@ -48,17 +51,20 @@
% qq!<TR><TD ALIGN="right">Service number</TD>!.
% qq!<TD BGCOLOR="#ffffff">$svcnum</TD></TR>!.
% qq!<TR><TD ALIGN="right">Website name</TD>!.
-% qq!<TD BGCOLOR="#ffffff"><A HREF="http://$www">$www<A></TD></TR>!.
-% qq!<TR><TD ALIGN="right">Account</TD>!.
+% qq!<TD BGCOLOR="#ffffff"><A HREF="http://$www">$www<A></TD></TR>!;
+%if ( $part_svc->part_svc_column('usersvc')->columnflag ne 'F'
+% || $part_svc->part_svc_column('usersvc')->columnvalue !~ /^\s*$/) {
+% print qq!<TR><TD ALIGN="right">Account</TD>!.
% qq!<TD BGCOLOR="#ffffff">!;
%
-%if ( $usersvc ) {
-% print qq!<A HREF="${p}view/svc_acct.cgi?$usersvc">$email</A>!;
-%} else {
-% print '</i>(none)</i>';
-%}
+% if ( $usersvc ) {
+% print qq!<A HREF="${p}view/svc_acct.cgi?$usersvc">$email</A>!;
+% } else {
+% print '</i>(none)</i>';
+% }
%
-%print '</TD></TR>';
+% print '</TD></TR>';
+%}
%
%foreach (sort { $a cmp $b } $svc_www->virtual_fields) {
% print $svc_www->pvf($_)->widget('HTML', 'view', $svc_www->getfield($_)),
More information about the freeside-commits
mailing list