Location: PHPKode > projects > AppForMap > appformap/includes/info_dialog.php
<?php
if ($map_x && $tool == 'info' && $infoFormat == 'text/plain')
{
	$dump=$dump."Service: ";
	$dump=$dump."<i>".$controlObject -> queryServiceTitle."</i><br>";
	$dump=$dump."Layer: ";
	$dump=$dump."<i>".$controlObject -> queryLayerTitle."</i></br>";
	//echo "The result of the query:<br><br>";
	$dump=$dump."<textarea cols=51 rows=7>";
	$dump=$dump.$controlObject -> getinfo($infoFormat);
	$dump=$dump."</textarea>";
	$showInfoWindowJS="<script>document.getElementById('info_window').style.display = 'inline';</script>";
}
if ($map_x && $tool == 'info' && $infoFormat == 'gml')
{
	$dump=$dump.$controlObject -> parse($controlObject -> getinfo($infoFormat));
}
if ($pointArrayQuery != "" && $tool == 'postgisquery')
{
	if ($featurequery == true)
	$type = "FEATURE";
	else
	$type = "POSTGIS";
	for ($i = 0; $i < $pg_query_layer_count; $i ++)
	{
		$showInfoWindowJS="<script>document.getElementById('info_window').style.display = 'inline';</script>";
		$temp = "pg_query_layer_$i";
		if ($$temp != "")
		{   $typeName[$i]=$$temp;//for the wfs getfeature request
		$fields='*';
		$dump=$dump.$postgisObject -> queryDump($pg_select_layer, $controlObject -> convertpointarray($pointArrayQuery), $$temp, $fields, $type,'');
		}
	}
	if ($wfsObject)
	for ($i = 0; $i <= $controlObject->wfsCount; $i ++)
	{
		$wfsObject[$i] -> setFilter($controlObject -> convertpointarray($pointArrayQuery));
		$wfsOutput=$wfsObject[$i]->getFeatures();
		$wfsObject[$i]->renderFeatures($wfsOutput);
		$dump.=$wfsObject[$i]->parserGml($wfsOutput);
	}
}
if ($pointArrayEdit != "" && $tool == 'digitize')
{
	$type = "EDIT";

	if ($pg_digi_layer != "")
	{
		$dump=$dump.$postgisObject -> queryDump('', $controlObject -> convertpointarray($pointArrayEdit), $pg_digi_layer, '*', $type,'');
		
	}
}
//if ($dump) $dump="<div class='postgis' style='cursor:pointer' onclick=\"document.getElementById('info_window').style.display='none'\">".$languageText[close]."</div>".$dump;
?>
Return current item: AppForMap