PHP Classes

File: test-all.php

Recommend this page to a friend!
  Classes of Abhishek Shukla   PHP Event Calendar Class   test-all.php   Download  
File: test-all.php
Role: Example script
Content type: text/plain
Description: Various Settings Test
Class: PHP Event Calendar Class
Generate HTML to display month event calendars
Author: By
Last change:
Date: 10 years ago
Size: 1,504 bytes
 

Contents

Class file image Download
<html>
<head>
<title>Online Demo for Calendar Class by Abhishek Shukla</title>
<style>
#calendar-table-s {
    font-size: 12px;
    margin: 0px;
    text-align: left;
    border-collapse: separate;
    border-bottom:none;
}
#calendar-table-s th {
    font-size: 13px;
    font-weight: normal;
    padding: 8px;
    background: #EFEFEF;
    border-top: 1px solid #FFF;
    color: #111;
    text-align: left;
}
#calendar-table-s td {
    padding: 8px;
    background: none;
    border-top: 1px solid #CCC;
    color: #666;
    border-bottom: none !important;
}
#calendar-table-s tr:hover td {
    background: #FBFBFB;
    color: #333;
}
#calendar-table-s tr.footer { background: none !important; }
#calendar-table-s tr.footer:hover td { background: none !important; }
th, td {
    vertical-align: top;
}

</style>
</head>
<body>
<h1>Various Combinations</h1>
<?php
include("event_calendar.class.php");

$calendar=new event_calendar;
$calendar->tablestyle="calendar-table-s";
$calendar->events=array("2014-01-16"=>1,"2014-03-19"=>4,);
$calendar->width=450;
echo
$calendar->month_calendar();
$calendar->width=200;
$calendar->next_month();
echo
$calendar->two_month_calendar();
$calendar->width=300;
$calendar->next_month();
echo
$calendar->two_month_calendar();
$calendar->next_month();
$calendar->width=200;
echo
$calendar->three_month_calendar();
$calendar->next_month();
echo
$calendar->four_month_calendar();
?>

</br></br></br>

<a href="index.html">Back to Home Page</a>
</body>
</html>