This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Hilfe - Login - Logout#Revorix - Nopaste - Übersicht - Neuer Post - Statistik

nbös, erstellt von --- Fri 27th Mar 14:48

001 
002 
003 
004 
005 
006 
007 
008 
009 
010 
011 
012 
013 
014 
015 
016 
017 
018 
019 
020 
021 
022 
023 
024 
025 
026 
027 
028 
029 
030 
031 
032 
033 
034 
035 
036 
037 
038 
039 
040 
041 
042 
043 
044 
045 
046 
047 
048 
049 
050 
051 
052 
053 
054 
055 
056 
057 
058 
059 
060 
061 
062 
063 
064 
065 
066 
067 
068 
069 
070 
071 
072 
073 
074 
075 
076 
077 
078 
079 
080 
081 
082 
083 
084 
085 
086 
087 
088 
089 
090 
091 
092 
093 
094 
095 
096 
097 
098 
099 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
130 
131 
132 
133 
134 
135 
136 
137 
138 
139 
140 
141 
142 
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153 
154 
155 
156 
157 
158 
159 
160 
161 
162 
163 
164 
165 
166 
167 
168 
169 
170 
171 
172 
173 
174 
175 
176 
177 
178 
179 
180 
181 
182 
183 
184 
185 
186 
187 
188 
189 
190 
191 
192 
193 
194 
195 
196 
197 
198 
199 
200 
201 
202 
203 
204 
205 
206 
207 
208 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
	<!-- no cache headers -->
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="-1" />
	<meta http-equiv="Cache-Control" content="no-cache" />
	<!-- end no cache headers -->
	<title>Kreise</title>

    <script type="text/javascript" src="BDCCCircle.js"></script>

	<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA" type="text/javascript"></script>

</head>
<body onunload="GUnload()">

						<div id="map" style="width: 600px; height: 550px; float:left;"></div>
						<div id="sidebar" style="width: 250px;float: left;margin: 0 0 0 20px;">
                        <? 
							$dbh = ibase_connect('SYSDBA','sqsq','ISO8859_1', '100', '1');
							// Linux $host = '192.100.100.10:/database/employee.fdb'; 
							$sth = ibase_query("
												SELECT
													A_NUMBER,
													A_NAME, 
													SUM(RP_ANZAHL)
												FROM
													STAMM
												JOIN
													RECHNUNG ON R_TSKNR = ST_TSKNR
												JOIN
													RECHPOSTEN ON R_ID = RP_R_ID
												JOIN
													ARTIKEL ON RP_A_ID = A_ID
												WHERE
													R_FR_ID = 7 AND st_kreis = 678 AND ST_GEMEINDE = 128
												GROUP BY
													A_NUMBER, A_NAME
											   
											   ");
							
							while ($row = ibase_fetch_row($sth)) {
								//print $row[0]."n";
								//ibase_blob_echo($row[1]);
								echo $row[0]." ";
								echo $row[1].": ";
								echo $row[2];
								echo $row[3];
								echo "<br />";
							}
							ibase_free_result($sth);
							
							$sth = ibase_query("SELECT DISTINCT ST_PLZ FROM STAMM WHERE ST_GEMEINDE = 128 AND st_kreis = 678");
							$row = ibase_fetch_row($sth);
							echo "PLZ: ".$PLZ = $row[0];	
							
							
							
							
							ibase_close($dbh);
						?>

                        </div>
						<br style="clear: both" />

			<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA" type="text/javascript"></script>

				<script type="text/javascript">
				if (GBrowserIsCompatible()) {
					var sidebar_html = "";

					var gmarkers = [];
					var htmls = [];
					var i = 0;
					var map;
					var newBounds;

					function drawCircle(point, radius, color) {
						var cColor = color;
						var cWidth = 5;
						var Cradius = radius;
						var d2r = Math.PI/180;
						var r2d = 180/Math.PI;
						var Clat = (Cradius/6377.83027)*r2d;
						var Clng = Clat/Math.cos(point.lat()*d2r);
						var Cpoints = [];
						for (var i=0; i < 33; i++) {
							var theta = Math.PI * (i/16);
							var CPlng = point.lng() + (Clng * Math.cos(theta));
							var CPlat = point.lat() + (Clat * Math.sin(theta));
							var P = new GLatLng(CPlat,CPlng);
							newBounds.extend(P);
							Cpoints.push(P);
						}
						map.addOverlay(new GPolyline(Cpoints,cColor,cWidth));
					}

					// A function to create the marker with a tooltip
					function createMarker(point,name,color,html) {
						html = '<div style="white-space:nowrap;">' + html + '</div>';

						// === marker with tooltip ===
						var marker = new GMarker(point, pushpin);
						// ===========================

						GEvent.addListener(marker, "click", function() {
							marker.openInfoWindowHtml(html);
						}
					);
					map.addOverlay(marker);

					gmarkers[i] = marker;
					htmls[i] = html;

					sidebar_html += '<span style="background: '+ color + '">&nbsp;</span> <a href="javascript:detailsAnzeigen(' + i + ')">' + name + '</a><br>';
					i++;

				}

				function detailsAnzeigen(i) {
					gmarkers[i].openInfoWindowHtml(htmls[i]);
				}
				function reinZoomen(lat,lng) {
					map.setCenter(new GLatLng(lat,lng), 8);
				}




				// create the map
				var map = new GMap2(document.getElementById("map"));
				map.addControl(new GLargeMapControl());
				map.addControl(new GMapTypeControl());
				map.setCenter(new GLatLng(49.000, 10.500), 7);
				var baseIcon = new GIcon();
				baseIcon.iconSize=new GSize(32,32);
				baseIcon.shadowSize=new GSize(56,32);
				baseIcon.iconAnchor=new GPoint(16,16);
				baseIcon.infoWindowAnchor=new GPoint(16,0);

				var pushpin = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal4/icon15.png", null, "http://maps.google.com/mapfiles/kml/pal4/icon15s.png");

				newBounds= new GLatLngBounds();
                <?
                $mysqlhost="localhost"; // MySQL-Host angeben
                $mysqluser="root"; // MySQL-User angeben
                $mysqlpwd=""; // Passwort angeben

                $connection=mysql_connect($mysqlhost, $mysqluser, $mysqlpwd) or die ("Verbindungsversuch fehlgeschlagen");
                $mysqldb="test"; // Gewuenschte Datenbank angeben

                mysql_select_db($mysqldb, $connection) or die("Konnte die Datenbank nicht waehlen.");

             
				
                 //$ORT = $row[0];
				 $RAD = 10;
                        $sql = 'SELECT
                              coo.lon,
                              coo.lat
                          FROM geodb_coordinates AS coo
                          INNER JOIN geodb_textdata AS textdata
                          ON textdata.loc_id = coo.loc_id
                          WHERE
                              textdata.text_val = "'.mysql_real_escape_string($PLZ).'"
                          AND textdata.text_type = "500300000"
                          ';    
                        /*$sql = 'SELECT
                              coo.lon,
                              coo.lat
                          FROM geodb_coordinates AS coo
                          INNER JOIN geodb_textdata AS textdata
                          ON textdata.loc_id = coo.loc_id
                          WHERE
                              textdata.text_val = "' . mysql_real_escape_string($ORT) . '"
                          AND textdata.text_type = "500100000"
                          ';*/
                  $re = mysql_query($sql);
                  //if (mysql_num_rows($re) != 1) {
                  //    die($PLZ . ' wurde nicht gefunden.');
                  //}
                  list($lon, $lat) = mysql_fetch_row($re);

                  ?>



                              var lat = parseFloat(<? echo $lat; ?>);
                              var lng = parseFloat(<? echo $lon; ?>);
  							  var point = new GLatLng(lat,lng);
							  var radius = <? echo $RAD; ?>;
                              var color = "#FF0000";

  							  var circle = drawCircle(point, radius, color);


            }

			else {
				alert("Sorry, the Google Maps API is not compatible with this browser");
			}

            draw

			</script>
</body>
</html>


Eine ergänzung zu diesem Text posten
An euch RX-Zocker da draußen, spammt die anderen nicht voll sondern postet einfach einen Link ;)
Valid XHTML 1.0! Valid CSS!
Sourcecode entliehen von pastebin.com -- Design und Funktionalitätserweiterungen vorgenommen von [The 8472]

Wenn sie diese Zeile sehen können benutzen sie vermutlich den Inernet Explorer oder einen Browser der nicht kompatibel zu den aktuellen Webstandards ist. Dies kann zu Darstellungsfehlern führen
Get Firefox!
Buggy IE