X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Forder_functions.php;h=f6da85ea7949b5bf28be1dc881b452216ca71d88;hb=f4345352184f30d2d5086437cf9c437c036a2fb4;hp=92e10a574e3cfb7f1629919dbdb1e21fbb9a4a89;hpb=e87430f959a8b240d516ef830e6494165bc933b2;p=mailer.git diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php index 92e10a574e..f6da85ea79 100644 --- a/inc/libs/order_functions.php +++ b/inc/libs/order_functions.php @@ -1,7 +1,7 @@ {--ORDER_SELECT_COLUMN_".strtoupper($item)."--}\n"; - } + // Defaul selection + $selected = ''; + if ($item == $default) { + $selected = ' selected="selected"'; + } // END - if + + // 'ref_clicks' needs to be rewritten to 'referral_clicks' + if ($item == 'ref_clicks') { + $item = 'referral_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] ?>