* $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 *
// Generates a selection list for mail order
function addOrderSelectionOptions ($default) {
// Currenty the list is hardcoded...
+ // @TODO Move this array into a filter
$LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
$OUT = '';
foreach ($LIST as $item) {
$selected = ' selected="selected"';
} // END - if
- // 'ref_clicks' needs to be rewritten to 'referal_clicks'
+ // 'ref_clicks' needs to be rewritten to 'referral_clicks'
if ($item == 'ref_clicks') {
- $item = 'referal_clicks';
+ $item = 'referral_clicks';
} // END - if
// Add option line
- $OUT .= '<option value="' . $item . '"' . $selected . '>{--ADMIN_ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
+ $OUT .= '<option value="' . $item . '"' . $selected . '>{--ADMIN_CONFIG_ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
} // END - foreach
// Return the output
// Getter for 'order_multi_page' config entry
function getOrderMultiPage () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = getConfig('order_multi_page');
return $GLOBALS[__FUNCTION__];
}
-// Determines wether 'order_multi_page' is set to 'Y'
+// Determines whether 'order_multi_page' is set to 'Y'
function isOrderMultiPageEnabled () {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
$GLOBALS[__FUNCTION__] = (getOrderMultiPage() == 'Y');