Revision: 1623
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1623&view=rev
Author:   cimorrison
Date:     2010-11-19 18:27:29 +0000 (Fri, 19 Nov 2010)

Log Message:
-----------
Fixed problem with display of area selector when using the select format

Modified Paths:
--------------
    mrbs/branches/disabled_rooms/web/day.php

Modified: mrbs/branches/disabled_rooms/web/day.php
===================================================================
--- mrbs/branches/disabled_rooms/web/day.php    2010-11-19 17:07:48 UTC (rev 
1622)
+++ mrbs/branches/disabled_rooms/web/day.php    2010-11-19 18:27:29 UTC (rev 
1623)
@@ -65,39 +65,8 @@
   <div id="dwm_header">
       
 <?php
-
-$sql = "SELECT id, area_name
-          FROM $tbl_area
-         WHERE disabled=0
-      ORDER BY area_name";
-$res = sql_query($sql);
 // Show all available areas
-// but only if there's more than one of them, otherwise there's no point
-if ($res && (sql_count($res)>1))
-{
-  echo "<div id=\"dwm_areas\">\n";
-  echo "<h3>".get_vocab("areas")."</h3>";
-  
-  // need to show either a select box or a normal html list,
-  // depending on the settings in config.inc.php
-  if ($area_list_format == "select")
-  {
-    echo make_area_select_html('day.php', $area, $year, $month, $day);
-  }
-  else
-  {
-    // show the standard html list
-    echo ("<ul>\n");
-    for ($i = 0; ($row = sql_row_keyed($res, $i)); $i++)
-    {
-      echo "<li><a 
href=\"day.php?year=$year&amp;month=$month&amp;day=$day&amp;area=".$row['id']."\">";
-      echo "<span" . (($row['id'] == $area) ? ' class="current"' : '') . ">";
-      echo htmlspecialchars($row['area_name']) . "</span></a></li>\n";
-    }  
-    echo ("</ul>\n");
-  }
-  echo "</div>\n";
-}
+echo make_area_select_html('day.php', $area, $year, $month, $day);
 
 // Draw the three month calendars
 minicals($year, $month, $day, $area, $room, 'day');


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to