|
34 | 34 | if ($num) { |
35 | 35 | $resptime = 0; |
36 | 36 | $totalresp = 0; |
37 | | - $ls->setElementHeading(s('Campaign Id')); |
| 37 | + $ls->setElementHeading(s('Campaign')); |
38 | 38 |
|
39 | 39 | while ($msg = Sql_Fetch_Array($msgs)) { |
40 | | - $ls->addElement($msg['messageid'], |
41 | | - PageURL2('message', s('view'), 'id='.$msg['messageid'])); |
| 40 | + $element = sprintf('<!--%d--> %s', $msg['messageid'], campaignTitle($msg['messageid'])); |
| 41 | + $ls->addElement($element, PageURL2('message', s('view'), 'id='.$msg['messageid'])); |
| 42 | + |
42 | 43 | if (defined('CLICKTRACK') && CLICKTRACK) { |
43 | 44 | $clicksreq = Sql_Fetch_Row_Query(sprintf('select sum(clicked) as numclicks from %s where userid = %s and messageid = %s', |
44 | 45 | $GLOBALS['tables']['linktrack_uml_click'], $user['id'], $msg['messageid'])); |
45 | 46 | $clicks = sprintf('%d', $clicksreq[0]); |
46 | 47 | if ($clicks) { |
47 | | - $ls->addColumn($msg['messageid'], s('clicks'), |
| 48 | + $ls->addColumn($element, s('clicks'), |
48 | 49 | PageLink2('userclicks&userid='.$user['id'].'&msgid='.$msg['messageid'], $clicks)); |
49 | 50 | } else { |
50 | | - $ls->addColumn($msg['messageid'], s('clicks'), 0); |
| 51 | + $ls->addColumn($element, s('clicks'), 0); |
51 | 52 | } |
52 | 53 | } |
53 | 54 |
|
54 | | - $ls->addColumn($msg['messageid'], s('sent'), formatDateTime($msg['entered'], 1)); |
| 55 | + $ls->addColumn($element, s('sent'), formatDateTime($msg['entered'], 1)); |
55 | 56 | if (!$msg['notviewed']) { |
56 | | - $ls->addColumn($msg['messageid'], s('viewed'), formatDateTime($msg['viewed'], 1)); |
57 | | - $ls->addColumn($msg['messageid'], s('Response time'), secs2time($msg['responsetime'])); |
| 57 | + $ls->addColumn($element, s('viewed'), formatDateTime($msg['viewed'], 1)); |
| 58 | + $ls->addColumn($element, s('Response time'), secs2time($msg['responsetime'])); |
58 | 59 | $resptime += $msg['responsetime']; |
59 | 60 | $totalresp += 1; |
60 | 61 | } |
61 | 62 | if (!empty($bounces[$msg['messageid']])) { |
62 | | - $ls->addColumn($msg['messageid'], s('bounce'), $bounces[$msg['messageid']]); |
| 63 | + $ls->addColumn($element, s('bounce'), $bounces[$msg['messageid']]); |
63 | 64 | } |
64 | 65 | } |
65 | 66 | if ($totalresp) { |
|
0 commit comments