<?php
include("connect.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" href="bootstrap/css/footer.css">
<link rel="stylesheet" href="bootstrap/css/base.css">
<link rel="stylesheet" href="bootstrap/css/skeleton.css">
<link rel="stylesheet" href="bootstrap/less/datepicker.less">
<link rel="stylesheet" href="bootstrap/css/layout.css">
<link href="bootstrap/css/datepicker.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet"/>
<link type"text/css" rel="Stylesheet" href="bootstrap/css/bootstrap.css" />
<meta charset="UTF-8">
<title>AFM ASS</title>
</head>

<body>
<?PHP
$strSQL = "INSERT INTO tb_user ";
$strSQL .="(Username,
			Password,
			Name,
			Email,
			Tel,
			Position,
			Department,
			Usertype_id,
			Image) ";
$strSQL .="VALUES ";
$strSQL .="('".$_POST["username"]."','".$_POST["password"]."','".$_POST["nameuser"]."' ";
$strSQL .=",'".$_POST["email"]."','".$_POST["tel"]."','".$_POST["Position"]."' ";
$strSQL .=",'".$_POST["Department"]."','".$_POST["usertype"]."', 'noimg.gif' ) ";
$objQuery = mysql_query($strSQL);
if($objQuery)
{
	header("location:Mainpage.php");
}
else
{
	echo " Error Save [".$strSQL."] ";
}
mysql_close($objConnect);
?>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap-datepicker.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
<script>window.jQuery || document.write("<script src='js/jquery-1.5.1.min.js'>\x3C/script>")</script>
<script src="js/app.js"></script>
</body>
</html>