diff options
author | ivan <ivan> | 2010-03-23 09:13:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-23 09:13:33 +0000 |
commit | 5a1e3e106a2a8ed738c1b39bb6e6445e9993088e (patch) | |
tree | 6cd14eb0a49924d61bd82b84a054fc5025ef2c66 /httemplate | |
parent | 740a284c94d57bd755baa58dae36eae5bc581e44 (diff) |
export svc_mailinglist to CGP groups, RT#7514
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/header.html | 4 | ||||
-rw-r--r-- | httemplate/search/mailinglistmember.html | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index 22e872eca..8da91ef49 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"> @@ -293,7 +293,7 @@ input.fstext { <TD BGCOLOR="#e8e8e8" 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?') ) |