First Commit
This commit is contained in:
147
html/sternwarte/himmelserg_verg.php
Executable file
147
html/sternwarte/himmelserg_verg.php
Executable file
@@ -0,0 +1,147 @@
|
||||
<!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
|
||||
|
||||
|
||||
|
||||
$datum_heute=date("Ymd");
|
||||
|
||||
|
||||
|
||||
$sql_selh="SELECT id, datum, uhrzeit, min, beschreibung FROM himmelerg where datum <='$datum_heute' order by datum DESC LIMIT 30" ;
|
||||
|
||||
echo "<table>";
|
||||
|
||||
|
||||
|
||||
if ($ergebnis = mysqli_query($db, $sql_selh))
|
||||
|
||||
{
|
||||
|
||||
while ($zeile = mysqli_fetch_object($ergebnis)) {
|
||||
|
||||
$datum=$zeile->datum;
|
||||
|
||||
$dat=preg_replace('#^(\d{4})(\d{2})(\d{2})$#', '\3.\2.\1', $datum);
|
||||
|
||||
if ($zeile->min!="") {$min="<sup>m</sup>";}
|
||||
|
||||
else{$min="";}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<tr valign='top'><td width='130'>".$dat."</td><td width='100'>". htmlspecialchars($zeile->uhrzeit)."<sup>h</sup> ".htmlspecialchars($zeile->min);
|
||||
|
||||
// echo $min."</td><td>".html_entity_decode($zeile->beschreibung)."</td></tr>";
|
||||
echo $min." (MEZ)</td><td>".$zeile->beschreibung."</td></tr>";
|
||||
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
|
||||
}
|
||||
|
||||
else {echo "Keine Himmelsereignisse in der Datenbank gefunden";}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<a href="himmelserg.php"><br />
|
||||
|
||||
Himmelsereignisse in den nächsten 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>
|
||||
|
||||
Reference in New Issue
Block a user