Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: Block: Mrbs
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Ronseal
Mike - Could you attach a screenshot as to how this will look? I see no problem to it, I am just curious what it will look like.
Remember that the <br> tag needs to be <br/> for xhtml compliance (http://www.w3schools.com/TAGS/tag_br.asp).
+ . htmlspecialchars($row[0]) . ($row[1] > 0 ? "($row[1])" : "") . "
+ <br>$row[3]</a></th>";//print the room description as well
Looking at this reminds me of how ugly from a readability perspective this code is (i.e. $row[3]). At some point it would be nice to use the Moodle dmllib functions like get_record and such so that we could do something like $entry->description. Again, a project for another day (or another person or another life time).
Peace - Anthony