CSS and row count fixes

This commit is contained in:
Jokob-sk
2022-12-26 00:30:05 +11:00
parent 8c8eaeb92f
commit 923ab5b903
7 changed files with 52 additions and 35 deletions

View File

@@ -579,18 +579,18 @@ height: 50px;
.setting_name
{
width:20%;
width:19%;
font-weight: 300;
}
.setting_description
{
width:50%;
width:46%;
}
.setting_input
{
width:30%;
width:35%;
}
.center
@@ -609,7 +609,7 @@ height: 50px;
.settings_content {
padding: 10px;
background-color: #272c30;
/* background-color: #272c30; */
margin: 10px;
}

View File

@@ -220,11 +220,16 @@
// -----------------------------------------------------------------------------
function main () {
// get parameter value
$.get('php/server/parameters.php?action=get&parameter='+ parTableRows, function(data) {
var result = JSON.parse(data);
result = parseInt(result, 10)
if (Number.isInteger (result) ) {
tableRows = result;
}
// get parameter value

View File

@@ -206,6 +206,7 @@ function main () {
// get parameter value
$.get('php/server/parameters.php?action=get&parameter='+ parTableRows, function(data) {
var result = JSON.parse(data);
result = parseInt(result, 10)
if (Number.isInteger (result) ) {
tableRows = result;
}

View File

@@ -390,7 +390,7 @@ if (submit && isset($_POST['langselector_set'])) {
<div><button class="btn btn-primary" onclick="logManage('pialert_front.log','cleanLog')"><?php echo $pia_lang['Gen_Purge'];?></button></div>
</div>
<div class="db_tools_table_cell_b">
<textarea id="pialert_log" class="logs" cols="70" rows="10" readonly><?php echo file_get_contents( "./log/pialert_front.log" ); ?>
<textarea id="pialert_front_log" class="logs" cols="70" rows="10" readonly><?php echo file_get_contents( "./log/pialert_front.log" ); ?>
</textarea>
</div>
</div>
@@ -684,6 +684,9 @@ function scrollDown()
var tempArea = $('#pialert_log');
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
tempArea = $('#pialert_front_log');
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
tempArea = $('#IP_changes_log');
$(tempArea[0]).scrollTop(tempArea[0].scrollHeight);
@@ -741,6 +744,7 @@ function setCache(key, data)
// load footer asynchronously not to block the page load/other sections
window.onload = function asyncFooter()
{
scrollDown();
$("#lastCommit").append('<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/jokob-sk/pi.alert/main?logo=github">');

View File

@@ -51,14 +51,6 @@ $timestamp = $date->format('Y-m-d_H-i-s');
// ###################################
// ## GUI settings processing start
// ###################################
if (file_exists('../db/setting_darkmode')) {
$ENABLED_DARKMODE = True;
}
foreach (glob("../db/setting_skin*") as $filename) {
$pia_skin_selected = str_replace('setting_','',basename($filename));
}
if (isset($pia_skin_selected) == FALSE or (strlen($pia_skin_selected) == 0)) {$pia_skin_selected = 'skin-blue';}
foreach (glob("../db/setting_language*") as $filename) {
$pia_lang_selected = str_replace('setting_language_','',basename($filename));
}

View File

@@ -72,7 +72,7 @@ $db->close();
<?php echo $pia_lang['Navigation_Settings'];?>
</h1>
</section>
<div class="content">
<?php
$html = "";
@@ -87,7 +87,7 @@ $db->close();
// create settings groups
foreach ($groups as $group) {
$html = $html.'<section class="settings_content">
$html = $html.'<section class="content box">
<h4>'.$group.'</h4>';
// populate settings for each group
@@ -95,7 +95,7 @@ $db->close();
if($set["Group"] == $group)
{
$html = $html.
'<div class="table_row" >
'<div class=" row table_row" >
<div class="table_cell setting_name bold" ><label>';
$html = $html.getString ($set['Code_Name'].'_name', $set['Display_Name'], $pia_lang).'</label>';
@@ -224,6 +224,7 @@ $db->close();
echo $html;
?>
</div>
<!-- /.content -->
<div class="row" >