Login   Register  
PHP Classes

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ben Yacoub Hatem  >  Islamic Calendar  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample use of the class
Class: Islamic Calendar
Class for islamic <-> georgian calendar conversion
Author: By
Last change:
Date: 11 years ago
Size: 1,171 bytes


Class file image Download

echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1256\">";
    include ( 
"ICalendar.php" );

$acalend = new ICalendar();

$AYear $acdate[year];

"Georgian date : $GDay - $GMonth - $GYear<br>";
"Islamic date :<font size=+1> $jour : $ADay - $AMonth - $AYear</font><br>";
    $acalend->set_attributes(210, "#000000", "#ff0000", "#cccccc", 
                            11, 11, 12, "navy", "bold", 
                            20, "Arial, Helvetica, Sans-Serif");
    print $acalend->make_calendar();                             
//    print_r(get_object_vars($acalend));

$AYear $acdate_g[year];
"<br>Islamic date : $IDay - $IMonth - $IYear<br>";
"Georgian date<font size=+1> $jour : $ADay - $AMonth - $AYear</font><br>";
//    print_r(get_object_vars($acalend));