Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7515/functions
Modified Files:
template.php
Log Message:
Minor rollover tweek for colors and on state.
Index: template.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** template.php 6 Feb 2004 05:49:05 -0000 1.24
--- template.php 6 Feb 2004 18:26:49 -0000 1.25
***************
*** 36,43 ****
--- 36,55 ----
$weekday = $daysofweek_lang[$day_num];
$daylink = date('Ymd', $start_wt);
+ if ($daylink == $getdate) {
+ $row1 = 'rowToday';
+ $row2 = 'rowOn';
+ $row3 = 'rowToday';
+ } else {
+ $row1 = 'rowOff';
+ $row2 = 'rowOn';
+ $row3 = 'rowOff';
+ }
$start_day = strtotime("+1 day", $start_day);
$start_wt = strtotime("+1 day", $start_wt);
$loop_tmp = str_replace('{DAY}', $weekday, $loop_dof);
$loop_tmp = str_replace('{DAYLINK}', $daylink, $loop_tmp);
+ $loop_tmp = str_replace('{ROW1}', $row1, $loop_tmp);
+ $loop_tmp = str_replace('{ROW2}', $row2, $loop_tmp);
+ $loop_tmp = str_replace('{ROW3}', $row3, $loop_tmp);
$weekday_loop .= $loop_tmp;
}
***************
*** 100,106 ****
$important = trim($match2[1]);
$normal = trim($match3[1]);
- $comp_data = '';
- $impt_data = '';
- $norm_data = '';
if (is_array($master_array['-2'])) {
--- 112,115 ----
|