calendar

A widget based on 'The Coolest DHTML Calendar'
14 reviews   downloaded 1815 times
created by Spyros, last updated on May 13, 2010
#331
really good calendar extension
by horizons at 5:59am on May 29, 2009.

really good calendar extension

#332
The "better" date picker
by tommytomtom at 5:12am on May 29, 2009.

This "calendar" is much better in my opinion then the only other viable alternative, jui.EDatePicker.

The EDatePicker although useable with some minor code modifications, is really very basic with a crude graphical user interface.

This calendar however offers EVERYTHING and it works great without any modifications. The graphical user interface is intuitive and very advanced as well as easy to control. Thanks!

#333
nice
by phreak at 5:13am on May 29, 2009.

really good calendar. having time editing is really cool. 10x :)

#395
Not free for comercial use
by foe#1 at 6:45pm on June 20, 2009.

Liked it and planed to use for the flat & flatCallback options it provides, but ..

#396
My BAD, this version is under LGPL
by foe#1 at 6:41pm on June 20, 2009.

Now wondering how to use this?

function dateChanged(calendar) {

if (calendar.dateClicked) {

  var y = calendar.date.getFullYear();

  var m = calendar.date.getMonth();   

  var d = calendar.date.getDate();    

  window.location = "/" + y + "/" + m + "/" + d + "/index.php";

}

#406
flatCallback
by Spyros at 6:03am on June 23, 2009.

There was an error in the SCalendar.php You should change line 486 from

if(isset ($this->_flatCallback))  $prop .= "flatCallback    : '$this->_flatCallback',\n";

to

if(isset ($this->_flatCallback))  $prop .= "flatCallback    : $this->_flatCallback,\n";

Then the calendar has to be a flat one Then use this code

<script type="text/javascript">
  function dateChanged(calendar) {
    // Beware that this function is called even if the end-user only
    // changed the month/year.  In order to determine if a date was
    // clicked you can use the dateClicked property of the calendar:
    if (calendar.dateClicked) {
      // OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
      var y = calendar.date.getFullYear();
      var m = calendar.date.getMonth();     // integer, 0..11
      var d = calendar.date.getDate();      // integer, 1..31
      // redirect...
      window.location = "/" + y + "/" + m + "/" + d + "/index.php";
    }
  };
</script>
 
<div id="calendar-container"></div>
 
 <?php $this->widget('application.extensions.calendar.SCalendar',
        array(
        'flat'=> 'calendar-container',
        'ifFormat'=>'%Y-%m-%d',
        'flatCallback'=>'dateChanged'
    ));
    ?>
#486
I do love this thing
by nasrul at 7:23pm on July 21, 2009.

WOW.!! Thank you so much to the Author

#517
Error in SCalendar.php for boolean parameters
by fhelix72 at 7:15pm on July 30, 2009.

I found that all the boolean parameters causes a javascript error if they are used (true or false), they are: singleClick, weekNumbers, showsTime, electric, cache, showOthers The problem is that they must be passed to js surrounded by '' So you should substitute in the createMarkup function of SCalendar.php the 6 rows of the above parameters from:

if(isset ($this->_PARAMETER))     $prop .= "PARAMETER       :  $this->_PARAMETER,\n";

to

if(isset ($this->_PARAMETER))     $prop .= "PARAMETER       :  '$this->_PARAMETER',\n";


#518
To use Step Parameter
by fhelix72 at 7:27pm on July 30, 2009.

If you want to manage the 'Step' parameter that is contemplated in DHTML Calendar for change the step between years in the drop down list (default=2) you must make these changes to SCalendar.php:

In the begin add to the other parameters: /* @var $_step Integer private $_step;

Add this new function: /*** * @param integer $step */ public function setStep($step) { if(is_numeric($step) && ($step >-1)) { $this->_step = $step; } else { $this->_step = 2; } }

Add in createMarkup function: if(isset ($this->_step)) $prop .= "step : $this->_step,\n";

#742
is it a bug?
by scoob.junior at 10:14pm on October 17, 2009.

Hey, guys,

I'm using the following code:

<?php echo CHtml::activeLabelEx($model,'promotionDateStart'); ?> <?php echo CHtml::activeTextField($model,'promotionDateStart',array('id'=>'promotionDateStart')); ?> <?php echo CHtml::image(Yii::app()->baseUrl."/images/site/calendar.jpg","calendar", array("id"=>"ds_button","class"=>"pointer")); ?> <?php $this->widget('application.extensions.calendar.SCalendar', array( 'inputField'=>'promotionDateStart', 'button'=>'ds_button', 'skin'=>$skin, 'stylesheet'=>$style, 'ifFormat'=>'%Y-%m-%d', 'range'=>'[2000,2050]', 'cache'=>true, //'showOthers'=>false, //'showsTime'=>false, //'timeFormat'=>'24', 'language'=>'br', )); ?>

Yii 1.0.9, Linux, Firefox 3.5

The calendar object is shown fine, but 17th, October (today) is shown twice, in Saturday and Sunday...and it changes all the rest of month...any idea on how to solve this bug?

Thanks!!

#743
Is It a bug?
by Spyros at 10:07am on October 18, 2009.

Hi, What is the value of the $style and $skin you use? Also check the jscalendar's home page to see if the bug happens there too. http://www.dynarch.com/static/jscalendar-1.0/simple-1.html

If you have any other questions please post them in the forum thread http://www.yiiframework.com/forum/index.php?/topic/2337-extension-calendar/

#984
Language Property
by jwerner at 1:49am on January 13, 2010.

Hi,

I think you shouldf add the following code at ca. line 509 in SCalendar.php:

if(isset ($this->_language)) $prop .= "language : '$this->_language',\n";

Regards,

Joachim

#986
More guide please
by mauphung at 1:35am on January 13, 2010.

Please give me just one full working example with following missing data for: $event = ? $skin = ? ("aqua"?) $style = ? ("blue"?) Thanks,

#1463
Powerfull and easy to integrate extension!
by mirrorps at 5:43pm on May 5, 2010.

Congrats on the extension! Super easy to use and a very powerful functionality ... For those that are in a hurry and getting the error, about the undefined variable, just delete ('skin'=>$skin, 'stylesheet'=>$style) to use the default styling.

Congrats again!

New Review

Please login first.