[evolvis-commits] r17414: fix display of today vs. selected date
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Jul 14 16:00:14 CEST 2011
Author: mirabilos
Date: 2011-07-14 16:00:14 +0200 (Thu, 14 Jul 2011)
New Revision: 17414
Modified:
trunk/gforge_base/evolvisforge/gforge/www/pm/calendar.php
Log:
fix display of today vs. selected date
Modified: trunk/gforge_base/evolvisforge/gforge/www/pm/calendar.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/www/pm/calendar.php 2011-07-14 13:55:09 UTC (rev 17413)
+++ trunk/gforge_base/evolvisforge/gforge/www/pm/calendar.php 2011-07-14 14:00:14 UTC (rev 17414)
@@ -196,13 +196,13 @@
if ($curr_date == $today['mday']
&& $y == $today['year']
&& $m == $today['mon']) {
- $colour = " today";
+ $colour = ' class="today"';
} elseif ($curr_date == $day
&& $y == $year
&& $m == $month) {
- $colour = " day";
+ $colour = ' class="day"';
}
- print "\t\t\t<td valign=\"top\" class=\"" . $colour . "\">$curr_date";
+ print "\t\t\t<td valign=\"top\"" . $colour . \">$curr_date";
$cell_contents = '';
$rows = count($pt_arr);
for ($i = 0; $i < $rows; $i++) {
@@ -278,11 +278,11 @@
</form>
<table width="100%">
<tr>
- <td width="20px" class="selected"></td>
+ <td width="20px" class="today" style="text-align:center">·</td>
<td><?php echo _('today\'s date') ?></td>
</tr>
<tr>
- <td width="20px"></td>
+ <td width="20px" class="day" style="text-align:center">·</td>
<td><?php echo _('selected date') ?></td>
</tr>
</table>
More information about the evolvis-commits
mailing list