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
+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;
}