Update client_settings.php
This commit is contained in:
@@ -281,13 +281,14 @@ function load_settings(){
|
||||
<a class="nav-link" href="client_settings.php?show=general" id="general_tab">General Settings</a>
|
||||
</li>
|
||||
<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 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>
|
||||
|
||||
</ul>
|
||||
<div id="general" style="display:none">
|
||||
<h4>General</h4>
|
||||
<!-- Dropdown for virus controll action -->
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
<div id="rtp" style="display:none">
|
||||
<h4>RTP</h4>
|
||||
<h7>RTP: folderscanner on/off</h7>
|
||||
<div class="form-check form-switch">
|
||||
@@ -398,6 +401,8 @@ function load_settings(){
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
</div>
|
||||
<div id="task" style="display:none">
|
||||
<h4>User Tasks</h4>
|
||||
<table class="table">
|
||||
<thead>
|
||||
@@ -543,6 +548,7 @@ function load_settings(){
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//decide which div should be shown:
|
||||
// Get the URL parameters
|
||||
@@ -552,7 +558,7 @@ function load_settings(){
|
||||
// Get the value of the "show" parameter
|
||||
const show_div = document.getElementById(urlParams.get('show'));
|
||||
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');
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user