{"id":1319,"date":"2017-09-30T12:37:31","date_gmt":"2017-09-30T10:37:31","guid":{"rendered":"http:\/\/handball.ghb-hamburg.de\/?p=1319"},"modified":"2018-11-05T19:56:22","modified_gmt":"2018-11-05T18:56:22","slug":"1319","status":"publish","type":"post","link":"https:\/\/ghb-hamburg.de\/handball\/1319\/","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=471237&#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=471237&#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 $heim = strpos($data[&#8218;gHomeTeam&#8216;],&#8220;TV<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60],"tags":[],"class_list":["post-1319","post","type-post","status-publish","format-standard","hentry","category-maennlich-d-spielplan"],"_links":{"self":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1319","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=1319"}],"version-history":[{"count":4,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1319\/revisions"}],"predecessor-version":[{"id":1752,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/posts\/1319\/revisions\/1752"}],"wp:attachment":[{"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/media?parent=1319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/categories?post=1319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghb-hamburg.de\/handball\/wp-json\/wp\/v2\/tags?post=1319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}