<?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>Distributor 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">Direct Dealer Data Base</div>
<div class="homes"><a href="index.php" style='color:#A9BCF5;'>Sign out</a></div>



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


<div class="main-content">
<div class="form-mini-container">

<h1>New Direct-Dealer Form</h1>
<form class="form-mini" method="post" action="savedidb.php">

<div class="form-row">
<input type="text" name="dbname" placeholder="Distributor Name" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="dibname" placeholder="Direct Dealer Name" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="outltname" placeholder="Outlet Name" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="dibnic" placeholder="NIC Number" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="dbaddres" placeholder="Direct Dealer Address" required='on' autocomplete='off'>
</div>

<div class="form-row">
<input type="text" name="dbcontact" placeholder="Contact Number" required='on' autocoplete='off'>
</div>
<div class="form-row">
<input type="text" name="dbturn" placeholder="Turn Over" required='on' autocoplete='off'>
</div>
<div class="form-row">
<input type="text" name="mrates" placeholder="Margin Rates" required='on' autocoplete='off'>
</div>

<div class="form-row">
<input type="text" name="bacount" placeholder="Bank Account Number" required='on' autocoplete='off'>
</div>

<div class="form-row">
<label>
<select name="rgtype" required='on'>
<option>Outlet Type</option>
<option>WHOLE-SALE</option>
<option>SEMI-WHSALE</option>
<option>RETAIL</option>
<option>INSTITUE</option>
</select>
</label>
</div>


<div class="form-row">
<label>
<select name="bank" >
<option>Bank Name</option>
<option>SAMPATH</option>
<option>COMMERCIAL</option>
<option>HNB</option>
<option>SEYLAN</option>
<option>PAB</option>
<option>NTB</option>
<option>NDB</option>
<option>NSB</option>
<option>BOC</option>
<option>PB</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="paymode" >
<option>Payment Mode</option>
<option>CASH</option>
<option>CREDIT</option>
<option>CHEQUE</option>
</select>
</label>
</div>

<div class="form-row form-last-row">
<button input type="submit" name="Submit" required="on" >Add Dealer</button>
</div>
</form>
</div>
</div>
</body>
</html>
