<?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">Customer 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 Customer Form</h1>
<form class="form-mini" method="post" action="savedb.php">

<div class="form-row">
<label>
<select name="zoneorder">
<option>Choose Zone Order</option>
<option>1</option>
<option>2</option>
<option>6</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="zone">
<option>Choose Zone</option>
<option>Zone-1</option>
<option>Zone-2</option>
<option>Modern</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="channel">
<option>Choose Channel</option>
<option>Ch-1</option>
<option>Ch-2</option>
<option>Modern Trade</option>
<option>Direct</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="region">
<option>Choose Region</option>
<option>CH1-CENTRAL</option>
<option>CH1-EAST</option>
<option>CH1-UWA</option>
<option>CH1-NORTH</option>
<option>CH1-NORTH CENTRAL</option>
<option>SABARAGAMUWA</option>
<option>SOUTHERN</option>
<option>CH1-WAYAMBA</option>
<option>WESTERN NORTH</option>
<option>WESTERN SOUTH</option>
<option>CH2-CENTRAL</option>
<option>CH2-EAST</option>
<option>CH2-UWA</option>
<option>CH2-NORTH</option>
<option>CH2-NORTH CENTRAL</option>
<option>SABARAGAMUWA</option>
<option>CH2-WAYAMBA</option>
<option>MODERN TRADE</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="subregion">
<option>Choose Sub-Region</option>
<option>CH1-CENTRAL</option>
<option>CH1-EAST</option>
<option>CH1-UWA</option>
<option>CH1-NORTH</option>
<option>CH1-NORTH CENTRAL</option>
<option>CH1-SABARAGAMUWA</option>
<option>CH1-SOUTHERN</option>
<option>CH1-WAYAMBA</option>
<option>CH1-WESTERN NORTH</option>
<option>CH1-WESTERN SOUTH</option>
<option>CH2-CENTRAL</option>
<option>CH2-EAST</option>
<option>CH2-UWA</option>
<option>CH2-NORTH</option>
<option>CH2-NORTH CENTRAL</option>
<option>CH2-SABARAGAMUWA</option>
<option>CH2-SOUTHERN</option>
<option>CH2-WAYAMBA</option>
<option>CH2-WESTERN NORTH</option>
<option>CH2-WESTERN SOUTH</option>
<option>MODERN TRADE</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="asm">
<option>Choose ASM</option>
<option>CH1-CENTRAL 1-ASM</option>
<option>CH1-CENTRAL 2-ASM</option>
<option>CH1-EAST-ASM</option>
<option>CH1-UWA-ASM</option>
<option>CH1-NORTH CENTRAL-ASM</option>
<option>CH1-EAST-ASM</option>
<option>CH1-NORTH-ASM</option>
<option>CH1-WESTERN NORTH-ASM</option>
<option>CH1-WESTERN SOUTH-ASM</option>
<option>CH1-SABARAGAMUWA-ASM</option>
<option>CH1-SOUTH-ASM</option>
<option>CH1-WAYAMBA-ASM</option>
<option>CH2-CENTRAL-ASM</option>
<option>CH2-EAST-ASM</option>
<option>CH2-UWA-ASM</option>
<option>CH2-NORTH CENTRAL-ASM</option>
<option>CH2-EAST-ASM</option>
<option>CH2-NORTH-ASM</option>
<option>CH2-WESTERN NORTH-ASM</option>
<option>CH2-WESTERN SOUTH-ASM</option>
<option>CH2-SABARAGAMUWA-ASM</option>
<option>CH2-SOUTH-ASM</option>
<option>CH2-WAYAMBA-ASM</option>
<option>KEY CUSTOMER-01</option>
<option>MODERN TRADE ASM</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="exname">
<option>Choose Executive</option>
<option>SUKIKARAN</option>
<option>M.B.M.IRSATH</option>
<option>R.VIVEK</option>
<option>D.R.PUSHPAKUMARA</option>
<option>S.YOGARAJA</option>
<option>PRADEEP HAPUTHANTRI</option>
<option>MELAN BANDULASENA</option>
<option>PRABATH KUMARA</option>
<option>G.S.KUMARA</option>
<option>DAVID SAMUEL</option>
<option>INDIKA SAMPATH</option>
<option>W.D.SISIRA</option>
<option>ASELA WIJERATHNA</option>
<option>MODERN-SEC-1</option>
<option>MODERN-SEC-2</option>
</select>
</label>
</div>

<div class="form-row">
<label>
<select name="agtype">
<option>Choose Agent Type</option>
<option>AGENCY</option>
<option>DIRECT</option>
<option>MODERN TRADE</option>
</select>
</label>
</div>
<div class="form-row">
<label>
<select name="rgtype" required='on'>
<option>Choose Channel Type</option>
<option>CHANNEL-1</option>
<option>CHANNEL-2</option>
<option>DIRECT</option>
<option>MODERN TRADE</option>
</select>
</label>
</div>
<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="dbnamec" placeholder="Db-Name&Code" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="dbaddres" placeholder="Distributor Address" required='on' autocomplete='off'>
</div>
<div class="form-row">
<input type="text" name="territory" placeholder="Territory" 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 form-last-row">
<button input type="submit" name="Submit" required="on" >Add Distributor</button>
</div>
</form>
</div>
</div>
</body>
</html>
