Continue link added, contributed by profi-concept. Partly resolves #3
[mailer.git] / inc / modules / admin / what-list_country.php
index c80463e..1c99093 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
@@ -65,6 +69,12 @@ if ((isset($_POST['add'])) && (!empty($_POST['code'])) && (!empty($_POST['descr'
 } 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&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'])) {