<?php
	session_start();
	if(isset($_SESSION['user']))
	{
		$temp=$_SESSION['user'];
	}
	else
	{
		header("Location: ../views/signinPage.php?message=".urlencode("Login again!"));
		exit();
	}
	require_once("engine.php");
	require_once("../models/user.php");
	require_once("../controllers/group.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<?php echo $includes; ?>
	<title>
		PhotoShare
	</title>
</head>

<body>
	<?php echo $navbar; ?>
	<div class="col-md-2" ></div>
	<div class="col-md-8" data-spy="scroll" data-target="#mynav">
        <div class="panel panel-primary">
			<div class="panel panel-heading">
				<h3>Create New Groups</h3>
			</div>
			<div class="panel panel-body">
				<div class="col-md-12" >
				<form action="" method="POST">
					<div class="col-md-12" >
					<div class="form-group">
						<label>
							Group Name :
						</label>
						<input type="text" name= "name" class="form-control" id="name">
					</div>
					<input type = "submit" class= "btn btn-primary" value ="+ New Group" name="addGroup">
					<label>
						<?php echo $aerror;?>
					</label>
				</form>
				</div>
			</div>
		</div>
	</div>
	<div class="col-md-2" ></div>
</body>
</html>
