'; ?> '.$testMatch.' is not valid.
'; die(); } $languageCode = $testMatch; $testMatch = NULL; Mapbender::session()->set("mb_lang",$languageCode); //set session var to languageCode $localeObj = new Mb_locale(Mapbender::session()->get("mb_lang")); } $admin = new administration(); $user = new User(); //echo $user->id."
"; //only logged in user can see their subscribed services $sql = "SELECT DISTINCT mb_wms_availability.fkey_wms_id FROM mb_wms_availability,mb_user_abo_ows WHERE mb_wms_availability.fkey_wms_id=mb_user_abo_ows.fkey_wms_id AND mb_user_abo_ows.fkey_mb_user_id=$1"; $res = db_prep_query($sql, array($user->id), array("i")); $cnt = 0; $wms = array(); while(db_fetch_row($res)){ $wms[$cnt] = db_result($res,$cnt,"fkey_wms_id"); $cnt++; } $status = array(); $upload_id = array(); for ($i=0; $i\n\t"; $str .= ""; $str .= ""; $str .= "";//Verfügbarkeit Dienstebeschreibung $str .= "";//Durchschnittliche Antwortzeit Beschreibung $str .= "";//Verfügbarkeit Kartenbild $str .= "";//Verfügbarkeit (2 Monate) $cnt = 0; foreach ($newArray as $k => $value) { $img = "stop.png"; $img_map = "nopicture.png"; if ($status[$k]==0) $img = "wait.png"; elseif ($status[$k]==1) $img = "go.png"; if ($image[$k]==1) $img_map = "picture.png"; if ($updated[$k] == "0" && $status[$k] == 0) $fill = "checked"; else $fill = "disabled"; if (fmod($cnt, 2) == 1) { $str .= "\n\t\t"; } else { $str .= "\n\t\t"; } $str .= "\n\t\t\t"; $str .= "\n\t\t\t";//Aufruf des Capabilities Dokument $str .= "\n\t\t\t"; $str .= "\n\t\t\t"; $str .= "\n\t\t\t"; //$str .= "\n\t\t\t"; $str .= "\n\t\t"; $cnt++; } $str .= "\n\t
"._mb("WebMapService").""._mb("Availability of Capabilities").""._mb("Average Response Time for GetCapabilities").""._mb("Availability of GetMap").""._mb("Availability (2 month)")."
"._mb("Service ID").": ".$wms_id[$k]."
".$admin->getWmsTitleByWmsId($wms_id[$k])."
" . $comment[$k] . "
".date("F j, Y, G:i:s", $upload_id[$k])."
"; if ($avg_response_time[$k] == NULL) { $str .= "n/a"; } else { if($avg_response_time[$k] == 0){ $str .= "< 1 s"; } else { $str .= $avg_response_time[$k] . " s"; } } $str .= ""; $str .= "";//Getesteter GetMap Aufruf $str .= "" . $percentage[$k] . " %  (" . $total[$k] . " "._mb('cycles').")
"; $str .= "\n\t\t\t
" . $percentage[$k] . " %  
"; $str .= ""; $val = $percentage[$k]; for ($i=0; $i<10; $i++) { if ($val>=10) { $str .= ""; $val-=10; } elseif($val>0){ $str .= ""; if (round($val) < 10) { $str .= ""; } $val=-1; } else { $str .= ""; } } $str .= "
\n\t
\n"; echo $str; ?>