WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial : Calendar 
with advance properties

Tutorials

>

Tutorial Calendar

>

Tutorial : Calendar with advance properties


Calendar-02: Tutorial der Komponente Calendar vom PHP FrameWork WebSite-PHP.

Tutorial : Calendar with advance properties:



Zurück zum Tutorial der Komponente Calendar



Quelltext

Quelltext


Datei: /pages/tutorials/calendar/calendar-02.php

<?php
class Calendar02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Calendar 
                                with advance properties"
;
        
        
$this->render = new Calendar($this);
        
        
// set current date
        
$now = new DateTime();
        
$this->render->setValue($now);
        
        
// display buttons "today" and "done"
        
$this->render->showButtonPanel();
        
        
// display combobox to change month
        
$this->render->changeMonth();
        
        
// display combobox to change year
        
$this->render->changeYear();
        
        
// display days of months before and after
        
$this->render->showOtherMonths();
        
        
// display week number
        
$this->render->showWeek();
        
        
// define min date
        
$now->modify("-3 days");
        
$this->render->setMinDate($now);
        
        
// define opening animation
        
$this->render->setShowAnim(Calendar::ANIMATION_BOUNCE);
    }
}
?>


Zurück zum Tutorial der Komponente Calendar


Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker