This commit is contained in:
mcguirepr89
2022-02-23 22:18:35 -05:00
parent 066b9c1c34
commit cf0a3436f7
9 changed files with 59 additions and 423 deletions
+7 -33
View File
@@ -21,42 +21,16 @@ $totalcount = $result1->fetchArray(SQLITE3_ASSOC);
?>
<head>
<link rel="stylesheet" href="style.css">
<style>
input {
width:auto;
}
center {
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}
body {
background-color: rgb(119, 196, 135);
}
button,input {
font-size: medium;
}
table,th,td {
background-color: rgb(219, 255, 235);
}
table {
width:30%;
}
hr {
border: 1px solid green;
width:80%;
}
</style>
</head>
<body>
<form style="margin-left: -150px;text-align:center;" action="" name="submit" method="POST">
<form action="" method="POST">
<input type="date" name="date" value="<?php echo $theDate;?>">
<button type="submit" class="block">Submit Date</button>
<button type="submit" name="view" value="History">Submit Date</button>
</form>
<div style="margin-left: -150px;">
<div>
<table>
<tr>
<th>Total Detections For The Day</th>
@@ -67,14 +41,14 @@ hr {
<?php
if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
echo "<img src=\"/Charts/$chart?nocache=time()\" style=\"height:auto;width: 100%;padding: 5px;margin-left: auto;margin-right: auto;display: block;\">";
echo "<img src=\"/Charts/$chart?nocache=time()\" >";
} else {
echo "<p style=\"text-align:center;margin-left:-150px;\">No Charts for $theDate</p>";
echo "<p>No Charts for $theDate</p>";
}
echo "<hr>";
if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart2)) {
echo "<img src=\"/Charts/$chart2?nocache=time()\" style=\"height:auto;width: 100%;padding: 5px;margin-left: auto;margin-right: auto;display: block;\">";
echo "<img src=\"/Charts/$chart2?nocache=time()\">";
} else {
echo "<p style=\"text-align:center;margin-left:-150px;\">No Charts For $theDate</p>";
echo "<p>No Charts For $theDate</p>";
}?>
</html>