事件日期仅适用于bic_calendar中的当月

时间:2016-12-28 17:00:24

标签: javascript jquery

$(document).ready(function() {
    var monthNames = ["January", "February", "May", "June", "March", "April", "July", "August", "September", "October", "November", "December"];

    var dayNames = [ "الاحد", "الاثنين", "ثلاثاء", "الاربعاء", "الخميس", "جمعه","سبت"];

    var events = [
        <?php 
            foreach($array_date as $date_of_event){
                echo '{
                    date: "'.$date_of_event.'" 
                } ,';
            }
        ?>
    ];

    $('#calendar').bic_calendar({

        //enable select
        enableSelect: true,
        //set day names
        dayNames: dayNames,
        //set month names
        monthNames: monthNames,
        //show dayNames
        showDays: true,
        //show month controller
        displayMonthController: true,
        //show year controller
        displayYearController: true,
        //change calendar to english format
        startWeekDay: 1,
        //set ajax call
        events: events,

    });

    $('.bic_calendar').removeClass('row');
    $('.table').addClass('table-bordered');
    $('.table.header').removeClass('table-bordered');
});

你好

我想从这个link

中使用bic_calendar

我用这个鳕鱼将日历添加到我的网站

但它仅适用于当月(意味着如果在12/1/2017的活动日期不会显示在日历上)

我正在尝试很多次,但我无法解决它,所以我希望找到任何人来帮助

0 个答案:

没有答案