Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dyego Fernandes  >  Calendar Multilanguage Generator  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: Example
Class: Calendar Multilanguage Generator
Output month calendars in multiple idioms
Author: By
Last change: Add support form other languages
Date: 2005-08-05 07:32
Size: 1,418 bytes
 

Contents

Class file image Download
<?
include('calendar.php');
define('EN','en');
define('PT','pt');
define('FR','fr');
define('ES','es');
define('GR','gr');
define('IT','it');
define('CR','cr');
define('TR','tr'); 

if(!isset(
$_GET['month'])){
    
$month date("m");
} else {
     
$month $_GET['month'];
    }
if(!isset(
$_GET['year'])){
    
$year date("Y");
} else {
         
$year $_GET['year'];
       }
print(
"<html>\n<title>CalendarMultilanguageGenerator::Results</title>\n<body>\n");
print(
"<marquee width='300px'>ENGLISH</marquee>");
$flag_inf false;
$a = new calendarGen($year,$month,EN,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>PORTUGUESE</marquee>");
$b = new calendarGen($year,$month,PT,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>SPANISH</marquee>");
$c = new calendarGen($year,$month,ES,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>FRENCH</marquee>");
$d = new calendarGen($year,$month,FR,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>GERMANY</marquee>");
$a = new calendarGen($year,$month,GR,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>ITALIAN</marquee>");
$b = new calendarGen($year,$month,IT,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>CROAT</marquee>");
$c = new calendarGen($year,$month,CR,@$PHP_SELF,$flag_inf);
print(
"<marquee width='300px'>TURKEY</marquee>");
$d = new calendarGen($year,$month,TR,@$PHP_SELF,$flag_inf);
print(
"</body>");
?>