* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * 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 *
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
+if ((isFormSent()) && (isGetRequestElementSet('id'))) {
// Send mail or message
// Load admin's email address
- $email = getAdminEmail(bigintval(getRequestElement('admin')));
+ $email = getAdminEmail(bigintval(getRequestElement('id')));
// Load email template and send the mail to the admin
$message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), 0);
// Mail / message dropped
displayMessage('{--ADMIN_ADMINS_ADMIN_CONTACTED--}');
-} elseif (isGetRequestElementSet('admin')) {
+} elseif (isGetRequestElementSet('id')) {
// Load contact form template
- $content['admin'] = getRequestElement('admin');
+ $content['id'] = getRequestElement('id');
// Load main form
- loadTemplate('admin_admins_contct_form', false, $content);
+ loadTemplate('admin_admins_contct_form', FALSE, $content);
} else {
// Please select an admin!
- displayMessage('{--ADMIN_ADMINS_SELECT_ADMIN--}');
+ addAdminSelectionBox();
}
// [EOF]