]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-stats.php
Naming convention applied: is outdated, use (not shortended word), fixed missing...
[mailer.git] / inc / modules / member / what-stats.php
index 8a37457834b40138ecdace2802f72110ab840217..f4e57563592cad4de3e1e12f89fd74f847d692e8 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -100,21 +98,13 @@ if (!SQL_HASZERONUMS($result)) {
        $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the template
-               $content = array(
-                       'cat_id'            => $content['cat_id'],
-                       'payment_id'        => $content['payment_id'],
-                       'url'               => $content['url'],
-                       'timestamp_ordered' => generateDateTime($content['timestamp_ordered'], 2),
-                       'max_rec'           => $content['max_rec'],
-                       'timestamp_sent'    => generateDateTime($content['timestamp_send'], 2),
-                       'clicks'            => $content['clicks'],
-                       'subject'           => $content['subject'],
-                       'percents'          => ($content['clicks'] / $content['max_rec'] * 100),
-               );
+               $content['timestamp_ordered'] = generateDateTime($content['timestamp_ordered'], 2);
+               $content['timestamp_sent']    = generateDateTime($content['timestamp_send'], 2);
+               $content['percents']          = ($content['clicks'] / $content['max_rec'] * 100);
 
                // Load row template and switch colors
                $OUT .= loadTemplate('member_stats_row', true, $content);
-       } // END - if
+       } // END - while
 
        // Load main template
        $main_content['stats'] = loadTemplate('member_stats_table', true, $OUT);