<?php
require "showshp.php";
session_start();
if(!isset($_SESSION['titles']) || !isset($_SESSION['positions'])|| !isset($_SESSION['usernames'])){
header("location:index.php");
}
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Customer Adding Form</title>
<link rel="stylesheet" href="form-mini.css">
<link rel="stylesheet" type="text/css" href="rdsty.css">
</head>
<body style="font-family:calibri;font-size:small" onload="mnh('amnc','agentsb')">
<div class="hdn"></div>
<?php
printf("<div class='ses'>%s (%s)</div>",$_SESSION['titles'],$_SESSION['positions']);
?>
<div class="tops" align="center">Customer Data Base</div>
<div class="homes"><a href="index.php" style='color:#A9BCF5;'>Sign out</a></div>

<?php
showsrds();
printf("<div class='mains'>");
?>

<br>
<div class="main-content">
<div class="form-mini-container">
<h1>New Customer Form</h1>
<form class="form-mini" method="post" action="savecus.php">

<div class="form-row">
<input type="text" name="custname" placeholder="Customer Name" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="custaddres" placeholder="Customer Address" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="custroute" placeholder="Route" required='on' autocoplete='off'>
</div>
<div class="form-row">
<input type="text" name="custarea" placeholder="Area" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="custtp" placeholder="Contact Number" autocomplete='off'>
</div>
<div class="form-row">
<label>
<select name="dropdown">
<option>Choose Customer Type</option>
<option>Whole-Sale</option>
<option>Semi-Whole-sale</option>
<option>Retail</option>
<option>Institute</option>
</select>
</label>
</div>
<div class="form-row form-last-row">
<button input type="submit" name="Submit" required="on" >Add Customer</button>
</div>

</form>
</div>
</div>
</body>
</html>
