162 lines
7.1 KiB
PHP
162 lines
7.1 KiB
PHP
<?php
|
||
|
||
$SupplierID = '';
|
||
$SupplierName = '';
|
||
$Address = '';
|
||
$ContactNumber = '';
|
||
$AlternateContactNumber = '';
|
||
$EmailAddress = '';
|
||
$TIN = '';
|
||
$PAN = '';
|
||
|
||
if(!empty($supplier))
|
||
{
|
||
foreach ($supplier as $uf)
|
||
{
|
||
$SupplierID = $uf->SupplierID;
|
||
$SupplierName = $uf->SupplierName;
|
||
$Address = $uf->Address;
|
||
$ContactNumber = $uf->ContactNumber;
|
||
$AlternateContactNumber = $uf->AlternateContactNumber;
|
||
$EmailAddress = $uf->EmailAddress;
|
||
$TIN = $uf->TIN;
|
||
$PAN = $uf->PAN;
|
||
}
|
||
}
|
||
|
||
|
||
?>
|
||
<script>
|
||
function demo(){
|
||
alert("Update this records");
|
||
|
||
}
|
||
|
||
</script>
|
||
<div class="content-wrapper">
|
||
<!-- Content Header (Page header) -->
|
||
<section class="content-header">
|
||
<h1>
|
||
<center>Supplier Details</center>
|
||
|
||
</h1>
|
||
</section>
|
||
|
||
<section class="content">
|
||
<div style="text-align:right;">
|
||
<a href="<?php echo base_url() ?>supplierListing" class="btn btn-info" value="Back"/>Back</a>
|
||
</div>
|
||
<br/>
|
||
<div class="row">
|
||
<!-- left column -->
|
||
<div class="col-md-12">
|
||
<!-- general form elements -->
|
||
|
||
|
||
|
||
<div class="box box-primary">
|
||
<div class="box-header">
|
||
<center><h3 class="box-title">Edit Supplier Details</h3></center>
|
||
</div><!-- /.box-header -->
|
||
<!-- form start -->
|
||
|
||
<form role="form" action="<?php echo base_url() ?>editsupplier" method="post" id="editsupplier" role="form">
|
||
<div class="box-body">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="SupplierName">Supplier Name</label>
|
||
<input type="text" class="form-control required" id="SupplierName" name="SupplierName" maxlength="128"value="<?php echo $SupplierName; ?>">
|
||
|
||
<input type="hidden" value="<?php echo $SupplierID; ?>" name="SupplierID" id="SupplierID" readonly>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="Address">Address</label>
|
||
<input type="text" class="form-control required" id="Address" name="Address" maxlength="128" value="<?php echo $Address;?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="ContactNumber">Contact Number</label>
|
||
<input type="text" class="form-control required digits" id="ContactNumber" name="ContactNumber" minlegth="10"maxlength="10" value="<?php echo $ContactNumber?>">
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="AlternateContactNumber">Alternate Contact Number</label>
|
||
<input type="tel" class="form-control required digits" id="AlternateContactNumber" name="AlternateContactNumber" minlength="10"
|
||
|
||
maxlength="10" value="<?php echo $AlternateContactNumber?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="EmailAddress">Email Address</label>
|
||
<input type="email" class="form-control email required" id="EmailAddress" name="EmailAddress" maxlength="128" value="<?php echo $EmailAddress?>">
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="TIN">TIN</label>
|
||
<input type="text" class="form-control required" id="TIN" name="TIN" maxlength="50" value="<?php echo $TIN; ?>">
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6">
|
||
<div class="form-group">
|
||
<label for="PAN">PAN</label>
|
||
<input type="text" class="form-control required" id="PAN" name="PAN" maxlength="15"value="<?php echo $PAN; ?>">
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div><!-- /.box-body -->
|
||
|
||
<div class="box-footer" style="text-align:right">
|
||
<input type="submit" class="btn btn-info" onclick="demo()" value="Submit" />
|
||
<input type="reset" class="btn btn-info" value="Cancel" />
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-4">
|
||
<?php
|
||
$this->load->helper('form');
|
||
$error = $this->session->flashdata('error');
|
||
if($error)
|
||
{
|
||
?>
|
||
<div class="alert alert-danger alert-dismissable">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<?php echo $this->session->flashdata('error'); ?>
|
||
</div>
|
||
<?php } ?>
|
||
<?php
|
||
$success = $this->session->flashdata('success');
|
||
if($success)
|
||
{
|
||
?>
|
||
<div class="alert alert-success alert-dismissable">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<?php echo $this->session->flashdata('success'); ?>
|
||
</div>
|
||
<?php } ?>
|
||
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
|
||
<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>
|