]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-surfbar_list.php
Surfbar extended (dummy), user list now displays total points, locked points, click...
[mailer.git] / inc / modules / member / what-surfbar_list.php
index aa07ac6400b52a134af379ff9da0a28483889721..0ebf9f903f7fec3e37b7c18a287aa886e32d1e2e 100644 (file)
@@ -42,5 +42,30 @@ if (!defined('__SECURITY')) {
 // Add description as navigation point
 ADD_DESCR("member", basename(__FILE__));
 
 // Add description as navigation point
 ADD_DESCR("member", basename(__FILE__));
 
+// Load user URLs
+$URLs = SURFBAR_GET_USER_URLS();
+
+// Are there entries?
+if (count($URLs) > 0) {
+       // List all URLs
+       $OUT = ""; $SW = 2;
+       foreach ($URLs as $id => $content) {
+               // "Translate"/insert data
+               $content['sw'] = $SW;
+
+               // Load row template
+               $OUT .= LOAD_TEMPLATE("member_surfbar_list_row", true, $content);
+
+               // Switch color
+               $SW = 3 - $SW;
+       } // END - if
+
+       // Load main template
+       LOAD_TEMPLATE("member_surfbar_list", false, $OUT);
+} else {
+       // No URLs booked so far
+       LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_NO_URLS_FOUND);
+}
+
 //
 ?>
 //
 ?>