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:
@@ -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ü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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user