PHP Classes

File: CalendarSample.php

Recommend this page to a friend!
  Classes of Rahman Haghparast   Persian Calendar   CalendarSample.php   Download  
File: CalendarSample.php
Role: Example script
Content type: text/plain
Description: Sample
Class: Persian Calendar
Generate persian month calendar in HTML
Author: By
Last change:
Date: 19 years ago
Size: 1,262 bytes
 

Contents

Class file image Download
<html>
<head>
<title>Persian Calendar For Year 1384</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
Body
{
background-color: #EEEEDD;
font-family: tahoma;
color: #000000;
font-size: 14 px;
margin-top: 0;
margin-left: 0
}
</style>
</head>

<body>
<?php
include "Calendar.Class.php";
$c = new Calendar;
$c->SetStyle();
?>
<div align="right">
<table width="760">
<tr>
<td valign="top"><?php $c->ShowJalaliMonth(1384,3) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,2) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,1) ?></td>
</tr>
<tr>
<td valign="top"><?php $c->ShowJalaliMonth(1384,6) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,5) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,4) ?></td>
</tr>
<tr>
<td valign="top"><?php $c->ShowJalaliMonth(1384,9) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,8) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,7) ?></td>
</tr>
<tr>
<td valign="top"><?php $c->ShowJalaliMonth(1384,12) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,11) ?></td>
<td valign="top"><?php $c->ShowJalaliMonth(1384,10) ?></td>
</tr>
</table>
</div>

</body>
</html>