homepage.php (1312B)
1 <!DOCTYPE html> 2 <?php 3 include "logic\login.php" 4 ?> 5 <html> 6 <head> 7 <title>IWA - Weather Stations</title> 8 <link rel="stylesheet" type="text/css" href="/css/homepage.css"> 9 </head> 10 <body> 11 <div class="header"> 12 <h1>IWA - Weather Stations</h1> 13 <form class="search-form" action="/dashboard"> 14 <button type="submit">Search for weather stations</button> 15 </form> 16 </div> 17 18 <div class="main"> 19 <div class="dashboard-section"> 20 <h2>Dashboard</h2> 21 <p>Welcome to your weather station dashboard. Here, you can view real-time weather data from your weather stations, set alerts, and more.</p> 22 <a href="/dashboard" class="button">Go to Dashboard</a> 23 </div> 24 <div class="login-section"> 25 <h2>Login</h2> 26 <form class="login-form" action="/homepage" method="post"> 27 <label for="email">Email:</label> 28 <input type="text" name="email" required> 29 <label for="password">Password:</label> 30 <input type="password" name="password" required> 31 <button type="submit" name='login_btn'>Login</button> 32 <?php 33 //display login $msg 34 echo $msg; 35 ?> 36 </form> 37 </div> 38 </div> 39 40 <div class="footer"> 41 <p>© 2023 IWA. All rights reserved.</p> 42 </div> 43 </body> 44 </html>