get("mb_lang"); $withCounts = true; if (defined("MAPBENDER_PATH") && MAPBENDER_PATH != '') { $mapbenderUrl = MAPBENDER_PATH; } else { $mapbenderUrl = "http://www.geoportal.rlp.de/mapbender"; } if (isset($sessionLang) && ($sessionLang!='')) { $e = new mb_notice("mod_showMetadata.php: language found in session: ".$sessionLang); $language = $sessionLang; $langCode = explode("_", $language); $langCode = $langCode[0]; $languageCode = $langCode; } if (isset($_REQUEST["registratingDepartments"]) & $_REQUEST["registratingDepartments"] != "") { //validate to csv integer list $testMatch = $_REQUEST["registratingDepartments"]; $pattern = '/^[\d,]*$/'; if (!preg_match($pattern,$testMatch)){ echo 'Parameter registratingDepartments is not valid.
'; die(); } $registratingDepartments = $testMatch; $testMatch = NULL; } if (isset($_REQUEST["withCounts"]) & $_REQUEST["withCounts"] != "") { //validate to csv integer list $testMatch = $_REQUEST["withCounts"]; //$pattern = '/^[\d,]*$/'; if (!($testMatch == "false" || $testMatch == "true")){ echo 'Parameter withCounts is not valid.
'; die(); } $withCounts = $testMatch; if ($withCounts == 'false') { $withCounts = false; } $testMatch = NULL; } //Array with translations: switch ($languageCode) { case "de": $translation['Detail'] = 'Detail'; $translation['Title'] = 'Titel'; $translation['Identifier'] = 'Identifikator'; $translation['Organization'] = 'Organisation'; $translation['INSPIRE Themes'] = 'INSPIRE Themen'; $translation['# of View Services'] = 'Zahl der Darstellungsdienste'; $translation['# of Download Services'] = 'Zahl der Downloaddienste'; $translation['wmslayergetmap'] = 'Download über WMS Aufrufe'; $translation['wmslayerdataurl'] = 'Download über direkten Link'; $translation['wfsrequest'] = 'Download über WFS 1.1.0'; $translation['downloadlink'] = 'Download über Link aus Metadatensatz'; $translation['inspireViewServices'] = 'INSPIRE Darstellungsdienste'; $translation['inspireDownloadServices'] = 'INSPIRE Downloaddienste'; break; case "en": $translation['Detail'] = 'Detail'; $translation['Title'] = 'Title'; $translation['Identifier'] = 'Identifier'; $translation['Organization'] = 'Organization'; $translation['INSPIRE Themes'] = 'INSPIRE Themen'; $translation['# of View Services'] = '# of View Services'; $translation['# of Download Services'] = '# of Download Services'; $translation['wmslayergetmap'] = 'Download über WMS Aufrufe'; $translation['wmslayerdataurl'] = 'Download über direkten Link'; $translation['downloadlink'] = 'Download über Link aus Metadatensatz'; $translation['wfsrequest'] = 'Download über WFS 1.1.0'; $translation['inspireViewServices'] = 'INSPIRE Darstellungsdienste'; $translation['inspireDownloadServices'] = 'INSPIRE Downloaddienste'; break; case "fr": $translation['Detail'] = 'Detail'; $translation['Title'] = 'Title'; $translation['Identifier'] = 'Identifier'; $translation['Organization'] = 'Organization'; $translation['INSPIRE Themes'] = 'INSPIRE Themen'; $translation['# of View Services'] = '# of View Services'; $translation['# of Download Services'] = '# of Download Services'; $translation['wmslayergetmap'] = 'Download über WMS Aufrufe'; $translation['wmslayerdataurl'] = 'Download über direkten Link'; $translation['downloadlink'] = 'Download über Link aus Metadatensatz'; $translation['wfsrequest'] = 'Download über WFS 1.1.0'; $translation['inspireViewServices'] = 'INSPIRE Darstellungsdienste'; $translation['inspireDownloadServices'] = 'INSPIRE Downloaddienste'; break; default: #to english $translation['Detail'] = 'Detail'; $translation['Title'] = 'Title'; $translation['Identifier'] = 'Identifier'; $translation['Organization'] = 'Organization'; $translation['INSPIRE Themes'] = 'INSPIRE Themes'; $translation['# of View Services'] = '# of View Services'; $translation['# of Download Services'] = '# of Download Services'; $translation['wmslayergetmap'] = 'Download über WMS Aufrufe'; $translation['wmslayerdataurl'] = 'Download über direkten Link'; $translation['wfsrequest'] = 'Download über WFS 1.1.0'; $translation['downloadlink'] = 'Download über Link aus Metadatensatz'; $translation['inspireViewServices'] = 'INSPIRE Darstellungsdienste'; $translation['inspireDownloadServices'] = 'INSPIRE Downloaddienste'; } //Do html output $html = ''; $html .= ''; $metadataStr .= '' . ''.$translation['header'].'' . ''. '' . ''. ''. ''. ''. ''. '' ; $html .= $metadataStr; //define the javascripts to include $html .= ''; $html .= ''; //$html .= ''; //$html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; //$html .= ''; //TODO: some js for ui-dialog $html .= '"; $html .= ""; $html .= ""; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; if ($withCounts) { $html .= " "; $html .= " "; } $html .= " "; $html .= " "; $html .= " "; /*$html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " "; $html .= " ";*/ $html .= " "; $html .= "
".$translation['Detail']."".$translation['Title']."".$translation['Identifier']."".$translation['Organization']."".$translation['INSPIRE Themes']."".$translation['# of View Services']."".$translation['# of Download Services']."
Row 1 Data 1Row 1 Data 2etcetcetc
Row 2 Data 1Row 2 Data 2etcetcetc
"; //$html.="eof"; $html .= ""; echo $html; ?>