calendar A widget based on 'The Coolest DHTML Calendar'

  1. Documentation
  2. Change Log

This extension is a calendar based on The Coolest DHTML Calendar
It's an easy to use, light and fast calendar with many options

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Documentation

Check here the complete documentation of the calendar

Usage

See the following code example: A calendar that appears when an image is clicked

<?php echo CHtml::activeLabelEx($event,'start_date'); ?>
<?php echo CHtml::activeTextField($event,'start_date',array("id"=>"start_date")); ?>
<?php echo CHtml::image("images/images.jpg","calendar",
array("id"=>"c_button","class"=>"pointer")); ?>
    &nbsp;(calendar appears when image is clicked)
    <?php $this->widget('application.extensions.calendar.SCalendar',
        array(
        'inputField'=>'start_date',
        'button'=>'c_button',
        'ifFormat'=>'%Y-%m-%d',
    ));
    ?>

A calendar that appears when a textfield is clicked

<?php echo CHtml::activeLabelEx($event,'end_date'); ?>
    <?php echo CHtml::activeTextField($event,'end_date',array("id"=>"end_date")); ?>
    &nbsp;(calendar appears when textbox is clicked)
    <?php $this->widget('application.extensions.calendar.SCalendar',
        array(
        'inputField'=>'end_date',
        'ifFormat'=>'%Y-%m-%d',
    ));
    ?>

A fixed position calendar displaying date and time with a range of 2008-2010

<?php echo CHtml::activeLabelEx($event,'remind'); ?>
    <?php echo CHtml::activeTextField($event,'remind',array("id"=>"remind")); ?>
    &nbsp;(calendar with time , position 400,200 and a range 2008-2010)
    <?php $this->widget('application.extensions.calendar.SCalendar',
        array(
        'inputField'=>'remind',
       'ifFormat'=>'%Y-%m-%d %H:%M',
        'showsTime'=>true,
        'position'=>"[400,200]",
        'range'=>"[2008,2010]"
    ));
    ?>

Change Log

August 18, 2009

Version 1.22
Fixed javascript error caused by boolean parameters (thanks to fhelix72) Added step parameter for the years displayed in the calendar's year drop down menu (thanks to fhelix72)

July 16, 2009

Version 1.21
bug fix (handling undefined variables)

June 23, 2009

Version 1.2
Fixed bug with flatCallback, onSelect, onClose and onUpdate functions

June 2, 2009

Version 1.1
Fixes a bug with IE that made the widget useless

May 29, 2009
  • Initial release.
20 1
12 followers
8 297 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: Spyros
Created on: May 29, 2009
Last updated: 14 years ago

Downloads

show all