X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=2a991cdec27e5f6fa3b9f47e925b559d55e4a10e;hb=34db702d004b245e5528b0ba20c6de441f61820a;hp=52831e25527994c4700ca15fd578115445368cd7;hpb=f577a47a8149d34039aa3c4921c35a38fcb2f2a3;p=mailer.git
diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php
index 52831e2552..2a991cdec2 100644
--- a/inc/modules/member/what-surfbar_list.php
+++ b/inc/modules/member/what-surfbar_list.php
@@ -1,7 +1,7 @@
0) {
+} elseif (count($urlArray) > 0) {
// List all URLs
- $OUT = ''; $SW = 2;
- foreach ($URLs as $id => $content) {
+ $OUT = '';
+ foreach ($urlArray as $id => $content) {
// "Translate"/insert data
- $content['sw'] = $SW;
- $content['url'] = DEREFERER($content['url']);
if ($content['views_total'] > 0) {
// Include link to stats
- $content['views_total'] = "[".translateComma($content['views_total'])."]";
- } // END - if
- $content['registered'] = generateDateTime($content['registered'], '2');
- $content['last_locked'] = generateDateTime($content['last_locked'], '2');
- $content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['status']);
- $content['status'] = surfbarTranslateUserStatus($content['status']);
- if (empty($content['lock_reason'])) {
- // Fixes some HTML problems with empty cells
- $content['lock_reason'] = '---';
+ $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']);
// Load row template
- $OUT .= LOAD_TEMPLATE("member_surfbar_list_row", true, $content);
-
- // Switch color
- $SW = 3 - $SW;
+ $OUT .= loadTemplate('member_surfbar_list_row', true, $content);
} // END - if
// Load main template
- LOAD_TEMPLATE("member_surfbar_list", false, $OUT);
+ loadTemplate('member_surfbar_list', false, $OUT);
} else {
// No URLs booked so far
- LOAD_TEMPLATE('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_NO_URLS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_URLS_FOUND--}');
}
-//
+// [EOF]
?>