]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_home.php
More EL code
[mailer.git] / inc / modules / admin / what-config_home.php
index 5810fb04d9b29aaac3b18a4688b7519066ab8845..fb80c90ea2e4b215092daaac0b7793c8780bbeba 100644 (file)
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : what-config_home.php                             *
  * -------------------------------------------------------------------- *
- * Short description : Set "home" page                                  *
+ * Short description : Set 'home' page                                  *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : "Home"-Seite festlegen                           *
+ * Kurzbeschreibung  : 'home'-Seite festlegen                           *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -66,7 +66,7 @@ switch ($sub) {
                        $content['cookie_selection'] = createConfigurationTimeSelections('index_cookie', 'YMWD');
 
                        // Output form
-                       loadTemplate('admin_config_home_settings', false, $content);
+                       loadTemplate('admin_config_home', false, $content);
                }
                break;
 
@@ -77,17 +77,26 @@ switch ($sub) {
                } // END - if
 
                // Load all what menu points
-               $result = SQL_QUERY("SELECT id, what, title
-FROM `{?_MYSQL_PREFIX?}_guest_menu`
-WHERE `action`='main' AND `what` != '' AND `what` IS NOT NULL AND `locked`='N'
-ORDER BY `sort` ASC", __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT
+       `id`,
+       `what`,
+       `title`
+FROM
+       `{?_MYSQL_PREFIX?}_guest_menu`
+WHERE
+       `action`='main' AND
+       `what` != '' AND
+       `what` IS NOT NULL AND
+       `locked`='N'
+ORDER BY
+       `sort` ASC", __FILE__, __LINE__);
 
                // Init variables
                $OUT = '';
 
                // Process all entries
                while ($content = SQL_FETCHARRAY($result)) {
-                       // Link for setting 'what' as new "home"
+                       // Link for setting 'what' as new 'home'
                        $newHomeLink = '<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=target&amp;home=' . $content['what'] . '%}">{--_IS_NEW_HOME--}</a>';
 
                        // Is this current home?
@@ -101,14 +110,14 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
                        $content['link'] = $newHomeLink;
 
                        // Load row template
-                       $OUT .= loadTemplate('admin_config_home_row', true, $content);
+                       $OUT .= loadTemplate('admin_list_home_row', true, $content);
                } // END - while
 
                // Free memory
                SQL_FREERESULT($result);
 
                // Load template
-               loadTemplate('admin_config_home', false, $OUT);
+               loadTemplate('admin_list_home', false, $OUT);
                break;
 
        default: // Output selection table