Location: PHPKode > projects > AppForMap > appformap/includes/digi_dialog.php
<? 
global $languageText;
global $postGisQueryEditGeom;
$tableColor="buttonface";
echo "<table width=100% cellspacing=3 cellpadding=3 border=0><tr class='layout-table'><td>$languageText[table]</td><td><select style='font-family: arial, helvetica, sans-serif;font-size: 10;' name='pg_digi_layer' onChange='update();'>";
$query = "select * from geometry_columns";
@ $result = pg_exec($this -> connect(), $query);
@ $num_results = pg_numrows($result);
for ($i = 0; $i <= $num_results; $i ++)
{
	@ $row = pg_fetch_array($result);
	//if($postGisQueryEditGeom[strtoupper($row[f_table_name])]!="")
	{
		echo "<option value='$row[f_table_name]'";
		if ($row[f_table_name] == $this -> pg_digi_layer)
		echo " SELECTED";
		if ($postGisQueryName[strtoupper($row[f_table_name])] != "")
		echo ">".$postGisQueryName[strtoupper($row[f_table_name])]." (".$this->getGeometryColumns($row[f_table_name],"type").")<br>";
		else
		echo ">".$row[f_table_name]." (".$this->getGeometryColumns($row[f_table_name],"type").")<br>";
	}
}
echo "</select></td></tr>";
echo "<tr class='layout-table'><td>$languageText[snapTable]</td><td><select style='font-family: arial, helvetica, sans-serif;font-size: 10;' name='pg_snap_layer' onChange='update();'>";
$query = "select * from geometry_columns";
@ $result = pg_exec($this -> connect(), $query);
@ $num_results = pg_numrows($result);
for ($i = 0; $i <= $num_results; $i ++)
{
	@ $row = pg_fetch_array($result);
	echo "<option value='$row[f_table_name]'";
	if ($row[f_table_name] == $this -> pg_snap_layer)
	echo " SELECTED";
	if ($postGisQueryName[strtoupper($row[f_table_name])] != "")
	echo ">".$postGisQueryName[strtoupper($row[f_table_name])]." (".$this->getGeometryColumns($row[f_table_name],"type").")<br>";
	else
	echo ">".$row[f_table_name]." (".$this->getGeometryColumns($row[f_table_name],"type").")<br>";

}
echo "</select></td></tr>";
echo "<tr class='layout-table'><td>$languageText[snapTolerance]</td><td><input style='font-family: arial, helvetica, sans-serif;font-size: 10;' type='text' name='snapTolerance' value='".$this -> pg_digi_snapTolerance."'></td></tr></table>";
echo "<table width=100% cellspacing=3 cellpadding=3 border=0><tr class='layout-table'><td><input type='radio' name='operation' value='digitize'";
if ($this -> operation == 'digitize')
echo " checked";
echo ">$languageText[editObject]";
echo "<input type='radio' name='operation' value='edit'";
if ($this -> operation == 'edit')
echo " checked";

echo ">$languageText[selectObject]";
echo "<input name='deleteButton' type='button' value='$languageText[deleteObject]'></td></tr>";
echo "<tr class='layout-table'><td><a style='color: #000000;' href='javascript:submitDigi();'>$languageText[submitObject]</a>&nbsp;&nbsp;";
echo "$languageText[alwaysDraw]<input type='checkbox' name='alwaysDraw' checked></td></tr>";
echo $languageText[digiHelpText];
echo "</table>";
?>


Return current item: AppForMap