From 254ca59c59591e56abe89e07a640894e7e906554 Mon Sep 17 00:00:00 2001 From: Robert Hofer Date: Fri, 20 Feb 2015 16:48:15 +0100 Subject: [PATCH] tablesorter from submodule --- .gitmodules | 3 + skin/vilesci.css | 29 +++++ submodules/tablesorter | 1 + vilesci/statistik/filter_overview.php | 165 ++++++++++++++++---------- 4 files changed, 134 insertions(+), 64 deletions(-) create mode 100644 .gitmodules create mode 160000 submodules/tablesorter diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..d9fbd832e --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "submodules/tablesorter"] + path = submodules/tablesorter + url = git@github.com:christianbach/tablesorter.git diff --git a/skin/vilesci.css b/skin/vilesci.css index 322eddeac..847f9b113 100644 --- a/skin/vilesci.css +++ b/skin/vilesci.css @@ -598,3 +598,32 @@ option.inactive { text-decoration:line-through; } + +html.reports, html.reports body { + height: 100%; +} + +html.reports .icons strong { + font-size: 26px; + vertical-align: middle; +} + +html.reports .icons img { + width: 48px; + vertical-align: middle; +} + +#rp_main { + width: 100%; + border: 0; + height: 85%; +} + +img.mini-icon { + width: 15px; + vertical-align: middle; +} + +td.overview-id { + text-align: right; +} diff --git a/submodules/tablesorter b/submodules/tablesorter new file mode 160000 index 000000000..b70ba2498 --- /dev/null +++ b/submodules/tablesorter @@ -0,0 +1 @@ +Subproject commit b70ba2498dd23d9d97605ff386cdd67ff6bd9140 diff --git a/vilesci/statistik/filter_overview.php b/vilesci/statistik/filter_overview.php index 63a84c33a..5cc37de8a 100644 --- a/vilesci/statistik/filter_overview.php +++ b/vilesci/statistik/filter_overview.php @@ -22,8 +22,6 @@ require_once('../../include/functions.inc.php'); require_once('../../include/filter.class.php'); require_once('../../include/benutzerberechtigung.class.php'); -$nl="\n"; - if (!$db = new basis_db()) die('Es konnte keine Verbindung zum Server aufgebaut werden.'); @@ -45,74 +43,113 @@ if(isset($_POST['action']) && $_POST['action']=='delete' && isset($_POST['filter $filter = new filter(); if (!$filter->loadAll()) die($filter->errormsg); - -//$htmlstr = "\n"; -$htmlstr = "
\n"; -$htmlstr .= " \n"; -$htmlstr .= ' - - - - - - - '; - -$htmlstr .= " \n"; -$i = 0; -foreach ($filter->result as $filter) -{ - //$htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= " \n"; - $htmlstr .= ' '; - $htmlstr .= " \n"; - $i++; -} -$htmlstr .= "
IDKurzBzValueNameShow ValueTypeHTMLAttributesSQLAction
".$filter->filter_id." - - - - ".$filter->kurzbz."".$db->convert_html_chars($filter->valuename)."".($filter->showvalue?'Ja':'Nein')."".$db->convert_html_chars($filter->type)."".$db->convert_html_chars($filter->htmlattr)."".$db->convert_html_chars(substr($filter->sql,0,32))."...
Delete
\n"; - - ?> - - Filter Übersicht - - - - - + + + - - -Neuer Filter - - + function ConfirmDelete(filter_id) + { + if(confirm("Wollen Sie diesen Filter wirklich löschen?")) + { + document.forms['form_'+filter_id].submit(); + } + } + + + + + Neuer Filter + +
+ +
+ + + + + + + + + + + + + + + result as $filter): ?> + + + + + + + + + + + + +
+ ID + + KurzBz + + ValueName + + Show Value + + Type + + HTMLAttributes + + SQL + + Action +
+ + filter_id ?> + + + + + + + kurzbz ?> + + + convert_html_chars($filter->valuename) ?> + + showvalue ? 'Ja' : 'Nein' ?> + + convert_html_chars($filter->type) ?> + + convert_html_chars($filter->htmlattr) ?> + + convert_html_chars(substr($filter->sql,0,32)) ?>... + +
+ + + + Delete + +
+
+