Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_script.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Reza Salehi  >  Online Calendar  >  sample_script.php  >  Download  
File: sample_script.php
Role: Example script
Content type: text/plain
Description: this script uses the main class
Class: Online Calendar
Output the calendar of a given month in HTML
Author: By
Last change:
Date: 2004-12-08 06:39
Size: 332 bytes
 

Contents

Class file image Download
<?php
    
include("calender_class.php");
    
    
$year=$_POST["year"];
    
$month=$_POST["month"];
    
$pixel=$_POST["width"];

    
$C=new calender($year$month);
    
$day=$C->calculate_first_day();
    
//print $day;
    
$W=new writer_to_file();
    
$W->create_stream($day$month$year$pixel);        
    
$W->Hprint();
?>
<a href="index.php">back</a>