Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript FullCalendar,dayclick函数_Javascript_Php_Fullcalendar - Fatal编程技术网

Javascript FullCalendar,dayclick函数

Javascript FullCalendar,dayclick函数,javascript,php,fullcalendar,Javascript,Php,Fullcalendar,我正在尝试使用FullCalendar插件制作日历。这是我的密码 <!DOCTYPE html> <html> <head> <meta charset='utf-8' /> <link href='fullcalendar.css' rel='stylesheet' /> <link href='fullcalendar.print.css' rel='stylesheet' media

我正在尝试使用FullCalendar插件制作日历。这是我的密码

 <!DOCTYPE html>
    <html>
    <head>
    <meta charset='utf-8' />
    <link href='fullcalendar.css' rel='stylesheet' />
    <link href='fullcalendar.print.css' rel='stylesheet' media='print' />
    <script src='moment.min.js'></script>
    <script src='jquery.min.js'></script>
    <script src='fullcalendar.min.js'></script>
    <script>

        $(document).ready(function() {

            $('#calendar').fullCalendar({
                header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'month,agendaWeek,agendaDay'
                },

                selectable: true,
                selectHelper: true,
                select: function(start, end, jsEvent, view){
                  window.location = "testing.php";
                },



            });

        });

    </script>
    <style>

        body {
            margin: 40px 10px;
            padding: 0;
            font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
            font-size: 14px;
        }

        #calendar {
            max-width: 900px;
            margin: 0 auto;
        }

    </style>
    </head>
    <body>

        <div id='calendar'></div>
    </body>
    </html>

$(文档).ready(函数(){
$(“#日历”).fullCalendar({
标题:{
左:“上一个,下一个今天”,
中心:'标题',
右图:“月,agendaWeek,agendaDay”
},
是的,
selectHelper:对,
选择:函数(开始、结束、jsEvent、视图){
window.location=“testing.php”;
},
});
});
身体{
利润率:40像素10像素;
填充:0;
字体系列:“Lucida Grande”,Helvetica,Arial,Verdana,无衬线;
字体大小:14px;
}
#历法{
最大宽度:900px;
保证金:0自动;
}
当我点击一个日期时,日历会将我重定向到test.php(这就是我想要的)。例如,当用户在1月10日按下按钮时,详细信息(在数据库中)将回显给该php,我该如何编写代码。(testing.php)

关于如何处理testing.php文件有什么建议吗


另外,这是一个与此类似的功能
http://www.w3schools.com/php/php_ajax_database.asp

你能帮我整理一下吗?嗨,先生,很抱歉,由于我的无能,我不知道我的小提琴是怎么坏的。然而,这是它的一张图片,很抱歉给您带来不便