sanity check diagnostic mode
[citadel.git] / ctdlphp / listrooms.php
index 9920c4636e619d9f76bbf7aceee421483df966ab..069d1bf5d98b993cec816d75b091c4e4e5197826 100644 (file)
@@ -5,20 +5,27 @@
 
 <H1>Known rooms</H1>
 
+This is a sample page to demonstrate how to generate a room list.
+
 <UL>
 
 <?PHP
        list($num_rooms, $roomlist) = ctdl_knrooms();
 
        if ($num_rooms > 0) foreach ($roomlist as $x) {
-               echo '<LI><A HREF="goto.php?towhere=' .
+               echo '<LI>';
+               if ($x["hasnewmsgs"]) echo '<B>';
+               echo '<A HREF="goto.php?towhere=' .
                        urlencode($x["name"]) . '">' .
-                       htmlspecialchars($x["name"]) . "</A></LI>\n" ;
+                       htmlspecialchars($x["name"]) . "</A>" ;
+               if ($x["hasnewmsgs"]) echo '</B>';
+               echo "</LI>\n" ;
        }
 ?>
 
 </UL>
 
+Sample links<BR>
 <a href="welcome.php">Page One</a><BR>
 <a href="page3.php">Page Three</a><BR>