PHP Classes

File: historicdate_demo.php

Recommend this page to a friend!
  Classes of Ihor Khomyn   Historic Date   historicdate_demo.php   Download  
File: historicdate_demo.php
Role: Example script
Content type: text/plain
Description: php usage demo
Class: Historic Date
Convert dates within the billions of years range
Author: By
Last change: edited to use the class
Date: 10 years ago
Size: 1,511 bytes


Class file image Download
<title>Historic Date v.0.1</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta http-equiv="expires" content="0">
<meta name="description" content="Historic Date component by Ihor Khomyn (c) 2012">
<meta name="keywords" content="historic, date">
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="historicdate.js"></script>


require 'historicdate.php';

$dates = array('-197207200',
$h = new HistoricDate();
'<table width=100% border=1 cellpadding=3>';
'<tr><td align=center>Date Value</td><td align=center>Date Itself</td><td align=center>JS-driven Edit</td></tr>';
foreach (
$dates as $key => $value) {
'<tr><td align=right>'.$value.'</td>
           <td><input type=text name="e'
.$key.'" value="'.$value.'" rel=historicpopup></td></tr>'."\n";