[fusion-commits] r1952 - trunk/widgets/Redline
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Oct 26 11:48:19 EDT 2009
Author: chrisclaydon
Date: 2009-10-26 11:48:18 -0400 (Mon, 26 Oct 2009)
New Revision: 1952
Modified:
trunk/widgets/Redline/Redline.css
trunk/widgets/Redline/Redline.php
Log:
Fixes #286 - Arrange draw elements vertically instead of horizontally
Modified: trunk/widgets/Redline/Redline.css
===================================================================
--- trunk/widgets/Redline/Redline.css 2009-10-26 05:21:43 UTC (rev 1951)
+++ trunk/widgets/Redline/Redline.css 2009-10-26 15:48:18 UTC (rev 1952)
@@ -16,6 +16,7 @@
#RedlineWidget td,
#RedlineWidget th {
text-align: left;
+ vertical-align: text-top;
font-size: 12px;
padding: 2px 10px;
margin-bottom: 30px;
@@ -24,6 +25,7 @@
#RedlineWidget th {
font-weight: bold;
+ vertical-align: text-top;
}
#RedlineWidgetFeatureList {
Modified: trunk/widgets/Redline/Redline.php
===================================================================
--- trunk/widgets/Redline/Redline.php 2009-10-26 05:21:43 UTC (rev 1951)
+++ trunk/widgets/Redline/Redline.php 2009-10-26 15:48:18 UTC (rev 1952)
@@ -41,8 +41,8 @@
$fileUpload = true;
$target_path = tempnam(sys_get_temp_dir(), preg_replace("/\.[^\.]+$/", "", basename( $_FILES['uploadedfile']['name'])).'_');
-
- if (file_exists($target_path)) {
+
+ if (file_exists($target_path)) {
unlink($target_path);
}
$target_path = $target_path.'.gml';
@@ -77,13 +77,13 @@
document.body.appendChild(div);
<? } ?>
<? if (isset($noFile)) { echo "alert('Please select a file.');"; } ?>
-
+
}
</script>
<h1>Digitizing Options</h1>
<table id="RedlineWidgetOptions" borders="1">
-
+
<tr>
<th>Select Layer: </th>
<td>
@@ -102,11 +102,11 @@
<th>Draw:</th>
<td>
<input id="RedlineWidgetPointRadio" type="radio" name="RedlineWidgetDrawRadio"/>
- <label for="RedlineWidgetPointeRadio">Point</label>
+ <label for="RedlineWidgetPointeRadio">Point</label><br/>
<input id="RedlineWidgetLineRadio" type="radio" name="RedlineWidgetDrawRadio"/>
- <label for="RedlineWidgetLineRadio">Line</label>
+ <label for="RedlineWidgetLineRadio">Line</label><br/>
<input id="RedlineWidgetRectangleRadio" type="radio" name="RedlineWidgetDrawRadio"/>
- <label for="RedlineWidgetRectangleRadio">Rectangle</label>
+ <label for="RedlineWidgetRectangleRadio">Rectangle</label><br/>
<input id="RedlineWidgetPolygonRadio" type="radio" name="RedlineWidgetDrawRadio"/>
<label for="RedlineWidgetPolygonRadio">Polygon</label>
</td>
@@ -149,13 +149,13 @@
</td>
</tr>
</table>
-
+
</body>
</html>
<?php
-
+
function returnFile($filename) {
header("Content-type: text/xml");
More information about the fusion-commits
mailing list