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
// 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&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'])) {
// Display message
LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
- OUTPUT_HTML("<br />");
}
// Load currenty setup country codes to list