sun-times/index.php

<?php include '../config.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Sun times</title>

	<?php include DOCROOT.'header.php' ?>

	<link rel="stylesheet" type="text/css" media="all" href="sun.css" />

	<script src="http://www.google.com/jsapi?key=ABQIAAAAU1x45qUPbv5IP4nWgZcIvBRAav2CgjoesZxxqHGH-U6jztGnkRSBj4clUH_fqDkvPulqGo-lBVwRLg" type="text/javascript"></script>
	
	<script type="text/javascript" src="json2.js"></script>
	<script type="text/javascript" src="sun.js"></script>
</head> 
 
<body>

	<h1>Sun times</h1>
	
	<form>
		<table>
			<tr>
				<th>Date</th>
				<td><input type="text" name="date" /> <span>Anything <a href="http://php.net/manual/en/function.strtotime.php">strtotime</a> can convert to a date</span></td>
			</tr>
			<tr>
				<th>Latitude</th>
				<td><input type="text" name="latitude" /> <span>Float. Positive for North, negative for South</span></td>
			</tr>
			<tr>
				<th>Longitude</th>
				<td><input type="text" name="longitude" /> <span>Float. Positive for East, negative for West</span></td>
			</tr>
			<tr>
				<th>Timezone</th>
				<td><input type="text" name="timezone" /> <span><a href="http://www.php.net/manual/en/timezones.php">Supported timezone</a></span></td>
			</tr>
			<tr>
				<th>Format</th>
				<td><input type="text" name="format" /> <span>Valid <a href="http://www.php.net/manual/en/function.date.php">date format</a></span></td>
			</tr>
		</table>
	
		<p><button id="auto-fill">Auto fill</button> <input type="submit" value="Calculate times"></p>
	</form>
	
	
	<div id="output"></div>
	
	<pre id="debug"></pre>


	<?php include DOCROOT.'footer.php'; ?>
	
</body>
</html>