projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Continue link added, contributed by profi-concept. Partly resolves #3
[mailer.git]
/
inc
/
modules
/
admin
/
what-list_country.php
diff --git
a/inc/modules/admin/what-list_country.php
b/inc/modules/admin/what-list_country.php
index c80463e1c8f5207c5521610ed59eb95fca28486f..1c99093dddd58a460e1ec0fdbc13bbeee8d113d3 100644
(file)
--- 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')",
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
$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");
} 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'])) {
} elseif (((isset($_POST['edit'])) || (isset($_POST['delete']))) && (!empty($_POST['id']))) {
if (count($_POST['id']) > 0) {
if (isset($_POST['edit'])) {