X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=2a991cdec27e5f6fa3b9f47e925b559d55e4a10e;hb=34db702d004b245e5528b0ba20c6de441f61820a;hp=b9ac2954a1f25f58480f02ff016a8c7fcb985dfe;hpb=2026ffc8ea785d50208f7a640d60a80bb2f93c6e;p=mailer.git
diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php
index b9ac2954a1..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'] = "[".TRANSLATE_COMMA($content['views_total'])."]";
- } // END - if
- $content['registered'] = MAKE_DATETIME($content['registered'], "2");
- $content['last_locked'] = MAKE_DATETIME($content['last_locked'], "2");
- $content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['status']);
- $content['status'] = SURFBAR_TRANSLATE_STATUS($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, MEMBER_SURFBAR_NO_URLS_FOUND);
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_URLS_FOUND--}');
}
-//
+// [EOF]
?>