[Mapbender-commits] r3461 - in branches/print_dev/http: css print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 15 11:48:25 EST 2009


Author: mschulz
Date: 2009-01-15 11:48:25 -0500 (Thu, 15 Jan 2009)
New Revision: 3461

Added:
   branches/print_dev/http/css/print_div.css
Modified:
   branches/print_dev/http/print/mod_printPDF_div.php
   branches/print_dev/http/print/testConfigTemplate.json
Log:
added gui module textarea control and css

Added: branches/print_dev/http/css/print_div.css
===================================================================
--- branches/print_dev/http/css/print_div.css	                        (rev 0)
+++ branches/print_dev/http/css/print_div.css	2009-01-15 16:48:25 UTC (rev 3461)
@@ -0,0 +1,23 @@
+ at CHARSET "ISO-8859-1";
+
+#printPDF label,input,select,textarea {
+	display: block;
+	width: 120px;
+	float: left;
+	margin-bottom: 2px;
+	margin-top: 2px;
+}
+
+#printPDF select {
+	width: 135px;
+}
+
+#printPDF label {
+	text-align: left;
+	width: 45px;
+	padding-right: 5px;
+}
+
+#printPDF br {
+	clear: left;
+}
\ No newline at end of file

Modified: branches/print_dev/http/print/mod_printPDF_div.php
===================================================================
--- branches/print_dev/http/print/mod_printPDF_div.php	2009-01-14 21:44:36 UTC (rev 3460)
+++ branches/print_dev/http/print/mod_printPDF_div.php	2009-01-15 16:48:25 UTC (rev 3461)
@@ -44,20 +44,25 @@
 	for (var item in json.controls) {
 		var element = json.controls[item];
 		var element_id = myId + "_" + element.id;
-		var str = '<label class="print_label" for="'+element_id+'">'+element.label+'</label>\n';
+		var str = '<div class="print_option">\n';	
+		str += '<label class="print_label" for="'+element_id+'">'+element.label+'</label>\n';
 		switch (element.type) {
 			case "text":
-				str += '<input class="" type="'+element.type+'" id="'+element_id+'" size="'+element.size+'">\n';
+				str += '<input type="'+element.type+'" id="'+element_id+'" size="'+element.size+'"><br>\n';
 				break;
+			case "textarea":
+				str += '<textarea id="'+element_id+'" size="'+element.size+'"></textarea><br>\n';
+				break;				
 			case "select":
-				str += '<select class="" id="'+element_id+'" size="'+element.size+'">\n';
+				str += '<select id="'+element_id+'" size="1" width="'+element.size+'">\n';
 				for (var option_index in element.options) {
 					option = element.options[option_index];
 					str += '<option value="'+option.value+'">'+option.label+'</option>\n';
 				}
-				str += '</select>\n';
+				str += '</select><br>\n';
 				break;
 		}
+		str += '</div>\n';
 		$("#"+myId).append(str);
 	}
 }
\ No newline at end of file

Modified: branches/print_dev/http/print/testConfigTemplate.json
===================================================================
--- branches/print_dev/http/print/testConfigTemplate.json	2009-01-14 21:44:36 UTC (rev 3460)
+++ branches/print_dev/http/print/testConfigTemplate.json	2009-01-15 16:48:25 UTC (rev 3461)
@@ -26,7 +26,13 @@
     			"label" : "label3"
     			}
     		]
-    	}    		
+    	},
+    	{
+    		"id" : "comment",
+    		"label" : "Kommentar",
+    		"type" : "textarea",
+    		"size" : 5
+    	},    	    		
     ],
     "pages" : [
     	{



More information about the Mapbender_commits mailing list