X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_home.php;h=fb80c90ea2e4b215092daaac0b7793c8780bbeba;hb=51ad4dc0ad7540d36b605e5ad958c42b68dced1f;hp=5810fb04d9b29aaac3b18a4688b7519066ab8845;hpb=c28537699175c4cb71a92e720541e9ce1381c8a3;p=mailer.git diff --git a/inc/modules/admin/what-config_home.php b/inc/modules/admin/what-config_home.php index 5810fb04d9..fb80c90ea2 100644 --- a/inc/modules/admin/what-config_home.php +++ b/inc/modules/admin/what-config_home.php @@ -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 = '{--_IS_NEW_HOME--}'; // 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