X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=14a3ed991f31db834ece4760afb87af93c09de5a;hb=37926c3fc93e4e2e000226375893a2f7f6bf3180;hp=aa07ac6400b52a134af379ff9da0a28483889721;hpb=65e1d2ef4d16816f8726dabcf6f94d67f4179b93;p=mailer.git diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php index aa07ac6400..14a3ed991f 100644 --- a/inc/modules/member/what-surfbar_list.php +++ b/inc/modules/member/what-surfbar_list.php @@ -1,7 +1,7 @@ 0) { + // List all URLs + $OUT = ''; $SW = 2; + foreach ($urlArray as $id => $content) { + // "Translate"/insert data + $content['sw'] = $SW; + if ($content['views_total'] > 0) { + // Include link to stats + $content['views_total'] = '[' . translateComma($content['views_total']) . ']'; + } // END - if + $content['url_registered'] = generateDateTime($content['url_registered'], 2); + $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2); + $content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['url_status']); + if (empty($content['url_lock_reason'])) { + // Fixes some HTML problems with empty cells + $content['url_lock_reason'] = '---'; + } // END - if + + // Load row template + $OUT .= loadTemplate('member_surfbar_list_row', true, $content); + + // Switch color + $SW = 3 - $SW; + } // END - if + + // Load main template + loadTemplate('member_surfbar_list', false, $OUT); +} else { + // No URLs booked so far + loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_URLS_FOUND--}'); +} -// +// [EOF] ?>