70 lines
2.3 KiB
PHP
Executable File
70 lines
2.3 KiB
PHP
Executable File
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>Sternwarte Welzheim</title>
|
|
<!--[if IE 5]>
|
|
<link href="css/ie5.css" rel="stylesheet" type="text/css" />
|
|
<![endif]--><!--[if IE]>
|
|
<style type="text/css">
|
|
<link href="css/ie.css" rel="stylesheet" type="text/css" />
|
|
</style>
|
|
<![endif]-->
|
|
<link href="css/sternwarte1.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
|
|
<body class="thrColFixHdr">
|
|
|
|
<div id="container">
|
|
<div id="header"><img src="bilder/header1.jpg" width="960" height="150" alt="Sternwarte Welzheim"/><!-- end #header --></div>
|
|
<?php include 'navi.php'; ?>
|
|
|
|
<div id="sidebar2">
|
|
<?php include 'himmelerg.php'; ?>
|
|
<?php include 'fdatum.php'; ?>
|
|
</div>
|
|
|
|
|
|
<div id="mainContent">
|
|
<h1> Himmelsereignisse</h1>
|
|
<?php include 'config_stern.php';
|
|
|
|
$datum_heute=date("Ymd");
|
|
|
|
$sql_selh="SELECT id, datum, uhrzeit, min, beschreibung FROM himmelerg where datum >='$datum_heute' order by datum ASC LIMIT 20" ;
|
|
|
|
$resulth = mysqli_query($db,$sql_selh) OR die(mysqli_error($db));
|
|
if(mysqli_num_rows($resulth))
|
|
{
|
|
|
|
echo "<table>";
|
|
while($rowh = mysqli_fetch_assoc($resulth))
|
|
|
|
{ if ($rowh['min']!="") {$min="<sup>m</sup>";}
|
|
else{$min="";}
|
|
|
|
$datum = $rowh['datum'];
|
|
$datumf=preg_replace('#^(\d{4})(\d{2})(\d{2})$#', '\3.\2.\1', $datum);
|
|
|
|
// if(preg_match("([0-9]{4})([0-9]{1,2})([0-9]{1,2})", $rowh['datum'],$resh))
|
|
// { $datumf="$resh[3].$resh[2].$resh[1]"; }
|
|
|
|
|
|
echo "<tr valign='top'><td width='130'>".$datumf."</td><td width='100'>".$rowh['uhrzeit']."<sup>h</sup> ".$rowh['min'];
|
|
echo $min." (MEZ)</td><td>".$rowh['beschreibung']."</td></tr>";
|
|
}
|
|
echo "</table>";}
|
|
else {echo "Keine Himmelsereignisse in der Datenbank gefunden";}
|
|
|
|
?>
|
|
|
|
<a href="himmelserg_verg.php"><br />
|
|
Himmelsereignisse der vergangenen Wochen</a>
|
|
<!-- end #mainContent -->
|
|
</div>
|
|
<!-- Dieses clear-Element sollte direkt auf das #mainContent-div folgen, um das #container-div anzuweisen, alle untergeordneten Floats aufzunehmen. --><br class="clearfloat" />
|
|
|
|
<!-- end #container --></div>
|
|
</body>
|
|
</html>
|