Revision: 2548
https://sourceforge.net/p/mrbs/code/2548/
Author: cimorrison
Date: 2012-11-02 11:32:52 +0000 (Fri, 02 Nov 2012)
Log Message:
-----------
Fixed bug where <span>s used for sorting the HTML table were appearing in the
CSV and iCalendar reports.
Modified Paths:
--------------
mrbs/trunk/web/report.php
Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php 2012-10-31 12:45:36 UTC (rev 2547)
+++ mrbs/trunk/web/report.php 2012-11-02 11:32:52 UTC (rev 2548)
@@ -368,6 +368,22 @@
}
+// Wraps $string in a span with a data-stype value of $stype - but only for
HTML output
+function stype_wrap($string, $stype)
+{
+ global $output_format;
+
+ if ($output_format == OUTPUT_HTML)
+ {
+ return '<span class="normal" data-stype="title-numeric">' . $string .
'</span>';
+ }
+ else
+ {
+ return $string;
+ }
+}
+
+
// Output the first row (header row) for CSV reports
function report_header()
{
@@ -400,11 +416,11 @@
$values[] = get_vocab("room");
break;
case 'start_time':
- $values[] = '<span class="normal" data-stype="title-numeric">' .
get_vocab("start_date") . '</span>';
+ $values[] = stype_wrap(get_vocab("start_date"), 'title-numeric');
break;
case 'end_time':
- e 'end_time': e_wrap(get_vocab("start_date"),
'title-numeric'); t_vocab("start_date") .
'</span>'; rI�T4+ �t�� �t�� u��T4+ ���T4+ �
U4+ ��V4+ �t�� ��(V4+ �i�� �h�� k��T4+ 6
� �! �! �t�� �t�� x�V4+ �j�� ���T4+ ���T4+ �t�� `��T4+ �t�� ��jV4+ u��T4+ �jV4+ jV4+ ��jV4+ ���T4+ x�V4+ �j�� �i�� k��T4+ �! �! �t�� �t�� H^�U4+ �k�� ���T4+ ���T4+ �t�� `��T4+ �t�� �t�� �t�� 8�
U4+ �p� �t�� u��T4+ ���T4+ �k�� �j�� k��T4+ G H I J K M N O P �t�� �t�� H�U4+ `m�� ���T4+ ���T4+ �t�� 0�jV4+ u��T4+ �V4+ �I�U4+ �jV4+ jV4+ ��jV4+ ���T4+ H�U4+ `m�� �k�� k��T4+ 8�U4+ `m�� �k�� k��T4+ (�U4+ `m�� l�� k��T4+ �U4+ `m�� 0l�� k��T4+
��jV4+ u��T4+ ��jV4+ �f�� ���U4+ e��T4+ jV4+ �l�� y��U4+ e��T4+ �jV4+ m�� Z��U4+ e��T4+ �D�U4+ �V4+ �I�U4+ �jV4+ ؤV4+ jV4+ ��jV4+ ���T4+ 8�
U4+
fU4+ �t�� pۙU4+ �n�� �m�� k��T4+ 5 6 7 8 : <