Untitled
unknown
html
2 years ago
4.2 kB
2
Indexable
Never
<!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> APP ATK</title> <link href=" https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css"> <link href="https://cdn.datatables.net/1.12.1/css/dataTables.bootstrap5.min.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"> </head> <body onload="loadtab()"> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <div class="container-fluid"> <a class="navbar-brand" href="#">ATK BINDINGS</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNavDropdown"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#">Home</a> </li> </ul> </div> </div> </nav> <table id="tabella" class="table table-striped" style="width:100%"> <thead> <tr> <th>id</th> <th>fila_descr</th> </tr> </thead> <tbody id = "tab"> </tbody> </table> <!--- <input type="text" placeholder="inserisci fila_descr" id="d"> <input type="button" value="click" type="submit" onclick="caricamento()"> <input type="text" placeholder="inserisci NORD" id="n"> <input type="text" placeholder="inserisci fila" id="f"> <input type="text" placeholder="inserisci note" id="not"> --> <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> <script> function funz(btn){ var w = window.open("cassoni.html","cassoni.html","width=500,height=500"); window.but = btn } function loadtab() { const xmlhttp = new XMLHttpRequest(); xmlhttp.onload = function() { document.getElementById("tab").innerHTML = this.responseText; } xmlhttp.open("GET", "caricamento.php"); xmlhttp.send(); } function caricamento(){ var descrizione=d.value; const xhttp = new XMLHttpRequest(); xhttp.open("GET", "caricamento.php?descrizione="+descrizione); xhttp.send(); } /*function caricamento(){ var nord=n.value; var fila=f.value; var note=not.value; const xhttp = new XMLHttpRequest(); xhttp.open("GET", "caricamento2.php?nord="+nord+"&fila="+fila+"¬e="+note); xhttp.send(); }*/ var modal = document.getElementById('id01'); // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = "none"; } } $(document).ready(function () { $('#tabella').DataTable(); }); </script> </html>