PHP Classes

File: docs/example1.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Christoff Truter  >  PHP Calendar  >  docs/example1.html  >  Download  
File: docs/example1.html
Role: Documentation
Content type: text/plain
Description: Documentation explaining example 1
Class: PHP Calendar
Generate month calendar that can be used in forms
Author: By
Last change:
Date: 8 years ago
Size: 1,400 bytes


Class file image Download

<link rel="stylesheet" type="text/css" href="style.css" />



<div class="header">
<div class="title">CS Trüter</div>
<div class="scriptName">PHP Calendar Documentation</div>
<div class="version">version 1.0</div>

<div class="body">

<a href="index.html">Back</a>


<div class="body">
<b>Example 1 - Simple Example</b><br/><br/>
    <title>Calendar Example1</title>
(1) <link rel="stylesheet" type="text/css" href="styles/calendar.css" />
        (2) include "includes/PHP4/calendar.php"; 
        (3) $calendar = new Calendar("example1"); 
        (4) echo $calendar->Output();
        (5) echo 'Value : '.$calendar->Value();


(1) Include the stylesheet needed to style the calendar.<br/>
(2) Include the Calendar Class file into your page (PHP5 folder if you're using PHP 5).<br/>
(3) Instantiate an object of that Calendar Class, and assign and ID via	the constructor.<br/>
(4) Simply echo the Output method of the object wherever you need to place it.<br/>
(5) Use the Value method of the object, to get the selected value.<br/><br/>
<div class="footer">
&copy; 2006 CS Trüter <a href=""></a>