<?php
// We need to use sessions, so you should always start sessions using the below code.
session_start();
// If the user is not logged in redirect to the login page...
if (!isset($_SESSION['loggedin'])) {
	header('Location: index.html');
	exit;
}
?> 


<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Home Page</title>
		<link href="style.css" rel="stylesheet" type="text/css">
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer">
	</head>
	<body class="loggedin">
		<nav class="navtop">
			<div>
				<h1>Website Title</h1>
				<a href="profile.php"><i class="fas fa-user-circle"></i>Profile</a>
				<a href="logout.php"><i class="fas fa-sign-out-alt"></i>Logout</a>
			</div>
		</nav>
		<div class="content">
			<h2>Home Page</h2>
			<p>Welcome back, <?=htmlspecialchars($_SESSION['name'], ENT_QUOTES)?>!</p>
		</div>
	</body>
</html>







<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta charset="utf-8">
    <title>Attendnace Taking</title>
    <link rel="stylesheet" href="includes/main.css">
    <script type="text/javascript" src="search/scripts.js"></script>



  </head>
  <body>


    <ul class="nav">
      <p id="borderimg"> <h2> New Jerusalem Haitian Baptist Church - Attendance System </h2></p>
      <p><div class="logo"> <img src="includes/images/newjerusalemlogo.png" alt="Logo"> </div></p>
      <li>Current Date <br><?php  require 'time.php';?></li>
      <li>Number of Attendees <br><?php  require 'includes/numberOfAttendees.php';
         ?></li>
      <li>Number of Guest <br><?php  require 'includes/numberOfGuest.php';
         ?>
       </li>
      <li>Number Of Children <br><?php  require 'includes/numberOfGuest.php';?></li>
      <hr>
      <marquee behavior="scroll" direction="right"><?php  require 'includes/message.php';?></marquee>
      <hr>

    </ul>
    <div class="checking">
      <ul>
        <li><iframe src="http://192.168.2.161/php/hello/attendance/includes/search6.php" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="290px" width="180px" allowfullscreen></iframe></li>
        <li><p>Add Guest <br><a href="#" onClick="MyWindow=window.open('add_guest.php','MyWindow','width=600,height=300'); return false;">Click Here</a></p></li>
        <li><p>list of Attendees <br> <a href="#" onClick="MyWindow=window.open('includes/viewAllAttendees.php','MyWindow','width=600,height=300'); return false;">Click Here</a></p></li>
        <li><p>View All Guests <br><a href="#" onClick="MyWindow=window.open('includes/viewAllGuest.php','MyWindow','width=600,height=300'); return false;">Click Here</a></p></li>
        <li><p>View All Children <br><a href="#" onClick="MyWindow=window.open('includes/viewAllChildren.php','MyWindow','width=600,height=300'); return false;">Click Here</a></p></li>
        <li><p>Add Children <br><a href="#" onClick="MyWindow=window.open('add_guest.php','MyWindow','width=600,height=300'); return false;">Click Here</a></p></li>
        <li><p><iframe width="560" height="315" src="https://www.youtube.com/embed/sNRAmZn42gM?si=PGyqiysT-kZteurw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
        </p>hjjgg</li>
      </ul>

      <ul class="liveVideo">
        <li><p><iframe src="https://www.youtube.com/live_chat?continuation=0ofMyAN-Gl5DaWtxSndvWVZVTnNTVEZxYlhod1VWVlhjRlY2YkVoa1RVaDZaMFIzRWdzeExUWkxZbDlzVlRsblNSb1Q2cWpkdVFFTkNnc3hMVFpMWWw5c1ZUbG5TU0FCTUFBJTNEMAGCAQYIBBgCIACIAQGgAb32puL64IUDqAEAsgEA&authuser=0&pageId=102220060290707528311" style="border:0px #ffffff none;" name="myiFrame" scrolling="yes" frameborder="1" marginheight="0px" marginwidth="0px" height="200px" width="200px" allowfullscreen></iframe>
        </p>hjjgg</li>

      </ul>




    </div>




  </body>
</html>
