{"id":1765,"date":"2018-11-12T19:42:54","date_gmt":"2018-11-12T18:42:54","guid":{"rendered":"https:\/\/ghb-hamburg.de\/handball\/?p=1765"},"modified":"2018-11-13T06:27:42","modified_gmt":"2018-11-13T05:27:42","slug":"1267-2","status":"publish","type":"post","link":"https:\/\/ghb-hamburg.de\/handball\/1267-2\/","title":{"rendered":""},"content":{"rendered":"<style>\nth, td {\n  border:1px solid #F2F2F2;\n  padding:2px 10px;\n}\n<\/style>\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&#038;lvTypeNext=team&#038;lvIDNext=414371&#8220;;<br \/>\n$url = &#8222;https:\/\/ghb.lima-city.de\/result.json&#8220;;<br \/>\n$jsonfile = file_get_contents($url);<br \/>\n$json = json_decode($jsonfile,true);<\/p>\n<p>echo &#8222;<\/p>\n<table>\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<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 \/>\n    if($heim !== false &#038;&#038; $data[&#8218;gHomeGoals&#8216;] > $data[&#8218;gGuestGoals&#8216;] )<br \/>\n    {<br \/>\n        echo &#8222;<\/p>\n<tr>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        if ($heim !== false)<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        if ($gast !== false)<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td style='color:green'>&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/tr>\n<p>&#8222;;<br \/>\n    }<\/p>\n<p>    \/\/Heim und verloren<br \/>\n    else if($heim !== false &#038;&#038; $data[&#8218;gHomeGoals&#8216;] < $data['gGuestGoals'] )\n    {\n        echo \"\n\n<tr>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        if ($heim !== false )<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        if ($gast !== false)<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td style='color:red'>&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/tr>\n<p>&#8222;;<br \/>\n    }<\/p>\n<p>    \/\/Ausw\u00e4rts und gewonnen<br \/>\n    else if($gast !== false &#038;&#038; $data[&#8218;gGuestGoals&#8216;] > $data[&#8218;gHomeGoals&#8216;] )<br \/>\n    {<br \/>\n        echo &#8222;<\/p>\n<tr>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n            if ($heim !== false ){<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n            }<br \/>\n            else<br \/>\n            {<br \/>\n                echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n            }<\/p>\n<p>        if ($gast !== false){<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td style='color:green'>&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/tr>\n<p>&#8222;;<br \/>\n    }<\/p>\n<p>    \/\/Ausw\u00e4rts und verloren<br \/>\n    else if($gast !== false &#038;&#038; $data[&#8218;gGuestGoals&#8216;] < $data['gHomeGoals'] ) \n    {\n        echo \"\n\n<tr>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        if ($heim !== false )<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        if ($gast !== false)<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td style='color:red'>&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/tr>\n<p>&#8222;;<br \/>\n    }<\/p>\n<p>    \/\/unentschieden<br \/>\n    else if($data[&#8218;gHomeGoals&#8216;] != &#8220; &#8220; &#038;&#038; $data[&#8218;gGuestGoals&#8216;] != &#8220; &#8220; &#038;&#038; $data[&#8218;gGuestGoals&#8216;] == $data[&#8218;gHomeGoals&#8216;] )<br \/>\n    {<br \/>\n        echo &#8222;<\/p>\n<tr>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        if ($heim !== false )<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        if ($gast !== false)<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td style='color:yellow'>&#8220; .$data[&#8218;gHomeGoals&#8216;].&#8220; : &#8222;.$data[&#8218;gGuestGoals&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/tr>\n<p>&#8222;;<br \/>\n    }<\/p>\n<p>    \/\/noch ausstehend<br \/>\n    else {<br \/>\n        echo &#8222;<\/p>\n<tr>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gDate&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gTime&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        if ($heim !== false )<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gHomeTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        if ($gast !== false)<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td><b>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/b><\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        else<br \/>\n        {<br \/>\n            echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGuestTeam&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        }<br \/>\n        echo &#8222;<\/p>\n<td>&#8220; .$data[&#8218;gGymnasiumName&#8216;]. &#8222;<\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/p>\n<td><\/td>\n<p>&#8222;;<br \/>\n        echo &#8222;<\/tr>\n<p>&#8222;;<br \/>\n    }<\/p>\n<p>}<br \/>\necho &#8222;<\/table>\n<p>&#8222;;[\/insert_php]\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] \/\/$URL = JSON Mannschaftsspielpl\u00f6ne von Handball4All \/\/$url = &#8222;https:\/\/h4a.it4sport.de\/spo\/spo-proxy_public.php?cmd=data&#038;lvTypeNext=team&#038;lvIDNext=414371&#8220;; $url = &#8222;https:\/\/ghb.lima-city.de\/result.json&#8220;; $jsonfile = file_get_contents($url); $json = json_decode($jsonfile,true); echo &#8222; Datum Uhrzeit Heim Gast Halle Ergebnis &#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":[51],"tags":[],"class_list":["post-1765","post","type-post","status-publish","format-standard","hentry","category-1-herren-spielplan"],"_links":{"self":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1765","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=1765"}],"version-history":[{"count":2,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1765\/revisions"}],"predecessor-version":[{"id":1767,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1765\/revisions\/1767"}],"wp:attachment":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/media?parent=1765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/categories?post=1765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/tags?post=1765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}