[freeside-commits] freeside/httemplate/search mailinglistmember.html, 1.1.2.1, 1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Tue Mar 23 02:13:35 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv29320/httemplate/search
Modified Files:
Tag: FREESIDE_1_9_BRANCH
mailinglistmember.html
Log Message:
export svc_mailinglist to CGP groups, RT#7514
Index: mailinglistmember.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/mailinglistmember.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -w -d -r1.1.2.1 -r1.1.2.2
--- mailinglistmember.html 23 Mar 2010 03:48:01 -0000 1.1.2.1
+++ mailinglistmember.html 23 Mar 2010 09:13:33 -0000 1.1.2.2
@@ -20,6 +20,8 @@
or die "unknown listnum $listnum";
my $title = $mailinglist->listname. ' mailing list';
+my $svc_mailinglist = $mailinglist->svc_mailinglist;
+
my $query = {
'table' => 'mailinglistmember',
'hashref' => { 'listnum' => $listnum },
@@ -35,7 +37,14 @@
$r;
};
-my $html_init = <<"END";
+my $html_init = '';
+if ( $svc_mailinglist ) {
+ my $svcnum = $svc_mailinglist->svcnum;
+ my $label = encode_entities($svc_mailinglist->label);
+ $html_init .= qq[<A HREF="${p}/view/svc_mailinglist.cgi?$svcnum">View customer mailing list: $label</A><BR><BR>];
+}
+
+$html_init .= <<"END";
<SCRIPT TYPE="text/javascript">
function areyousure(email,membernum) {
if ( confirm('Are you sure you want to remove ' + email + ' from this mailing list?') )
More information about the freeside-commits
mailing list