All pastes #955913 Raw Edit

year calendar

public php v1 · immutable
#955913 ·published 2008-03-24 22:24 UTC
rendered paste body
<html>	<head>		<title>A Year In Advance</title>		<style type="text/css">		body {			font-family: "Lucida Grande", Arial, sans-serif;			font-size: .8em;			background: #444 url(tile.png) repeat;			color: #333;			text-align: center;		}				h3 {			background: #fff;			font-size: 1.8em;			font-weight: bold;			margin: 0;			padding: 2em;			text-align: center;		}				#wrap {			background: #fff;			border: 1px solid #000;			margin-left: auto;			margin-right: auto;			text-align: center;			width: 30em;			padding: 2em;		}				table {			margin-left: auto;			margin-right: auto;			padding: 0;		}				table tr {			margin: 0;			padding: 0;		}				table tr#list:hover {			background: #444;			color: #fff;		}				table tr td {			border-bottom: 1px solid #333;			margin: 0;			padding: .5em .5em .5em .5em;		}		</style>	</head>	<body>		<div id="wrap">		<h3>A Year In Advance</h3>			<table cellspacing="0">			<th>				<tr id="title">					<td>#</td>					<td>Day</td>					<td>Month</td>					<td>Date</td>					<td>Year</td>				</tr>			</th>			<?php						//part of the script that makes the pretty list of dates				$limit = 0;				while($limit <= 365)				{					++$limit;					$date = array();					$date[0] = date('z', strtotime("+ $limit days"));					$date[1] = date('l', strtotime("+ $limit days"));					$date[2] = date('F', strtotime("+ $limit days"));					$date[3] = date('jS', strtotime("+ $limit days"));					$date[4] = date('Y', strtotime("+ $limit days"));										printf("<tr id=\"list\"><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $date[0], $date[1], $date[2], $date[3], $date[4] );				}			?>			</table>			<br />			<p>Copyright &copy; 2008 <a href="http://thenullbyte.org" title="NULL Byte Design">%00</a></p>		</div>	</body></html>