aboutsummaryrefslogtreecommitdiffstats
path: root/year.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-17 05:18:23 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-17 05:18:23 +0000
commit9ee9d70b3288ae2ca420b03698fa0b2d76677f3c (patch)
tree59cb757a5606f75e00fed6ea4dfce004d9cfc2d3 /year.php
parentd390d4472192244f6ee1a1b68dde32b5ae28fec3 (diff)
downloadphpicalendar-9ee9d70b3288ae2ca420b03698fa0b2d76677f3c.tar.gz
phpicalendar-9ee9d70b3288ae2ca420b03698fa0b2d76677f3c.tar.bz2
phpicalendar-9ee9d70b3288ae2ca420b03698fa0b2d76677f3c.zip
Moved all html head/meta data/body/ect to 'header.inc.php' so people can
more easily modify the top to fit their site.
Diffstat (limited to 'year.php')
-rw-r--r--year.php16
1 files changed, 3 insertions, 13 deletions
diff --git a/year.php b/year.php
index 1bb54a0..b42c996 100644
--- a/year.php
+++ b/year.php
@@ -7,7 +7,7 @@ ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
$this_day = $day_array2[3];
$this_month = $day_array2[2];
$this_year = $day_array2[1]. '01'. '01';
-$this_year2 = $day_array2[1];
+$display_date = $day_array2[1];
$unix_time = strtotime($getdate);
$startYear = strtotime ($this_year);
@@ -20,19 +20,9 @@ $prev_year = date ("Ymd", $prev_year);
$thisday2 = localizeDate($dateFormat_week_list, $unix_time);
+include (BASE.'includes/header.inc.php');
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <title><?php echo "$calendar_name - $this_year2"; ?></title>
- <link rel="stylesheet" type="text/css" href="styles/<?php echo $style_sheet.'/default.css'; ?>">
- <meta name="generator" content="BBEdit 6.5.3">
-</head>
-<body>
-<?php include (BASE.'includes/header.inc.php'); ?>
<center>
<table width="676" border="0" cellspacing="0" cellpadding="0" class="calborder">
<tr>
@@ -44,7 +34,7 @@ $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" width="45%" class="navback"><?php echo "<a class=\"psf\" href=\"year.php?cal=$cal&amp;getdate=$prev_year\"><img src=\"styles/$style_sheet/left_day.gif\" alt=\"[$last_year_lang]\" border=\"0\" align=\"right\"></a>"; ?></td>
- <td align="center" width="10%" class="navback" nowrap valign="middle"><font class="H20"><?php echo $this_year2; ?></font></td>
+ <td align="center" width="10%" class="navback" nowrap valign="middle"><font class="H20"><?php echo $display_date; ?></font></td>
<td align="left" width="45%" class="navback"><?php echo "<a class=\"psf\" href=\"year.php?cal=$cal&amp;getdate=$next_year\"><img src=\"styles/$style_sheet/right_day.gif\" alt=\"[$next_year_lang]\" border=\"0\" align=\"left\"></a>"; ?></td>
</tr>
</table>

© 2014-2024 Faster IT GmbH | imprint | privacy policy