| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/application/views/scripts/customer/ |
Upload File : |
<?php
/**
* Catabatic Technology Pvt. Ltd.
* File Name : edit-customer.phtml
* Created By : Pooja Choudhary
* Created Date : 08/07/2016 18:16
*/
?>
<!--Page main section start-->
<section id="min-wrapper" class="active">
<div id="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<!--Top header start-->
<h3 class="ls-top-header">Edit Customer</h3>
<!--Top header end -->
<!--Top breadcrumb start -->
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a></li>
<li class="active">Customer Management</li><li class="active"><a href="<?php echo $this->baseUrl('customer'); ?>">Customer</a></li><li class="active">Edit Customer: <b><?php echo @$this->customerRecord['Title'];?></b></li>
</ol>
<!--Top breadcrumb start -->
</div>
</div>
<!-- Main Content Element Start-->
<div class="row">
<form id="addCustomerForm" class="ls_form" method="post" enctype="multipart/form-data" autocomplete="off" action="/customer/edit-customer/id/<?php echo $this->customerId; ?>">
<div class="col-md-12">
<div class="successMessage">
<?php echo $this->message; ?>
</div>
</div>
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Edit Customer</h3>
</div>
<div class="panel-body">
<div class="col-md-4">
<div class="form-group">
<label>Title<?php echo MANDATORY_SIGN; ?></label>
<input type="text" name="title" id="title" class="form-control whbg" maxlength="80" value="<?php echo @$this->customerRecord['Title'];?>">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Logo<?php echo MANDATORY_SIGN; ?></label>
<input type="file" name="logo" id="logo" class="file whbg" showPreview=false>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Contact<?php echo MANDATORY_SIGN; ?></label>
<input type="text" name="contact" maxlength="10" id="contact" class="form-control whbg" value="<?php echo @$this->customerRecord['Contacts'];?>">
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-4">
<div class="form-group">
<label>Address<?php echo MANDATORY_SIGN; ?></label>
<input type="text" name="address" id="address" class="form-control whbg" maxlength="80" value="<?php echo @$this->customerRecord['ClientAddress'];?>">
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Status<?php echo MANDATORY_SIGN; ?></label>
<select id="select-status" name="status" class="demo-default select-country" placeholder="Select" value="<?php echo @$this->customerRecord['Status'];?>">
<option value="1" <?php echo (@$this->customerRecord['Status'])? 'selected': ''?>>Active</option>
<option value="0" <?php echo (!@$this->customerRecord['Status'])? 'selected': ''?>>Deactive</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12 no-padding no-margin">
<div class="panel-footer text-right">
<!--<input type="submit" class="btn btn-success" name="submit" value="Submit"/>-->
<button class="submit btn btn-success" type="submit" name="submit" value="update">Submit</button>
<!--<a class="btn btn-success" href="#">Submit</a>-->
<a href="<?php echo $this->baseUrl('customer'); ?>" class="btn btn-default">Cancel</a>
</div>
</div>
</form>
</div>
<!-- Main Content Element End-->
</div>
</div>
<?php echo $this->render('copyrightfooter.phtml'); ?>
<!--Page main section end -->
<!--<script src="<?php echo $this->baseUrl('public/js/jquery.validate.min.js'); ?>"></script>-->
<script type="text/javascript">
$(document).ready(function () {
$("#addCustomerForm").validate({
rules: {
"title": {
required: true,
//remote: '/department/department-exists'
}
},
messages: {
"title": {
required: 'Please enter Customer Title name.',
remote: 'Userplan already exists.'
}
}
});
});
</script>