|
87 | 87 | </table>'; |
88 | 88 | echo '<div class="fright">'.PageLinkButton('userclicks&fwdid='.$fwdid.'&msgid='.$msgid.'&dl=1', |
89 | 89 | s('Download subscribers')).'</div>'; |
90 | | - $query = sprintf('select htmlclicked, textclicked, user.email,user.id as userid,firstclick,date_format(latestclick, |
91 | | - "%%e %%b %%Y %%H:%%i") as latestclick,clicked from %s as uml_click, %s as user where uml_click.userid = user.id |
| 90 | + $query = sprintf('select htmlclicked, textclicked, user.email,user.id as userid,firstclick,latestclick,clicked |
| 91 | + from %s as uml_click, %s as user where uml_click.userid = user.id |
92 | 92 | and uml_click.forwardid = %d and uml_click.messageid = %d |
93 | 93 | and uml_click.clicked', $GLOBALS['tables']['linktrack_uml_click'], $GLOBALS['tables']['user'], $fwdid, $msgid); |
94 | 94 | } elseif ($userid && $msgid) { |
|
105 | 105 | <tr><td>' .$GLOBALS['I18N']->get('Entered').'<td><td>'.$messagedata['entered'].'</td></tr> |
106 | 106 | <tr><td>' .$GLOBALS['I18N']->get('Sent').'<td><td>'.$messagedata['sent'].'</td></tr> |
107 | 107 | </table>'; |
108 | | - $query = sprintf('select htmlclicked, textclicked,user.email,user.id as userid,firstclick,date_format(latestclick, |
109 | | - "%%e %%b %%Y %%H:%%i") as latestclick,clicked,messageid,forwardid,url from %s as uml_click, %s as user, %s as forward where uml_click.userid = user.id |
| 108 | + $query = sprintf('select htmlclicked, textclicked,user.email,user.id as userid,firstclick,latestclick, |
| 109 | + clicked,messageid,forwardid,url from %s as uml_click, %s as user, %s as forward where uml_click.userid = user.id |
110 | 110 | and uml_click.userid = %d and uml_click.messageid = %d and forward.id = uml_click.forwardid', |
111 | 111 | $GLOBALS['tables']['linktrack_uml_click'], $GLOBALS['tables']['user'], $GLOBALS['tables']['linktrack_forward'], |
112 | 112 | $userid, $msgid); |
|
119 | 119 | SELECT user.email, |
120 | 120 | user.id AS userid, |
121 | 121 | MIN(firstclick) AS firstclick, |
122 | | - DATE_FORMAT(MAX(latestclick), "%%e %%b %%Y %%H:%%i") AS latestclick, |
| 122 | + MAX(latestclick) AS latestclick, |
123 | 123 | SUM(clicked) AS clicked |
124 | 124 | FROM %s AS uml_click |
125 | 125 | JOIN %s AS user ON uml_click.userid = user.id |
|
149 | 149 | SELECT DISTINCT user.email, |
150 | 150 | user.id AS userid, |
151 | 151 | MIN(firstclick) AS firstclick, |
152 | | - DATE_FORMAT(MAX(latestclick), "%%e %%b %%Y %%H:%%i") AS latestclick, |
| 152 | + MAX(latestclick) AS latestclick, |
153 | 153 | SUM(clicked) AS clicked |
154 | 154 | FROM %s AS uml_click |
155 | 155 | JOIN %s AS user ON uml_click.userid = user.id |
|
169 | 169 | user.email, |
170 | 170 | user.id AS userid, |
171 | 171 | MIN(firstclick) AS firstclick, |
172 | | - DATE_FORMAT(MAX(latestclick), "%%e %%b %%Y %%H:%%i") AS latestclick, |
| 172 | + MAX(latestclick) AS latestclick, |
173 | 173 | SUM(clicked) AS clicked, |
174 | 174 | GROUP_CONCAT(messageid ORDER BY messageid SEPARATOR \' \') AS messageid, |
175 | 175 | forwardid, |
@@ -243,7 +243,7 @@ function ($matches) { |
243 | 243 | $userStatus['confirmed'] && empty($userStatus['blacklisted']) ? $GLOBALS['img_tick'] : $GLOBALS['img_cross']); |
244 | 244 | } |
245 | 245 | $ls->addColumn($element, $GLOBALS['I18N']->get('firstclick'), formatDateTime($row['firstclick'], 1)); |
246 | | - $ls->addColumn($element, $GLOBALS['I18N']->get('latestclick'), $row['latestclick']); |
| 246 | + $ls->addColumn($element, $GLOBALS['I18N']->get('latestclick'), formatDateTime($row['latestclick'], 1)); |
247 | 247 | $ls->addColumn($element, $GLOBALS['I18N']->get('clicks'), $row['clicked'].$ls_userid); |
248 | 248 | if (!empty($row['htmlclicked']) && !empty($row['textclicked'])) { |
249 | 249 | $ls->addRow($element, |
|
0 commit comments