X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Forder_functions.php;h=ea1ddaef25325dce1cb13df5dc77674349c61ea6;hb=9ad55a40b49ea7dc484b1553039715fbce8086f0;hp=50cde4274d895000a27798b39e035039b744c8c4;hpb=7f104f6fe558bb56b4205241435a2357c2feece1;p=mailer.git diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php index 50cde4274d..ea1ddaef25 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 '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] ?>