189 lines
4.8 KiB
PHP
189 lines
4.8 KiB
PHP
<!doctype html>
|
|
<html lang="en">
|
|
|
|
|
|
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
|
<head>
|
|
|
|
<?php
|
|
include("../link.php");
|
|
?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="dashboard-main-wrapper">
|
|
|
|
|
|
<?php
|
|
|
|
include("../header.php");
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
include("../nav.php");
|
|
|
|
?>
|
|
|
|
<div class="dashboard-wrapper">
|
|
<div class="dashboard-ecommerce">
|
|
<div class="container-fluid dashboard-content ">
|
|
<div class="row">
|
|
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
|
|
<div class="page-header">
|
|
<h2 class="pageheader-title">Add Suplier</h2>
|
|
<div class="page-breadcrumb">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="index.php" class="breadcrumb-link">Dashboard</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">Add Suplier</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ecommerce-widget">
|
|
<div class="row">
|
|
|
|
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
|
|
<div class="card">
|
|
<h3 class="card-header text-center">Add Suplier</h3>
|
|
<div class="card-body">
|
|
<form id="addsuplier" data-parsley-validate="" novalidate="">
|
|
|
|
<div class="form-group row">
|
|
<!--<label class="col-12 col-sm-3 col-form-label text-sm-right"> Suplier Code</label>-->
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<?php
|
|
$selectcount="SELECT * FROM `count` WHERE name='Suplier'";
|
|
$run_count=mysqli_query($conn,$selectcount);
|
|
$row_count=mysqli_fetch_array($run_count);
|
|
$ccount=$row_count['count'];
|
|
$totalid=$ccount+100;
|
|
$displayid=$totalid;
|
|
?>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Suplier Name</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="text" placeholder=" Suplier Name" class="form-control" id="suplier_name">
|
|
<p id="displaysuplier_name" class="errormessage"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Suplier Code</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="text" placeholder=" Suplier Code" class="form-control" id="suplier_code" value="<?php echo $displayid; ?>" readonly>
|
|
<p id="displaycompany_name" ></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Suplier Phone</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="number" placeholder=" Suplier Phone" class="form-control" id="suplier_phone">
|
|
<p id="displaysuplier_phone" ></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right"> Suplier Email Id</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="email" placeholder="Suplier Email Id" class="form-control" id="suplier_email_id">
|
|
<p id="displaysuplier_email_id"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">GST Number</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="text" placeholder="GST Number" class="form-control" id="gst_number">
|
|
<p id="displaygst_number"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Company Address</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="text" placeholder="Company Address" class="form-control" id="company_address">
|
|
<p id="displaystreet"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Place Name</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="text" placeholder="Place Name" class="form-control" id="place_name">
|
|
|
|
<p id="displaydistrict_name" ></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Pincode</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="number" placeholder="Pincode" class="form-control" id="pincode">
|
|
<p id="displaystate"></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<label class="col-12 col-sm-3 col-form-label text-sm-right">Date</label>
|
|
<div class="col-12 col-sm-8 col-lg-6">
|
|
<input type="date" placeholder="Date" class="form-control" id="date">
|
|
<p id="displaystate"></p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group row text-center">
|
|
<div class="col col-sm-10 col-lg-9 offset-sm-1 offset-lg-0">
|
|
<button type="submit" class="btn btn-space btn-primary" id="addsuplier">Submit</button>
|
|
<button class="btn btn-space btn-secondary" type="reset">Cancel</button>
|
|
<div id="add_suplier_all"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<?php
|
|
|
|
include("../script.php");
|
|
|
|
?>
|
|
|
|
<script src="main.js" type="application/javascript"></script>
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|