X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_surfbar_actions.php;h=cf1b57fb9876a952346b3ecebae97f744c21724d;hp=8ba7890dd83a744a21e5bd3304d1ad39b7ddacf0;hb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;hpb=6809d445c472e918ac3bf8a6cb0914b3a996764d diff --git a/inc/modules/admin/what-list_surfbar_actions.php b/inc/modules/admin/what-list_surfbar_actions.php index 8ba7890dd8..cf1b57fb98 100644 --- a/inc/modules/admin/what-list_surfbar_actions.php +++ b/inc/modules/admin/what-list_surfbar_actions.php @@ -1,7 +1,7 @@ 0) { +if (!SQL_HASZERONUMS($result)) { // List all entries - $OUT = ''; $SW = 2; + $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { // "Translate" some data - $content['status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['status'])); - $content['action'] = constant(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['action'])); + $content['actions_action'] = sprintf("{--MEMBER_SURFBAR_ACTION_%s_SUBMIT--}", strtoupper($content['actions_action'])); // New status set? - if (!is_null($content['new_status'])) { + if (!is_null($content['actions_new_status'])) { // Translate it - $content['new_status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['new_status'])); + $content['actions_new_status'] = translateSurfbarUrlStatus($content['actions_new_status']); } else { // "Do nothing" status - $content['new_status'] = SURFBAR_URL_STATUS_NONE; + $content['actions_new_status'] = '{--SURFBAR_URL_STATUS_NONE--}'; } - // Add color - $content['sw'] = $SW; - // Load row template $OUT .= loadTemplate('admin_list_surfbar_actions_row', true, $content); - - // Switch color - $SW = 3 - $SW; } // END - while // Load main template loadTemplate('admin_list_surfbar_actions', false, $OUT); } else { // No entries found, very bad! - loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_ACTIONS')); + loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_ACTIONS--}'); } // Free result