new ui
This commit is contained in:
+7
-33
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user