0) { // List all entries $OUT = ""; $SW = 2; 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'])); // New status set? if (!is_null($content['new_status'])) { // Translate it $content['new_status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['new_status'])); } else { // "Do nothing" status $content['new_status'] = SURFBAR_URL_STATUS_NONE; } // Add color $content['sw'] = $SW; // Load row template $OUT .= LOAD_TEMPLATE("admin_list_surfbar_actions_row", true, $content); // Switch color $SW = 3 - $SW; } // END - while // Load main template LOAD_TEMPLATE("admin_list_surfbar_actions", false, $OUT); } else { // No entries found, very bad! LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SURFBAR_NO_ACTIONS); } // Free result SQL_FREERESULT($result); // ?>