Revision: 2590
          https://sourceforge.net/p/mrbs/code/2590/
Author:   tbleher
Date:     2012-12-14 20:48:28 +0000 (Fri, 14 Dec 2012)
Log Message:
-----------
Add room description as tooltip for room list in header (only in list mode for 
now)

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2012-12-14 18:52:02 UTC (rev 2589)
+++ mrbs/trunk/web/functions.inc        2012-12-14 20:48:28 UTC (rev 2590)
@@ -2103,7 +2103,7 @@
   global $tbl_room, $tbl_area, $area_list_format;
   
   $out_html = '';
-  $sql = "SELECT R.id, R.room_name
+  $sql = "SELECT R.id, R.room_name, R.description
             FROM $tbl_room R, $tbl_area A
            WHERE R.area_id=$area
              AND R.area_id=A.id
@@ -2143,7 +2143,7 @@
       $out_html .= "<ul>\n";
       for ($i = 0; ($row = sql_row_keyed($res, $i)); $i++)
       {
-        $out_html .= "<li><a 
href=\"$link?year=$year&amp;month=$month&amp;day=$day&amp;area=$area&amp;room=".$row['id']."\">";
+        $out_html .= "<li><a 
href=\"$link?year=$year&amp;month=$month&amp;day=$day&amp;area=$area&amp;room=".$row['id']."\"
 title=\"". htmlspecialchars($row['description'])."\">";
         $out_html .= "<span" . (($row['id'] == $current) ? ' class="current"' 
: '') . ">";
         $out_html .= htmlspecialchars($row['room_name']) . 
"</span></a></li>\n";
       }
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to