Update database_settings.php

This commit is contained in:
jakani24
2024-03-10 10:02:04 +01:00
parent c0288681c4
commit 17bded95ec

View File

@@ -150,7 +150,6 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
//load entrys from excluded db //load entrys from excluded db
$sql = "SELECT * FROM sig_ex"; $sql = "SELECT * FROM sig_ex";
$stmt = $conn->prepare($sql); $stmt = $conn->prepare($sql);
//$stmt->bind_param("ssssii", $loglevel, $logtext, $machine_id, $time, $offset, $page_size);
$stmt->execute(); $stmt->execute();
$result = $stmt->get_result(); $result = $stmt->get_result();
@@ -166,7 +165,7 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
echo('<th scope="row">000</th>'); echo('<th scope="row">000</th>');
echo('<td><input type="text" id="sig_ex" class="form-control" name="name"></td>'); echo('<td><input type="text" id="sig_ex" class="form-control" name="name"></td>');
echo('<td><input type="text" id="sig_ex_desc" class="form-control" name="name"></td>'); echo('<td><input type="text" id="sig_ex_desc" class="form-control" name="name"></td>');
echo('<td><button type="button" class="btn btn-primary" onclick="add_item(\'sig_ex\',\'sig_ex\',\'signature\',\'sig_ex_desc\',\'sig_ex_desc\',\'description\');">Add</button></td>'); echo('<td><button type="button" class="btn btn-primary" onclick="add_item(\'sig_ex\',\'sig_ex\',\'signature\',\'sig_ex_desc\',\'description\');">Add</button></td>');
echo('</tr>'); echo('</tr>');
while($row = $result->fetch_assoc()) { while($row = $result->fetch_assoc()) {
echo '<tr>'; echo '<tr>';
@@ -199,7 +198,6 @@ async function add_item(db,element_id1,field1,element_id2,field2){ //we have two
const nav_tab = document.getElementById(urlParams.get('show')+"_tab"); const nav_tab = document.getElementById(urlParams.get('show')+"_tab");
show_div.style.display="block"; show_div.style.display="block";
nav_tab.setAttribute('class', 'nav-link active'); nav_tab.setAttribute('class', 'nav-link active');
console.log("aaaa");
</script> </script>
</body> </body>
</html> </html>