]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
Also this old column name is back ...
[mailer.git] / inc / modules / admin / what-refbanner.php
index 1a6d1dd7e4ced5180d400160c7fbeefae94ebfb3..0982ed3ef8a160b298fe8a91c0fb95994910612f 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -59,7 +59,7 @@ if (isFormSent()) {
                        // Was the banner found?
                        if (SQL_HASZERONUMS($result)) {
                                // Add banner
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (`url`,`alternate`,`visible`)
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (`url`, `alternate`, `visible`)
 VALUES ('%s','%s','%s')",
                                        array(
                                                postRequestElement('url'),
@@ -105,7 +105,7 @@ VALUES ('%s','%s','%s')",
        $OUT = '';
        foreach (postRequestElement('sel') as $id => $sel) {
                // Load data
-               $result = SQL_QUERY_ESC("SELECT `id`,`url`,`alternate`,`visible` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
+               $result = SQL_QUERY_ESC("SELECT `id`, `url`, `alternate`, `visible` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
                        array(bigintval($id)), __FILE__, __LINE__);
                $content = SQL_FETCHARRAY($result);
                SQL_FREERESULT($result);
@@ -114,11 +114,11 @@ VALUES ('%s','%s','%s')",
                $content['visible'] = addSelectionBox('yn', $content['visible'], 'visible');
 
                // Load row template and switch color
-               $OUT .= loadTemplate('admin_edit_refbanner_row', true, $content);
+               $OUT .= loadTemplate('admin_edit_refbanner_row', TRUE, $content);
        } // END - foreach
 
        // Load main template
-       loadTemplate('admin_edit_refbanner', false, $OUT);
+       loadTemplate('admin_edit_refbanner', FALSE, $OUT);
 } else {
        if ((ifPostContainsSelections()) && (isFormSent('delete'))) {
                // Delete banner
@@ -129,7 +129,7 @@ VALUES ('%s','%s','%s')",
        } // END - if
 
        // Referral levels
-       $result = SQL_QUERY('SELECT `id`,`url`,`alternate`,`visible`,`counter`,`clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
+       $result = SQL_QUERY('SELECT `id`, `url`, `alternate`, `visible`, `counter`, `clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
 
        // Entries found?
        if (!SQL_HASZERONUMS($result)) {
@@ -137,14 +137,14 @@ VALUES ('%s','%s','%s')",
                $OUT = '';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Load row template and switch color
-                       $OUT .= loadTemplate('admin_list_refbanner_row', true, $content);
+                       $OUT .= loadTemplate('admin_list_refbanner_row', TRUE, $content);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Load main template
-               loadTemplate('admin_list_refbanner', false, $OUT);
+               loadTemplate('admin_list_refbanner', FALSE, $OUT);
        } // END - if
 
        // Form for adding new referral levels