/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
main
/
up file
home
<?php include('header.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); ?> <link href="../template/css/plugins/datapicker/datepicker3.css" rel="stylesheet"> <body class="top-navigation"> <div id="wrapper"> <div id="page-wrapper" class="gray-bg px-0"> <div class="wrapper-content animated fadeInRight"> <div class=" container px-0"> <!-- <div class="row"> <div class="col-md-12 col-12 mb-3"> <div class="ibox-content"> ข้อมูลสมาชิก - <?php echo bigsara_decode($row['member_name'], $key, $pointer); ?> </div> </div> </div> --> <div class="row"> <div id="Loading"> <div class="spiner-example"> <div class="sk-spinner sk-spinner-wave"> <div class="sk-rect1"></div> <div class="sk-rect2"></div> <div class="sk-rect3"></div> <div class="sk-rect4"></div> <div class="sk-rect5"></div> </div> </div> </div> <div class="col-md-12 col-12 mb-3" id="show_list"> </div> </div> <!-- Calendar --> <div class="row"> <div class="12" id="calendar"></div> </div> </div> </div> </div> </div> <!--- init layout --> <?php include('footer.php'); ?> <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-md modal-dialog-centered"> <div class="modal-content animated fadeIn"> <div id="showModal"></div> </div> </div> </div> <script> $(document).ready(function () { renderCalendar() }); function renderCalendar() { //รับค่าจาก path link const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); var house_id = urlParams.get('id'); // alert(house_id); $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,' }, eventClick: function(event) { const dateStr = new Date(event.start); // const dateStr = birthday.getDay(); console.log(dateStr); // alert(dateStr); //รับค่าจาก path link const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); var house_id = urlParams.get('id'); $.ajax({ type: "post", url: "modalimage.php", data: { house_id: house_id, dateStr: dateStr }, dataType: "html", success: function(response) { $("#modal").modal('show'); $("#show_modal").html(response); } }); }, dayClick: function(date) { const dateStr = new Date(date); // const dateStr = birthday.getDay(); // console.log(dateStr); // alert(dateStr); //รับค่าจาก path link const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); var house_id = urlParams.get('id'); $.ajax({ type: "post", url: "modalimage.php", data: { house_id: house_id, dateStr: dateStr }, dataType: "html", success: function(response) { $("#modal").modal('show'); $("#show_modal").html(response); } }); }, navLinks: true, dayMaxEvents: true, displayEventTime: true, selectable: true, // weekNumbers: true, defaultDate: '<?php echo date("Y-m-d"); ?>', lang: 'th', buttonIcons: false, // show the prev/next text weekNumbers: false, editable: true, eventLimit: true, // allow "more" link when too many events events: "ajax/calender.php?id=" + house_id, displayEventTime: false, }); } </script> </body> </html>