190 lines
5.2 KiB
PHP
190 lines
5.2 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">Update 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">Update 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">Update Suplier</h3>
|
||
|
<div class="card-body">
|
||
|
|
||
|
|
||
|
<?php
|
||
|
$cusupid=$_GET['cusupid'];
|
||
|
$selectcuscc="SELECT * FROM `suplier` WHERE id='$cusupid'";
|
||
|
$run_cc=mysqli_query($conn,$selectcuscc);
|
||
|
$row_cc=mysqli_fetch_array($run_cc);
|
||
|
?>
|
||
|
|
||
|
|
||
|
<form id="updatesuplierform" 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">
|
||
|
|
||
|
</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" value="<?php echo $row_cc['name']; ?>">
|
||
|
<input type="hidden" class="form-control" id="updatesuplierid" value="<?php echo $cusupid; ?>">
|
||
|
<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 $row_cc['code']; ?>">
|
||
|
<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" value="<?php echo $row_cc['phono']; ?>">
|
||
|
<p id="displaycustomer_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" value="<?php echo $row_cc['emailid']; ?>">
|
||
|
<p id="displaycustomer_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" value="<?php echo $row_cc['gstno']; ?>">
|
||
|
<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" value="<?php echo $row_cc['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" value="<?php echo $row_cc['place']; ?>">
|
||
|
|
||
|
<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" value="<?php echo $row_cc['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" value="<?php echo $row_cc['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="update_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>
|