From 3e69ef59ac669bedc5ba4374a7a4694f74596e94 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Sun, 29 Jul 2012 17:21:49 +0200 Subject: [PATCH 1/3] fixed radiobutton on index.php fixed php warning in toprare.php if database is empty include .gitignore file with my NetBeans exclusions --- .gitignore | 3 +++ index.php | 5 ++++- php/toprare.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c97ebdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/nbproject/private/ +/nbproject/project.xml +/nbproject/project.properties \ No newline at end of file diff --git a/index.php b/index.php index 3ac8b9b..ac35ea9 100644 --- a/index.php +++ b/index.php @@ -36,7 +36,10 @@ $radiosource=""; $radiopath=""; $radiolevel=""; -if(isset($_GET['field']) && $_GET['field']=='path'){ +if(isset($_GET['field']) && $_GET['field']=='source'){ + $radiosource="checked"; +}elseif(isset($_GET['field']) && $_GET['field']=='path'){ + $radiopath="checked"; }elseif(isset($_GET['field']) && $_GET['field']=='level'){ $radiolevel="checked"; diff --git a/php/toprare.php b/php/toprare.php index 62cfc11..553ad68 100644 --- a/php/toprare.php +++ b/php/toprare.php @@ -46,7 +46,7 @@ $i=0; $mainstring=""; foreach ($lastrare as $key => $val) { - if($i<$glb_indexsubtablelimit){ + if($i<$glb_indexsubtablelimit && trim($val)!="||"){ $display=explode("||", $val); $mainstring.="
".date("dS M H:i", $display[0])."
".htmlspecialchars($display[1])."
From 2e0b5af4e3ac79f7c84e85b2bc48d6265e276bc3 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Sun, 29 Jul 2012 17:48:37 +0200 Subject: [PATCH 2/3] synced levelfiltering in detail.php to behave as in index.php fixed missing image error for detail.php --- detail.php | 6 +++--- index.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/detail.php b/detail.php index 6a9ebaa..875df63 100644 --- a/detail.php +++ b/detail.php @@ -15,7 +15,7 @@ # where = the cumulative sql command ## filter criteria 'level' -if(isset($_GET['level']) && is_numeric($_GET['level']) && $_GET['level']>0){ +if(isset($_GET['level']) && is_numeric($_GET['level']) && $_GET['level']>=0){ $inputlevel=$_GET['level']; $where.="AND signature.level>=".$inputlevel." "; }else{ @@ -186,7 +186,7 @@ chart.startDuration = 0.5; chart.balloon.color = "#000000"; chart.zoomOutOnDataUpdate=true; - chart.pathToImages = "/images/"; + chart.pathToImages = "./images/"; chart.zoomOutButton = { backgroundColor: '#000000', backgroundAlpha: 0.15 @@ -281,7 +281,7 @@ function setPanSelect() {
Level
diff --git a/index.php b/index.php index ac35ea9..69a26d8 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ ## filter criteria 'level' -if(isset($_GET['level']) && is_numeric($_GET['level']) && $_GET['level']>0){ +if(isset($_GET['level']) && is_numeric($_GET['level']) && $_GET['level']>=0){ $inputlevel=$_GET['level']; }else{ $inputlevel=$glb_level; From 3f565e9b1afe086da52262f2e0e097dde6916a19 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Sun, 29 Jul 2012 18:58:07 +0200 Subject: [PATCH 3/3] fixed missing parameter in style.css added relative small tooltip to top10byid with full explanation --- php/topid.php | 2 +- style.css | 25 ++++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/php/topid.php b/php/topid.php index 54c0b2e..667103a 100644 --- a/php/topid.php +++ b/php/topid.php @@ -32,7 +32,7 @@ while($row = @mysql_fetch_assoc($result)){ $mainstring.="
".$row['res_cnt']."
- +
"; } $mainstring.=""; diff --git a/style.css b/style.css index df719a7..329850d 100644 --- a/style.css +++ b/style.css @@ -12,7 +12,7 @@ div{border-style:solid;margin:0px; border-style:solid;border-width:0px;} .maincol{width:33%} -.top10header{text-transform: font-weight: bold;border-left: 6px solid #005482; color: #363636; font-size: 20px; padding: 7px 0 7px 10px;font-family: Helvetica,Arial,sans-serif;} +.top10header{text-transform: capitalize; font-weight: bold;border-left: 6px solid #005482; color: #363636; font-size: 20px; padding: 7px 0 7px 10px;font-family: Helvetica,Arial,sans-serif;} .top10data{text-transform: capitalize; font-weight: bold; color: #363636; font-size: 12px; font-family: Helvetica,Arial,sans-serif;padding-left:1px;} @@ -142,3 +142,26 @@ border-bottom: 0; border-top-color: #ccc; bottom: -8px; } + +a.tooltip_small { + position: relative; +} + +a.tooltip_small span { + display: none; + text-decoration: none; +} + +a.tooltip_small:hover span { + display: block; + position: absolute; + top: 0px; + left: 200px; + width: 200px; + z-index: 100; + color: #fff; + background: #005482; + text-align: left; + text-decoration: none; + font-weight: normal; +} \ No newline at end of file