From 1812e7b74e6040e10055fb1196795384d2f60689 Mon Sep 17 00:00:00 2001 From: Goeran Heinemann Date: Tue, 10 Mar 2020 22:00:23 +0100 Subject: [PATCH] links zu detailseiten --- html/index.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index b376692..bc7e65e 100644 --- a/html/index.php +++ b/html/index.php @@ -13,6 +13,11 @@ query($sql)->fetchAll(PDO::FETCH_ASSOC)[0]; +echo '

Insgesammt hat das Coronavirus '.$data['total'].' Menschen infiziert. Von dieser Zahl sind noch '.$data['active'].' Fälle offen. Von den restlichen sind '.$data['cured'].' geheilt und '.$data['dead'].' gestorben. Das entspricht einer theorethischen leathalität von '.number_format(intval($data['dead'])/intval($data['cured'])*100, 4).'%, wenn man die Dunkelziffer der Infektionen ausser acht lässt.

'; + //grafik $sql = "SELECT scans.id, place, amount, time FROM `data` inner join scans on scans.id=data.scan WHERE place like 'Germany' group by amount order by time asc "; $stmt = $pdo->query($sql); @@ -114,7 +119,7 @@ echo ''; echo ''; $i = 1; foreach ($pdo->query($sql) as $row){ - echo ''; + echo ''; $i++; } echo '
PlatzLandkumulative Fallzahl
'.$i.''.str_replace("D-", "", $row['place']).''.$row['amount'].'
'.$i.''.str_replace("D-", "", $row['place']).''.$row['amount'].'
'; @@ -218,7 +223,7 @@ echo ''; echo ''; $i = 1; foreach ($pdo->query($sql) as $row){ - echo ''; + echo ''; $i++; } echo '
PlatzLandAktive Fällekumulative FallzahlgeheilteTodesfälle
'.$i.''.$row['place'].''.$row['active'].''.$row['amount'].''.$row['cured'].''.$row['deaths'].'
'.$i.''.$row['place'].''.$row['active'].''.$row['amount'].''.$row['cured'].''.$row['deaths'].'
';