From a15043e8f4ab933ff23075afd600407289b2d4b8 Mon Sep 17 00:00:00 2001 From: Schrolli Date: Tue, 14 Jul 2015 13:46:17 +0200 Subject: [PATCH] edit simple_webend - click on the glass in overview shows the entry highlighted --- www/simple_webend/style.css | 10 ++++++++-- www/simple_webend/tpl/template.fms.php | 7 ++++++- www/simple_webend/tpl/template.pocsag.php | 7 ++++++- www/simple_webend/tpl/template.zvei.php | 7 ++++++- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/www/simple_webend/style.css b/www/simple_webend/style.css index c2ef6ff..bf5662e 100644 --- a/www/simple_webend/style.css +++ b/www/simple_webend/style.css @@ -21,8 +21,8 @@ table, th, td { border: 1px solid black; } /*alternating line color in table*/ /*without first line (header)*/ -tr:nth-child(2n+2) { background: #FFF; } -tr:nth-child(2n+3) { background: #CCC; } +tr:nth-child(2n+2) { background: white; } +tr:nth-child(2n+3) { background: lightgray; } /*table head*/ .tableHead{ @@ -31,6 +31,12 @@ tr:nth-child(2n+3) { background: #CCC; } font-weight: bold; } +.highlight { + color: #BE2F01; + font-weight: bold; + border: 2px solid #BE2F01; +} + /*footer*/ #footer{ diff --git a/www/simple_webend/tpl/template.fms.php b/www/simple_webend/tpl/template.fms.php index 5342236..855efe7 100644 --- a/www/simple_webend/tpl/template.fms.php +++ b/www/simple_webend/tpl/template.fms.php @@ -16,7 +16,12 @@ $time = strtotime($fms['time']); $time = date("d.m.Y H:i:s", $time); - echo ""; + if(!empty($_GET['id']) && $_GET['id'] == $fms['id']){ + echo ""; + } + else{ + echo ""; + } echo "". $fms['id'] . ""; echo "". $time . ""; echo "". $fms['fms'] . ""; diff --git a/www/simple_webend/tpl/template.pocsag.php b/www/simple_webend/tpl/template.pocsag.php index 6b68449..37f7a2f 100644 --- a/www/simple_webend/tpl/template.pocsag.php +++ b/www/simple_webend/tpl/template.pocsag.php @@ -16,7 +16,12 @@ $time = strtotime($poc['time']); $time = date("d.m.Y H:i:s", $time); - echo ""; + if(!empty($_GET['id']) && $_GET['id'] == $poc['id']){ + echo ""; + } + else{ + echo ""; + } echo "". $poc['id'] . ""; echo "". $time . ""; echo "". $poc['ric'] . ""; diff --git a/www/simple_webend/tpl/template.zvei.php b/www/simple_webend/tpl/template.zvei.php index b8b40a1..f3390ae 100644 --- a/www/simple_webend/tpl/template.zvei.php +++ b/www/simple_webend/tpl/template.zvei.php @@ -13,7 +13,12 @@ $time = strtotime($zvei['time']); $time = date("d.m.Y H:i:s", $time); - echo ""; + if(!empty($_GET['id']) && $_GET['id'] == $zvei['id']){ + echo ""; + } + else{ + echo ""; + } echo "". $zvei['id'] . ""; echo "". $time . ""; echo "". $zvei['zvei'] . "";