]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-edit_user.php
A lot has been rewritten, ext-teams added, ext-forced continued:
[mailer.git] / inc / modules / admin / what-edit_user.php
index a9acd58ae12661378ace2c814c3d265ec1ac1a1b..4c52c95b585e0481d8c5b1d60683d835b910685e 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * @TODO Add support for ext-country                                    *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -45,16 +43,16 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 // Fix a notice
 $result_main = false;
 if (isGetRequestParameterSet('userid')) {
        // Load user entry
        $result_main = SQL_QUERY_ESC("SELECT
-       `userid`, `gender`, `surname`, `family`, `street_nr`, `zip`, `city`, `country`,
+       `userid`,`gender`,`surname`,`family`,`street_nr`,`zip`,`city`,`country`,
        `email`,
-       `birth_day`, `birth_month`, `birth_year`,
+       `birth_day`,`birth_month`,`birth_year`,
        `max_mails`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
@@ -111,32 +109,24 @@ LIMIT 1",
                                postRequestParameter('email'),
                                bigintval(getRequestParameter('userid')),
                        ), __FILE__, __LINE__);
-                       $content = getMessage('USER_ACCOUNT_SAVED');
+                       $content = '{--ADMIN_USER_ACCOUNT_SAVED--}';
                } else {
                        // Problem while saving data
-                       $content = getMessage('USER_ACCOUNT_NOT_SAVED');
+                       $content = '{--ADMIN_USER_ACCOUNT_NOT_SAVED--}';
                }
 
                // Load template
-               loadTemplate('admin_settings_saved', false, $content);
+               displayMessage($content);
        } else {
                // Load entry
                $content = SQL_FETCHARRAY($result_main);
 
-               // Init entries
-               foreach (array('gender_m','gender_f','gender_c') as $entry) {
-                       $content[$entry] = '';
-               } // END - foreach
-
-               // Prepare selections
-               $content['gender_' . strtolower($content['gender'])] = ' selected="selected"';
-
                // Load template
                loadTemplate('admin_edit_user', false, $content);
        }
 } else {
        // Account does not exists!
-       loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))) . '</div>');
+       loadTemplate('admin_settings_unsaved', false, '{%message,ADMIN_MEMBER_404=' . bigintval(getRequestParameter('userid')) . '%}');
 }
 
 // Free the result