* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
// Check if the admin has entered title and what-php file name...
-if (((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu')) || (!isPostRequestParameterSet(('descr')))) && (isFormSent())) {
+if ((isFormSent()) && ((!isPostRequestParameterSet('title')) || (!isPostRequestParameterSet('menu')) || (!isPostRequestParameterSet('descr')))) {
unsetPostRequestParameter('ok');
} // END - if
}
}
}
- $OUT = " <select class=\"admin_select\" name=\"sort\" size=\"1\">
- <option value=\"0\">{--IS_FIRST_MENU--}</option>\n";
+
+ $OUT = ' <select class="admin_select" name="sort" size="1">
+ <option value="0">{--IS_FIRST_MENU--}</option>';
foreach ($below as $key => $m) {
if (is_array($m)) {
foreach ($m as $key2 => $m2) {
- $OUT .= " <option value=\"".$m2."\">".$titles[$key][$key2];
+ $OUT .= ' <option value="' . $m2 . '">' . $titles[$key][$key2];
foreach ($menus as $k => $v) {
if (($v == $key) && (!is_array($v))) {
- $OUT .= " (" . $titles[$k] . ')';
- }
- }
- $OUT .= "</option>\n";
+ $OUT .= ' (' . $titles[$k] . ')';
+ } // END - if
+ } // END - foreach
+ $OUT .= '</option>';
}
- }
- else
- {
- $OUT .= " <option value=\"".$m."\">".$titles[$key]."</option>\n";
+ } else {
+ $OUT .= ' <option value="' . $m . '">' . $titles[$key] . '</option>';
}
}
- $OUT .= "</select>";
+ $OUT .= '</select>';
// Prepare selections for template
$content['below_selection'] = $OUT;
- $content['what_selection'] = adminAddMenuSelectionBox('member', 'what' , 'name');
- $content['action_selection'] = adminAddMenuSelectionBox('member', 'action', 'menu');
+ $content['what_selection'] = adminAddMenuSelectionBox('admin', 'what' , 'name');
+ $content['action_selection'] = adminAddMenuSelectionBox('admin', 'action', 'menu');
// Display form
loadTemplate('admin_admin_add', false, $content);