Update of /cvsroot/phpicalendar/phpicalendar
In directory sc8-pr-cvs1:/tmp/cvs-serv7186
Modified Files:
week.php
Log Message:
more code lightening.
Index: week.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v
retrieving revision 1.93
retrieving revision 1.94
diff -C2 -d -r1.93 -r1.94
*** week.php 14 Sep 2003 21:01:34 -0000 1.93
--- week.php 16 Sep 2003 06:14:16 -0000 1.94
***************
*** 6,23 ****
if ($minical_view == "current") $minical_view = "week";
! $starttime = "0500";
! $weekstart = 1;
! $unix_time = strtotime($getdate);
! $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
! $today_today = date('Ymd', strtotime("now + $second_offset seconds"));
! $next_week = date("Ymd", strtotime("+1 week", $unix_time));
! $prev_week = date("Ymd", strtotime("-1 week", $unix_time));
! $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time));
! $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time));
! $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
! $end_week_time = $start_week_time + (6 * 25 * 60 * 60);
! $start_week = localizeDate($dateFormat_week, $start_week_time);
! $end_week = localizeDate($dateFormat_week, $end_week_time);
! $display_date = "$start_week - $end_week";
// For the side months
--- 6,23 ----
if ($minical_view == "current") $minical_view = "week";
! $starttime = "0500";
! $weekstart = 1;
! $unix_time = strtotime($getdate);
! $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
! $today_today = date('Ymd', strtotime("now + $second_offset seconds"));
! $next_week = date("Ymd", strtotime("+1 week", $unix_time));
! $prev_week = date("Ymd", strtotime("-1 week", $unix_time));
! $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time));
! $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time));
! $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
! $end_week_time = $start_week_time + (6 * 25 * 60 * 60);
! $start_week = localizeDate($dateFormat_week, $start_week_time);
! $end_week = ocalizeDate($dateFormat_week, $end_week_time);
! $display_date = "$start_week - $end_week";
// For the side months
***************
*** 51,59 ****
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name - $display_date"; ?></title>
! <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>">
<?php
// if RSS is enabled, set the RSS auto-discovery link
! if ($enable_rss == 'yes')
! {
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$default_path."/rss/rss.php?cal=".$cal."&rssview=week\">";
}
--- 51,58 ----
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name - $display_date"; ?></title>
! <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
<?php
// if RSS is enabled, set the RSS auto-discovery link
! if ($enable_rss == 'yes') {
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$default_path."/rss/rss.php?cal=".$cal."&rssview=week\">";
}
***************
*** 367,372 ****
</table>
</td>
! <td width="20"><img src="images/spacer.gif" width="20" height="1" alt=" "></td>
! <td width="160" valign="top">
<?php include (BASE.'includes/sidebar.php'); ?>
<?php include (BASE.'includes/footer.inc.php'); ?>
--- 366,371 ----
</table>
</td>
! <td width="10"><img src="images/spacer.gif" width="10" height="1" alt=" "></td>
! <td width="170" valign="top">
<?php include (BASE.'includes/sidebar.php'); ?>
<?php include (BASE.'includes/footer.inc.php'); ?>
|