Thursday 15 March 2012

javascript - how to get and show date and save into the Database in fullcalendar? -



javascript - how to get and show date and save into the Database in fullcalendar? -

i seek create human resource application using fullcalendar , users must insert work hours each day on it. clicking on day modal (dialog) open . wondering how can : 1 : date user click , show above modal (in modal titre)? 2 : how can save day other info db ? (i using bootstrap)

this html code :

<div class="modal fade" id="mymodal" aria-hidden="true"><form role="form" method="post" action="#"> (simple form elements) </form></div>

and fullcallendar :

<script> $('#calendar').fullcalendar({ // italian languge lang: 'it', // saiz height: 600, dayclick: function(date, jsevent, view) { // changing bg color $(this).css('background-color', 'green'); //create window here $('#mymodal').modal(); }, header: { left: 'prev', center: 'title', right: 'next', }, editable: true, });</script>

javascript php fullcalendar

No comments:

Post a Comment