Update client_settings.php

This commit is contained in:
jakani24
2024-02-11 20:12:29 +01:00
parent 3cdfc6a239
commit 86984bc44d

View File

@@ -281,13 +281,14 @@ function load_settings(){
<a class="nav-link" href="client_settings.php?show=general" id="general_tab">General Settings</a> <a class="nav-link" href="client_settings.php?show=general" id="general_tab">General Settings</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#">Link</a> <a class="nav-link" href="client_settings.php?show=rtp" id="rtp_tab">RTP Settings</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#">Link</a> <a class="nav-link" href="client_settings.php?show=task" id="task_tab">Task Settings</a>
</li> </li>
</ul> </ul>
<div id="general" style="display:none">
<h4>General</h4> <h4>General</h4>
<!-- Dropdown for virus controll action --> <!-- Dropdown for virus controll action -->
<h7>What should be done, if the scanner finds a virus?</h7> <h7>What should be done, if the scanner finds a virus?</h7>
@@ -306,6 +307,8 @@ function load_settings(){
<h7>What is the URL of this server? (url or ip address where the clients connect to)</h7> <h7>What is the URL of this server? (url or ip address where the clients connect to)</h7>
<input type="text" id="server_url_input" class="form-control" name="name" value="<?php echo($setting_server_server_url); ?>" oninput="update_textfield('server_url_input','setting_server_server_url','0')"> <input type="text" id="server_url_input" class="form-control" name="name" value="<?php echo($setting_server_server_url); ?>" oninput="update_textfield('server_url_input','setting_server_server_url','0')">
<br> <br>
</div>
<div id="rtp" style="display:none">
<h4>RTP</h4> <h4>RTP</h4>
<h7>RTP: folderscanner on/off</h7> <h7>RTP: folderscanner on/off</h7>
<div class="form-check form-switch"> <div class="form-check form-switch">
@@ -398,6 +401,8 @@ function load_settings(){
</tbody> </tbody>
</table> </table>
<br> <br>
</div>
<div id="task" style="display:none">
<h4>User Tasks</h4> <h4>User Tasks</h4>
<table class="table"> <table class="table">
<thead> <thead>
@@ -543,6 +548,7 @@ function load_settings(){
</div> </div>
</div> </div>
</div> </div>
</div>
<script> <script>
//decide which div should be shown: //decide which div should be shown:
// Get the URL parameters // Get the URL parameters
@@ -552,7 +558,7 @@ function load_settings(){
// Get the value of the "show" parameter // Get the value of the "show" parameter
const show_div = document.getElementById(urlParams.get('show')); const show_div = document.getElementById(urlParams.get('show'));
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');
</script> </script>
</body> </body>