summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2010-03-23 09:13:32 +0000
committerivan <ivan>2010-03-23 09:13:32 +0000
commit9a778387bc4bfc97d28b25a9c123700fc6c15062 (patch)
tree8624e3de83e611ae2424633ae7973fc29f171aff /httemplate
parentf47e74271866786bb10f37d99383f1fb4ea0e349 (diff)
export svc_mailinglist to CGP groups, RT#7514
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/header.html4
-rw-r--r--httemplate/search/mailinglistmember.html11
2 files changed, 12 insertions, 3 deletions
diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html
index c9e8f5756..8a9cb8526 100644
--- a/httemplate/elements/header.html
+++ b/httemplate/elements/header.html
@@ -24,7 +24,7 @@ Example:
<HTML>
<HEAD>
<TITLE>
- <% $title %>
+ <% $title |h %>
</TITLE>
<META HTTP-Equiv="Cache-Control" Content="no-cache">
<META HTTP-Equiv="Pragma" Content="no-cache">
@@ -197,7 +197,7 @@ Example:
<TD BGCOLOR="#f8f8f8" HEIGHT="100%" VALIGN="top"> <!-- WIDTH="100%"> -->
<FONT SIZE=6>
- <% $title %>
+ <% $title |h %>
</FONT>
% unless ( $nobr ) {
diff --git a/httemplate/search/mailinglistmember.html b/httemplate/search/mailinglistmember.html
index c748c3ac8..ee395f416 100644
--- a/httemplate/search/mailinglistmember.html
+++ b/httemplate/search/mailinglistmember.html
@@ -20,6 +20,8 @@ my $mailinglist = qsearchs('mailinglist', { 'listnum' => $listnum })
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 @@ my $email_sub = sub {
$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?') )