WebSite-PHP Framework PHP
Multi langues
Mode Ajax simple
Aucun HTML, aucun JavaScript
URL rewrinting
Envoi d'email
Sitemap - RSS - Web service
Télécharger le Framework WebSite-PHP maintenant
 


Loading
 


Tutorial : Calendar 
with advance properties

Tutoriels

>

Tutoriel Calendar

>

Tutorial : Calendar with advance properties


Calendar-02: Tutoriel du composants Calendar du FrameWork PHP WebSite-PHP.

Tutorial : Calendar with advance properties:



Retourner aux tutoriels du composants Calendar



Code source

Code source


Fichier: /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);
    }
}
?>


Retourner aux tutoriels du composants Calendar


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Accueil Documentation Télécharger Quick start Tutoriels Wiki Issue Tracker