]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor.php
A lot CSS classes rewritten, please update all your themes.
[mailer.git] / inc / modules / admin / what-list_sponsor.php
index 864e6fe6fdbdd50371159856e85019ba915c6d2c..43cf12da70440c3b36c3a24e02eeb6bc62eacf84 100644 (file)
@@ -50,7 +50,11 @@ if (isGetRequestParameterSet('id')) {
        $result = SQL_QUERY_ESC("SELECT
        `company`, `position`, `gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`,
        `phone`, `fax`, `cell`, `email`, `url`, `tax_ident`,
-       `status`, `sponsor_created`, `last_online`, `last_change`, `receive_warnings`,
+       `status`,
+       UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
+       UNIX_TIMESTAMP(`last_online`) AS `last_online`,
+       UNIX_TIMESTAMP(`last_change`) AS `last_change`,
+       `receive_warnings`,
        `points_amount`, `points_used`, `remote_addr`, `warning_interval`, `refid`, `ref_count`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
@@ -99,7 +103,9 @@ WHERE
                // Sponsor found so let's list all his referals
                $result = SQL_QUERY_ESC("SELECT
        `id`, `gender`, `surname`, `family`, `email`, `status`,
-       `sponsor_created`, `last_online`, `points_amount`, `points_used`,
+       UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
+       UNIX_TIMESTAMP(`last_online`) AS `last_online`,
+       `points_amount`, `points_used`,
        `remote_addr`, `ref_count`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
@@ -125,7 +131,9 @@ ORDER BY
        // List all sponsors
        $result_main = SQL_QUERY("SELECT
        `id`, `gender`, `surname`, `family`, `email`, `status`,
-       `sponsor_created`, `last_online`, `points_amount`, `points_used`, `remote_addr`
+       UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`,
+       UNIX_TIMESTAMP(`last_online`) AS `last_online`,
+       `points_amount`, `points_used`, `remote_addr`
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_data`
 ORDER BY