PHP Classes

File: test-two.php

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

Contents

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

$calendar=new event_calendar;

echo
$calendar->two_month_calendar();
$calendar->date="2020-06-14";
echo
"</br>June-2020 Calendar";
echo
$calendar->two_month_calendar();

?>

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

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