Revision: 2559
          https://sourceforge.net/p/mrbs/code/2559/
Author:   cimorrison
Date:     2012-11-05 17:12:40 +0000 (Mon, 05 Nov 2012)
Log Message:
-----------
Ensured that rooms in the room list are sorted by the room sort key

Modified Paths:
--------------
    mrbs/trunk/web/admin.php

Modified: mrbs/trunk/web/admin.php
===================================================================
--- mrbs/trunk/web/admin.php    2012-11-05 16:51:11 UTC (rev 2558)
+++ mrbs/trunk/web/admin.php    2012-11-05 17:12:40 UTC (rev 2559)
@@ -309,7 +309,12 @@
             echo "<tr class=\"$row_class\">\n";
 
             $html_name = htmlspecialchars($r['room_name']);
-            echo "<td><div><a title=\"$html_name\" 
href=\"edit_area_room.php?change_room=1&amp;phase=1&amp;room=" . $r['id'] . 
"\">$html_name</a></div></td>\n";
+            // We insert an invisible span containing the sort key so that the 
rooms will
+            // be sorted properly
+            echo "<td><div>" .
+                 "<span>" . htmlspecialchars($r['sort_key']) . "</span>" .
+                 "<a title=\"$html_name\" 
href=\"edit_area_room.php?change_room=1&amp;phase=1&amp;room=" . $r['id'] . 
"\">$html_name</a>" .
+                 "</div></td>\n";
             if ($is_admin)
             {
               // Don't show ordinary users the disabled status:  they are only 
going to see enabled rooms
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to