1
0
mirror of https://github.com/agdsn/ancient-weatherstation.git synced 2026-06-19 23:07:59 +00:00

many improvements in frontend

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@120 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi
2006-09-21 00:04:31 +00:00
parent 641b4efa29
commit 11bb95d185
18 changed files with 131 additions and 42 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
<?
include_once("php_inc/config.inc.php");
include_once("php_inc/module_set.inc.php");
class Chart{
@@ -19,7 +20,7 @@ class Chart{
$buff = '<div class="chart_link_div">';
$buff .= '<a href="';
$buff .= $_SERVER['PHP_SELF'].'?setType='.$chartArray[4]."&chartName=".$chartName;
$buff .= ModuleSet::buildArgLink(array("setType"=>$chartArray[4], "chartName"=>$chartName));
$buff .= '" class="chart_link">';
$buff .= $chartArray[1];
+1 -1
View File
@@ -112,7 +112,7 @@ class Module{
}
function addSetLink($setName){
return $_SERVER['PHP_SELF'].'?setType='.$setName;
return ModuleSet::buildArgLink(array("setType"=>$setName));
}
}
+27 -1
View File
@@ -65,13 +65,39 @@ class ModuleSet{
}
function getBackLink(){
$buff = '<div class="back_link_div">';
$buff = '<center>';
$buff .= '<div class="back_link_div">';
$buff .= '<a class="back_link" href="';
$buff .= $_SERVER['HTTP_REFERER'];
$buff .= '">';
$buff .= 'zur&uuml;ck';
$buff .= "</a>";
$buff .= "</div>";
$buff .= '</center>';
return $buff;
}
function addSetLink($setName){
return ModuleSet::buildArgLink(array("setType"=>$setName));
}
function buildArgLink($optArray){
$tempArg = $_GET;
foreach ($optArray as $key => $value){
$tempArg[$key] = $value;
}
$buff = $_SERVER['PHP_SELF'];
$i = 1;
foreach ($tempArg as $key => $value){
if($i){
$i--;
$buff .= '?'.$key.'='.$value;
} else {
$buff .= '&'.$key.'='.$value;
}
}
return $buff;
}
+2 -1
View File
@@ -1,5 +1,6 @@
<?
include_once("php_inc/config.inc.php");
include_once("php_inc/module_set.inc.php");
class Report{
@@ -120,7 +121,7 @@ class Report{
$buff = '<div class="report_link_div">';
$buff .= '<a href="';
$buff .= $_SERVER['PHP_SELF'].'?setType='.$rptArray[12]."&rptName=".$rptName;
$buff .= ModuleSet::buildArgLink(array("setType"=>$rptArray[12], "rptName"=>$rptName));
$buff .= '" class="report_link">';
$buff .= $rptArray[0];