Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQueryBuilder.php on line 127
Scheduler
<?php //For use the component YsJQuery::useComponent(YsJQueryConstant::COMPONENT_JQFULL_CALENDAR); $calendar = new YsScheduler('myCalendarId'); $calendar->setEditable(true); $calendar->setAllDaySlot(true); $event = new YsCalendarEvent('myEventId','Event 1'); $event->setStart(new DateTime()); $event->setEnd(new DateTime('+1 day')); $event->setAllDay(false); $event->setColor('red'); $calendar->addEvent($event); $event = new YsCalendarEvent(123456,'Event 2'); $event->setStart(new DateTime()); $event->setEnd(new DateTime('+2 hour')); $event->setAllDay(false); $event->setColor('green'); $calendar->addEvent($event); $calendar->addCategory('myCategory', 'My Category 1'); ?> <button id="btnOpenDialog">Show Demo</button> <?php echo YsUIDialog::initWidget('dialogId','style="display:none" title="Basic dialog"') ?> <?php echo $calendar->renderTemplate(); ?> <?php echo YsUIDialog::endWidget() ?> <?php echo YsJQuery::newInstance() ->onClick() // On Click ->in('#btnOpenDialog') // In the button with id "btnOpenDialog" ->execute( // DO YsUIDialog::build('#dialogId') // Build and open the UI Dialog ->_modal(true) ->_width(670) ->_height('auto') ->_buttons(array( 'Ok' => new YsJsFunction('alert("Hello world")'), 'Close' => new YsJsFunction(YsUIDialog::close('this'))) ), $calendar->build() ) ?>
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/YsJQuerySintax.php on line 52
Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/project-web/jquery4php/lib/YepSua/Labs/RIA/jQuery4PHP/Components/jqFullCalendar/YsScheduler.php on line 513
Support requests, bug reports, and off-topic comments will be deleted without warning.