Any clue on how to solve this issue ?
Any clue on how to solve this issue ?
maybe it has to do with this one:
http://www.yiiframew…2.html#msg14082
ajax replaced content doesn't seem to have the original functionality
Take a look at this:
it may have a solution for the problem
Hey, Spyros, how you doing, mate?
I have some information about the “two-October, 17th” bug I’ve written here http://www.yiiframework.com/extension/calendar/reviews/
I’ve tried some combinations and found out that the problem only happens when there is some given date passed to the inputField. Also, if I click over the “Today” link in the calendar, it rebuilds the matrix of days in the right way…
The weirdest part is that here in Brazil, our Daylight Saving Time has begun coincidentally in October, 18h, which is exactly one day after the day which appears twice in the Calendar.
I’ve tried in your demo page at http://spyros.agilityhoster.com/demos/index.php?r=event/update&id=45 by changing the End Date of the record and the problem happens too.
Now I’m wondering if it is related to some config in my computer/server and the daylight saving time…
Please, let me know if it happens to you when you try the same record I’ve done at http://spyros.agilityhoster.com/demos/index.php?r=event/update&id=45
Thanks in advance
![]()
It doesn’t happen to me. Must be due to Daylight saving time.
I will test it next week when there’s the DST day in Greece
I spyro I have a problem with your extension, dateStatusFunc don’t work properly I use so:
<?php $this->widget(‘application.extensions.calendar.SCalendar’,
array(
‘inputField’=>‘prenotazioni_partenza’,
“ifFormat” => ‘%d-%m-%Y’,
"dateStatusFunc" => "function(date) {if (date.getDay() != 0) {return true;} else {return false;}} ",
));?>
but nothing change have you a solution?
thanks.
I found by me the problem there’s an error in 482 Scalendar.php line you have to sostitute dateStatusFunc with _dateStatusFunc now works thanks.
Hi,
I’m new at extensions so please be gentle ![]()
I downloaded calendar_1_22.zip and extracted it in protected/extensions
Then added to my _form.php
<?php echo CHtml::activeLabelEx($model,‘delivering_date’); ?>
<?php echo CHtml::activeTextField($model,‘delivering_date’,array(‘id’=>‘delivering_date’)); ?>
<?php $this->widget(‘application.extensions.calendar.SCalendar’,
[indent]array(
[indent]‘inputField’=>‘delivering_date’,
‘skin’=>$skin,
‘stylesheet’=>$style,
‘ifFormat’=>’%d-%m-%Y’,[/indent]
));[/indent]
?>
It works but the calendar spreads out across the entire available width of the window.
What am I missing?
Thank you.
Hi,
Is $skin and $style real variables that exist in your code?
If not comment these lines and check again
No, they don’t exist.
Commenting them doesn’t help.
Could you give me some quick instructions on how/where to set them?
Thanks.
I’ve just noticed that when I drag the calendar it moves up and down ok, but when moving left and right the righthand side of the calender is stays fixed against the right handside of the browser window.
I’m using the Epiphany browser that is powered by Gecko 1.8 (if that’s any help).
Cheers.
Hi,
I have problem with IE7, calendar is shown almost 200px top than where i want to be displayed. It is good for mozilla and IE8
any idea how can i solve this issue
thanks
Umut
thanks all i fixed the bug
Can you tell us what you did to fix it?
Can someone tell me what I’m doing wrong?
Using
YII 1.1.7
Calendar 1.2.2
I created a very basic db w/ a tbl_general_info that has a date field called test_date. I used gii to create the Model and CRUD operations. Then I added the calendar extension to my _view.php file. Here’s the file:
<?php Yii::import('application.extensions.calendar.SCalendar'); ?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('id_code')); ?>:</b>
<?php echo CHtml::encode($data->id_code); ?>
<br />
<b><?php echo CHtml::activeLabelEx($model, 'test_date'); ?>:</b>
<?php echo CHtml::activeTextField($model, 'test_date', array("id"=>"test_date")); ?>
<?php $this->widget('application.extensions.calendar.SCalendar', array('inputField'=>'test_date','ifFormat'=>%Y-%m-%d));
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('followup_date')); ?>:</b>
<?php echo CHtml::encode($data->followup_date); ?>
<br />
</div>
NB: /extensions/calendar exists.
TIA
RPD
try
<?php
'ifFormat'=>'%Y-%m-%d'
?>
instead of
<?php
'ifFormat'=>%Y-%m-%d
?>
Thanks Spyros. Can’t believe I missed that. I was also working w/ the wrong file. I should have been modifying the _form.php file that’s used for modifying values. The _view.php seems to be for display purposes only i.e. listing the content of the model.
Awesome plugin. For completeness, all I had to do was this:
<div class="row">
<?php echo $form->labelEx($model,'test_date'); ?>
<?php echo $form->textField($model,'test_date', array("id"=>"test_date")); ?>
<?php Yii::import('ext.calendar.SCalendar'); ?>
<?php $this->widget('ext.calendar.SCalendar',array('inputField'=>'test_date', 'ifFormat'=>'%Y-%m-%d',)); ?>
<?php echo $form->error($model,'test_date'); ?>
</div>
Hi there!
Thanks for this great plugin. I have one problem, to which i have tried countless times and failed. I want the years in the drop down list not to skip by a year, (e.g 2001,2002,2003…instead of 2001,2003,2005…). I have read about $_step but couldn’t get it done.
Thanks.
Hi
I’m using the following code into my _form:
<div class="row">
<?php echo CHtml::activeLabelEx($model,'datosofertafechainicio'); ?>
<?php echo CHtml::activeTextField($model,'datosofertafechainicio',array('id'=>'datosofertafechainicio')); ?>
<?php echo CHtml::image(Yii::app()->baseUrl."/images/calendar.jpg","calendar", array("id"=>"ds_button","class"=>"pointer")); ?>
<?php $this->widget('application.extensions.calendar.SCalendar', array( 'inputField'=>'datosofertafechainicio', 'button'=>'ds_button', 'skin'=>$skin, 'stylesheet'=>$style, 'ifFormat'=>'%Y-%m-%d', 'range'=>'[2000,2050]', 'cache'=>true,'language'=>'es', )); ?>
<?php echo $form->error($model,'datosofertafechainicio'); ?>
</div>
I have a issue with IE8.
Thanks in advanced.
JTATIS
Does anyone know who to set the default date? I tried the following which is a valid JavaScript Date() object format but it doesn’t work.
<?php echo $form->textField($model,'Birthdate',array('id'=>'birth_date','class'=>'appfld')); ?>
(calendar appears when textbox is clicked)
<?php $this->widget('application.extensions.calendar.SCalendar',
array(
'inputField'=>'birth_date',
'ifFormat'=>'%m/%d/%Y',
'date'=>'1982,0,1',
)); ?>