X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=a4c3b1b850d7713aa2707ad8516120fbf86f2948;hb=c74775166b7dda227bb83d8f7e1ab030fb1eb53a;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..a4c3b1b850 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 ($URLs as $id => $content) { + // "Translate"/insert data + $content['sw'] = $SW; + $content['url'] = generateDerefererUrl($content['url']); + 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']); + $content['url_status'] = translateSurfbarUrlStatus($content['url_status']); + if (empty($content['lock_reason'])) { + // Fixes some HTML problems with empty cells + $content['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, getMessage('MEMBER_SURFBAR_NO_URLS_FOUND')); +} // ?>