Calendar Permissions Component - Copy this Html, Bootstrap Component to your project
<!DOCTYPE html> <html lang="it"> <head> <meta charset="UTF 8"> <meta name="viewport" content="width=device width, initial scale=1.0"> <title>Calendario Permessi</title> <! Bootstrap CSS > <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384 EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384 MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384 IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384 cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script> <style> @keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } } .blinking button { animation: blink 1s infinite; } </style> </head> <body> <div id="calendar container" class="container mt 5" align="center"> <div align="left" width="100%"> <img src="imag/testata.PNG" /> </div><?php echo "Hello word";?> <br><br><br> <div align="right"><button class="btn btn primary" style="background color: #003057;" onclick="goToCurrentMonth()">Vai al mese corrente</button></div> <br><hr> <div align="left" width="100%"> <img src="imag/footer.PNG" /> </div> </div> <script src="https://code.jquery.com/jquery 3.6.0.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/5.1.0/js/bootstrap.bundle.min.js"></script> <script> function goToCurrentMonth() { var currentDate = new Date(); var currentMonth = currentDate.getMonth() + 1; // I mesi vanno da 0 a 11, quindi aggiungiamo 1 var currentYear = currentDate.getFullYear(); window.location.href = "?d=" + currentYear + " " + currentMonth + "&nomemail=" + encodeURIComponent("<?php echo $mailcapox; ?>") + "&nomeresp=" + encodeURIComponent("<?php echo $nomecapox; ?>"); } </script> </body> </html>
