Continue link added, contributed by profi-concept. Partly resolves #3
[mailer.git] / inc / modules / admin / what-list_country.php
index 8dbb524de22c70ff8740c51d520a88cfc5d0b25d..1c99093dddd58a460e1ec0fdbc13bbeee8d113d3 100644 (file)
@@ -48,9 +48,13 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr'
        if (SQL_NUMROWS($result) == 0) {
                // Save entry
                SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_countries` (code, descr, is_active) VALUES ('%s','%s','%s')",
- array(strtoupper(substr($_POST['code'], 0, 2)), $_POST['descr'], $_POST['is_active']), __FILE__, __LINE__);
+                       array(
+                               strtoupper(substr($_POST['code'], 0, 2)),
+                               $_POST['descr'],
+                               $_POST['is_active']
+                       ), __FILE__, __LINE__);
 
-               // Country added
+               // Country added
                $MSG = ADMIN_COUNTRY_ADDED_1.strtoupper($_POST['descr']).ADMIN_COUNTRY_ADDED_2;
        } else {
                // Free memory
@@ -62,10 +66,15 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr'
 
        // Display message
        LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
-       OUTPUT_HTML("<br />");
 } elseif ((isset($_POST['change'])) && (!empty($_POST['id']))) {
        // Change all status
        ADMIN_CHANGE_ACTIVATION_STATUS($_POST['id'], "countries", "is_active");
+
+       // Show next link
+       LOAD_TEMPLATE("admin_next_link", false, array(
+               'url'   => "modules.php?module=admin&amp;what=list_country",
+               'title' => getMessage('ADMIN_COUNTRY_ACTIVATION_NEXT_LINK')
+       ));
 } elseif (((isset($_POST['edit'])) || (isset($_POST['delete']))) && (!empty($_POST['id']))) {
        if (count($_POST['id']) > 0) {
                if (isset($_POST['edit'])) {
@@ -156,7 +165,6 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr'
 
                // Display message
                LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
-               OUTPUT_HTML("<br />");
        }
 
        // Load currenty setup country codes to list