From: <ji...@us...> - 2007-05-16 22:24:45
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25169 Modified Files: template.php Log Message: modify to reduce memory use in monthbottom; also add location display to month display Index: template.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v retrieving revision 1.88 retrieving revision 1.89 diff -C2 -d -r1.88 -r1.89 *** template.php 8 Apr 2007 01:41:55 -0000 1.88 --- template.php 16 May 2007 22:24:44 -0000 1.89 *************** *** 943,946 **** --- 943,947 ---- } } + $switch['EVENT'] .= (isset($val['location'])) ? "<span class='V9G'>".$val['location']."</span>" : ''; } } *************** *** 999,1007 **** if (isset($master_array[$m_start])) { foreach ($master_array[$m_start] as $cal_time => $event_times) { ! $switch['CAL'] = $cal; ! $switch['START_DATE'] = localizeDate ($dateFormat_week_list, $u_start); foreach ($event_times as $uid => $val) { if (isset($seen_events[$uid])) continue; $seen_events[$uid] = 1; $switch['CALNAME'] = $val['calname']; if (!isset($val['event_start'])) { --- 1000,1011 ---- if (isset($master_array[$m_start])) { foreach ($master_array[$m_start] as $cal_time => $event_times) { ! # $switch['CAL'] = $cal; ! # $switch['START_DATE'] = localizeDate ($dateFormat_week_list, $u_start); ! $start_date = localizeDate ($dateFormat_week_list, $u_start); foreach ($event_times as $uid => $val) { if (isset($seen_events[$uid])) continue; $seen_events[$uid] = 1; + $switch['CAL'] = $cal; + $switch['START_DATE'] = $start_date; $switch['CALNAME'] = $val['calname']; if (!isset($val['event_start'])) { *************** *** 1028,1031 **** --- 1032,1036 ---- $i = ($i == 1) ? 0 : 1; } + unset ($switch); } } *************** *** 1034,1038 **** $m_start = date('Ymd', $u_start); $check_month = date('m', $u_start); ! unset ($switch); } while ($this_month == $check_month); --- 1039,1043 ---- $m_start = date('Ymd', $u_start); $check_month = date('m', $u_start); ! # unset ($switch); } while ($this_month == $check_month); |