$LIST = array('userid', 'zip', 'country', 'email', 'birth_year', 'last_online', 'ref_clicks', 'total_logins', 'mail_orders');
$OUT = '';
foreach ($LIST as $item) {
+ // Defaul selection
$selected = '';
if ($item == $default) $selected = ' selected="selected"';
+
+ // 'ref_clicks' needs to be rewritten to 'referal_clicks'
+ if ($item == 'ref_clicks') {
+ $item = 'referal_clicks';
+ } // END - if
+
+ // Add option line
$OUT .= '<option value="' . $item . '"' . $selected . '>{--ADMIN_ORDER_SELECT_COLUMN_' . strtoupper($item) . '--}</option>';
} // END - foreach