]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
Extension ext-network continued:
[mailer.git] / inc / modules / admin / what-list_country.php
index 96a45b90565ac3d45fe27f4aff8da2385deca2fd..2523a39fe130f4b84638341d2a92997284007791 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -83,7 +83,7 @@ if ((isFormSent('add')) && (isPostRequestElementSet('code')) && (isPostRequestEl
                if (isFormSent('edit')) {
                        // Edit template
                        $row    = 'admin_edit_country_row';
-                       $post   = 'modify';
+                       $do     = 'modify';
                        $class  = 'form_submit';
                        $submit = '{--ADMIN_COUNTRY_EDIT_NOW--}';
                        $title  = '{--ADMIN_COUNTRY_EDIT_TITLE--}';
@@ -91,7 +91,7 @@ if ((isFormSent('add')) && (isPostRequestElementSet('code')) && (isPostRequestEl
                } else {
                        // Delete template
                        $row    = 'admin_delete_country_row';
-                       $post   = 'remove';
+                       $do     = 'remove';
                        $class  = 'form_delete';
                        $submit = '{--ADMIN_COUNTRY_DELETE_NOW--}';
                        $title  = '{--ADMIN_COUNTRY_DELETE_TITLE--}';
@@ -122,7 +122,7 @@ if ((isFormSent('add')) && (isPostRequestElementSet('code')) && (isPostRequestEl
                // Prepare content for template
                $content = array(
                        'rows'   => $OUT,
-                       'mode'   => $post,
+                       'do'     => $do,
                        'class'  => $class,
                        'title'  => $title,
                        'submit' => $submit,
@@ -139,7 +139,15 @@ if ((isFormSent('add')) && (isPostRequestElementSet('code')) && (isPostRequestEl
        if ((isPostRequestElementSet('modify')) && (isPostRequestElementSet('id'))) {
                // Modify
                foreach (postRequestElement('id') as $id => $sel) {
-                       addSql("UPDATE `{?_MYSQL_PREFIX?}_countries` SET `code`='" . postRequestElement('code', $id) . "', `descr`='" . postRequestElement('descr', $id) . "', `is_active`='" . postRequestElement('is_active', $id) . "' WHERE `id`=" . bigintval($id) . " LIMIT 1");
+                       addSql("UPDATE
+       `{?_MYSQL_PREFIX?}_countries`
+SET
+       `code`='" . postRequestElement('code', $id) . "',
+       `descr`='" . postRequestElement('descr', $id) . "',
+       `is_active`='" . postRequestElement('is_active', $id) . "'
+WHERE
+       `id`=" . bigintval($id) . "
+LIMIT 1");
                } // END - foreach
 
                // Create message