From: <par...@us...> - 2009-07-10 20:31:30
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27802/functions Modified Files: template.php Log Message: Give week view the same table border pattern as day view Index: template.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v retrieving revision 1.122 retrieving revision 1.123 diff -C2 -d -r1.122 -r1.123 *** template.php 10 Jul 2009 17:50:21 -0000 1.122 --- template.php 10 Jul 2009 20:31:22 -0000 1.123 *************** *** 412,415 **** --- 412,416 ---- if (ereg("([0-9]{1,2}):00", $key)) { + $even_row = '2'; # column of times colspan = 4 to cover navigation links at top $weekdisplay .= '<tr>'; *************** *** 422,425 **** --- 423,428 ---- $weekdisplay .= '<td bgcolor="#a1a5a9" width="1" height="' . $phpiCal_config->gridLength . '"></td>'; } else { + $even_row = ''; + if (ereg("([0-9]{1,2}):30", $key)) $even_row = '2'; # empty row for each gridLength, to the right of times and left of first weekday $weekdisplay .= '<tr>'; *************** *** 466,470 **** # no events if ($dayborder == 0) { ! $class = ' class="weekborder"'; $dayborder++; } else { --- 469,473 ---- # no events if ($dayborder == 0) { ! $class = ' class="weekborder'.$even_row.'"'; $dayborder++; } else { *************** *** 474,478 **** $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder weektoday"'; else $tclass = ' class="weektoday"'; } --- 477,481 ---- $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder'.$even_row.' weektoday"'; else $tclass = ' class="weektoday"'; } *************** *** 492,496 **** $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder weektoday"'; else $tclass = ' class="weektoday"'; } --- 495,499 ---- $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder'.$even_row.' weektoday"'; else $tclass = ' class="weektoday"'; } *************** *** 542,546 **** $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder weektoday"'; else $tclass = ' class="weektoday"'; } --- 545,549 ---- $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder'.$even_row.' weektoday"'; else $tclass = ' class="weektoday"'; } *************** *** 565,569 **** $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder weektoday"'; else $tclass = ' class="weektoday"'; } --- 568,572 ---- $tclass = $class; if ($thisday == $getdate) { ! if ($tclass) $tclass = ' class="weekborder'.$even_row.' weektoday"'; else $tclass = ' class="weektoday"'; } |