{"id":1321,"date":"2017-09-30T12:37:43","date_gmt":"2017-09-30T10:37:43","guid":{"rendered":"http:\/\/handball.ghb-hamburg.de\/?p=1321"},"modified":"2021-10-25T18:01:00","modified_gmt":"2021-10-25T16:01:00","slug":"1321","status":"publish","type":"post","link":"https:\/\/ghb-hamburg.de\/handball\/1321\/","title":{"rendered":""},"content":{"rendered":"<p>th, td {<br \/>\n  border:1px solid #F2F2F2;<br \/>\n  padding:2px 10px;<br \/>\n}<\/p>\n[insert_php]\n\/\/$URL = JSON Mannschaftsspielpl\u00f6ne von Handball4All<br \/>\n$url = &#8222;https:\/\/h4a.it4sport.de\/spo\/spo-proxy_public.php?cmd=data&amp;lvTypeNext=team&amp;lvIDNext=<span aria-labelledby=\"value\"><span class=\"objectBox objectBox-string\">752937<\/span><\/span>&#8222;;<br \/>\n$jsonfile = file_get_contents($url);<br \/>\n$json = json_decode($jsonfile,true);<\/p>\n<p>echo &#8220;<\/p>\n<p>&#8222;;<\/p>\n<p>foreach ($json[&#8218;0&#8216;][dataList] as $data) {<\/p>\n<p>\/\/Alle m\u00f6glichen Mannschaften von TV Billstedt suchen<br \/>\n$heim = strpos($data[&#8218;gHomeTeam&#8216;],&#8220;TV Billstedt&#8220;);<br \/>\n$gast = strpos($data[&#8218;gGuestTeam&#8216;],&#8220;TV Billstedt&#8220;);<\/p>\n<p>\/\/Heim und gewonnen<br \/>\nif($heim !== false &amp;&amp; $data[&#8218;gHomeGoals&#8216;] &gt; $data[&#8218;gGuestGoals&#8216;] )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\nif ($heim !== false)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nif ($gast !== false)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>\/\/Heim und verloren<br \/>\nelse if($heim !== false &amp;&amp; $data[&#8218;gHomeGoals&#8216;] &lt; $data[&#8218;gGuestGoals&#8216;] ) { echo &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\nif ($heim !== false )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nif ($gast !== false)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>\/\/Ausw\u00e4rts und gewonnen<br \/>\nelse if($gast !== false &amp;&amp; $data[&#8218;gGuestGoals&#8216;] &gt; $data[&#8218;gHomeGoals&#8216;] )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\nif ($heim !== false ){<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>if ($gast !== false){<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>\/\/Ausw\u00e4rts und verloren<br \/>\nelse if($gast !== false &amp;&amp; $data[&#8218;gGuestGoals&#8216;] &lt; $data[&#8218;gHomeGoals&#8216;] ) { echo &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\nif ($heim !== false )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nif ($gast !== false)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>\/\/unentschieden<br \/>\nelse if($data[&#8218;gHomeGoals&#8216;] != &#8220; &#8220; &amp;&amp; $data[&#8218;gGuestGoals&#8216;] != &#8220; &#8220; &amp;&amp; $data[&#8218;gGuestGoals&#8216;] == $data[&#8218;gHomeGoals&#8216;] )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\nif ($heim !== false )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nif ($gast !== false)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>\/\/noch ausstehend<br \/>\nelse {<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\nif ($heim !== false )<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nif ($gast !== false)<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\nelse<br \/>\n{<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\necho &#8220;<\/p>\n<p>&#8222;;<br \/>\n}<\/p>\n<p>}<br \/>\necho &#8220;<\/p>\n<table>\n<tbody>\n<tr>\n<th>Datum<\/th>\n<th>Uhrzeit<\/th>\n<th>Heim<\/th>\n<th>Gast<\/th>\n<th>Halle<\/th>\n<th>Ergebnis<\/th>\n<\/tr>\n<tr>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<td style=\"color: green\">&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<\/tr>\n<tr>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<td style=\"color: red\">&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<\/tr>\n<tr>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<td style=\"color: green\">&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<\/tr>\n<tr>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<td style=\"color: red\">&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<\/tr>\n<tr>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<td style=\"color: yellow\">&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<\/tr>\n<tr>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#8222;;[\/insert_php]\n","protected":false},"excerpt":{"rendered":"<p>th, td { border:1px solid #F2F2F2; padding:2px 10px; } [insert_php] \/\/$URL = JSON Mannschaftsspielpl\u00f6ne von Handball4All $url = &#8222;https:\/\/h4a.it4sport.de\/spo\/spo-proxy_public.php?cmd=data&amp;lvTypeNext=team&amp;lvIDNext=752937&#8222;; $jsonfile = file_get_contents($url); $json = json_decode($jsonfile,true); echo &#8220; &#8222;; foreach ($json[&#8218;0&#8216;][dataList] as $data) { \/\/Alle m\u00f6glichen Mannschaften von TV Billstedt suchen<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[61],"tags":[],"class_list":["post-1321","post","type-post","status-publish","format-standard","hentry","category-maennlich-e-spielplan"],"_links":{"self":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/comments?post=1321"}],"version-history":[{"count":4,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1321\/revisions"}],"predecessor-version":[{"id":2500,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1321\/revisions\/2500"}],"wp:attachment":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/media?parent=1321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/categories?post=1321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/tags?post=1321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}