X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_country.php;h=1c99093dddd58a460e1ec0fdbc13bbeee8d113d3;hp=c80463e1c8f5207c5521610ed59eb95fca28486f;hb=ba973321465edf4c1239d3b499b6de1e4be1f10c;hpb=a954ccdf4aba81ec0e75a1836aa4bc14cb245aba diff --git a/inc/modules/admin/what-list_country.php b/inc/modules/admin/what-list_country.php index c80463e1c8..1c99093ddd 100644 --- a/inc/modules/admin/what-list_country.php +++ b/inc/modules/admin/what-list_country.php @@ -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'])) {