X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Forder_functions.php;h=4a2009e0c133e2e6bee9944b3eca8618e175d050;hp=d36639a046c7f5312f989759a3742315b5488b90;hb=20741b93fd58620af677a7f1039ffd16ea6ec689;hpb=a090e351c49fe021fb3064325694da03402332e0 diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php index d36639a046..4a2009e0c1 100644 --- a/inc/libs/order_functions.php +++ b/inc/libs/order_functions.php @@ -1,7 +1,7 @@ {--ORDER_SELECT_COLUMN_".strtoupper($item)."--}\n"; - } + if ($item == $default) { + $selected = ' selected="selected"'; + } // END - if + + // 'ref_clicks' needs to be rewritten to 'referal_clicks' + if ($item == 'ref_clicks') { + $item = 'referal_clicks'; + } // END - if + + // Add option line + $OUT .= ''; + } // END - foreach // Return the output return $OUT; } -// +//----------------------------------------------------------------------------- +// Wrapper functions for configuration entries +//----------------------------------------------------------------------------- + +// Getter for 'order_multi_page' config entry +function getOrderMultiPage () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = getConfig('order_multi_page'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + +// Determines wether 'order_multi_page' is set to 'Y' +function isOrderMultiPageEnabled () { + // Do we have cache? + if (!isset($GLOBALS[__FUNCTION__])) { + // Determine it + $GLOBALS[__FUNCTION__] = (getOrderMultiPage() == 'Y'); + } // END - if + + // Return cache + return $GLOBALS[__FUNCTION__]; +} + +// [EOF] ?>