Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
eeabe9da98
@ -921,7 +921,7 @@ class User extends BaseController
|
||||
|
||||
$data['roles'] = $this->user_model->getUserRoles();
|
||||
|
||||
$data['Department'] = $this->costcenter_model->getDepartment();
|
||||
// $data['Department'] = $this->costcenter_model->getDepartment();
|
||||
|
||||
$this->global['pageTitle'] = 'Add New User';
|
||||
|
||||
|
||||
@ -19,168 +19,165 @@
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>public/assets/Autocomplete/jquery.autocomplete.js"></script>
|
||||
<div class="content-wrapper" style="min-height: 537px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center> Add Material Details</center>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>rawmaterialListing"> <span class="bold">Back</span></a>
|
||||
</ol>
|
||||
</section> <br />
|
||||
|
||||
<section class="content" id="content">
|
||||
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
<!-- general form elements -->
|
||||
<div class="box box-success">
|
||||
<!-- form start -->
|
||||
<form id="addUser" action="<?php echo base_url() ?>addNewRawmaterial" method="post" role="form">
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="MaterialName">Material Name</label>
|
||||
<font color="Red">*</font>
|
||||
<input type="text" class="form-control required " onkeypress="return BlockSpecial(event);" required id="MaterialName" name="MaterialName" maxlength="255">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="MaterialType">Material Type</label>
|
||||
<font color="Red">*</font>
|
||||
<select class="form-control select2" required id="MaterialType" name="MaterialType">
|
||||
<option value="" required>Select Material Type</option>
|
||||
<?php
|
||||
if (!empty($material)) {
|
||||
foreach ($material as $SID) {
|
||||
?>
|
||||
<option value="<?php echo $SID->ConfigValue ?>"><?php echo $SID->ConfigValue ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group autoSearch" id="mc">
|
||||
<label for="Matcate">Material Caterogy</label>
|
||||
<font color="Red">*</font>
|
||||
<input type="text" class="form-control required " required id="MatCate" name="MatCate" maxlength="255">
|
||||
<!-- <div id="tagsname"></div> -->
|
||||
<!-- <input type="text" class="form-control" id="HideMatCate" name="HideMatCate" readonly> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="UOM">Unit of Measurement</label>
|
||||
<font color="Red">*</font>
|
||||
<select class="form-control required select2" id="UOM" name="UOM">
|
||||
<option value="" required>Select UOM</option>
|
||||
<?php
|
||||
if (!empty($UOM)) {
|
||||
foreach ($UOM as $SID) {
|
||||
?>
|
||||
<option value="<?php echo $SID->ConfigValue; ?>"><?php echo $SID->ConfigValue ?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="HSNcode">HSN code</label>
|
||||
<input type="text" class="form-control" id="HSNcode" onkeypress="return isNumberKey(event)" name="HSNcode" maxlength="8">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="conversionfactor">Opening Stock</label>
|
||||
<input type="text" class="form-control" id="openstock" name="openstock" maxlength="255">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Open Stock Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date', 'value' => set_value('Date'), 'id' => 'Date', 'class' => 'form-control', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="conversionfactor">Reorder Level</label>
|
||||
<input type="text" class="form-control" id="reorder" name="reorder" maxlength="255">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="remarks">Remarks</label>
|
||||
<input type="text" class="form-control" id="remarks" name="remarks" maxlength="255">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="Active">IsActive</label> <br>
|
||||
<input type="checkbox" id="isactive" name="isactive">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer" style="text-align:right">
|
||||
<input type="reset" class="btn btn-reset" value="Reset" />
|
||||
<input type="submit" onclick="Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if ($error) {
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if ($success) {
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>');
|
||||
?> </div>
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Add Material Details</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>rawmaterialListing"> <span class="bold">Back</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="p-2">
|
||||
<form role="form" id="addUser" action="<?php echo base_url() ?>addNewRawmaterial" method="post">
|
||||
<div class="box-body">
|
||||
<!-- Supplier Information -->
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="MaterialName">Material Name<span class="badge">*</span></label>
|
||||
<input type="text" class="form-control required " onkeypress="return BlockSpecial(event);" required id="MaterialName" name="MaterialName" maxlength="255">
|
||||
</div>
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="MaterialType">Material Type<span class="badge">*</span></label>
|
||||
<select class="form-control select2" required id="MaterialType" name="MaterialType">
|
||||
<option value="" required>Select Material Type</option>
|
||||
<?php
|
||||
if (!empty($material)) {
|
||||
foreach ($material as $SID) {
|
||||
?>
|
||||
<option value="<?php echo $SID->ConfigValue ?>"><?php echo $SID->ConfigValue ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="MaterialCaterogy">Material Caterogy<span class="badge">*</span></label>
|
||||
<input type="text" class="form-control required " required id="MatCate" name="MatCate" maxlength="255">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="UnitofMeasurement">Unit of Measurement<span class="badge">*</span></label>
|
||||
<select class="form-control required select2" id="UOM" name="UOM">
|
||||
<option value="" required>Select UOM</option>
|
||||
<?php
|
||||
if (!empty($UOM)) {
|
||||
foreach ($UOM as $SID) {
|
||||
?>
|
||||
<option value="<?php echo $SID->ConfigValue; ?>"><?php echo $SID->ConfigValue ?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3" >
|
||||
<label for="HSNcode">HSN code</label>
|
||||
<input type="text" class="form-control" id="HSNcode" onkeypress="return isNumberKey(event)" name="HSNcode" maxlength="8">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="OpeningStock">Opening Stock</label>
|
||||
<input type="text" class="form-control" id="openstock" name="openstock" maxlength="255">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="OpenStockDate">Open Stock Date</label>
|
||||
<?php
|
||||
$data = array('name' => 'Date', 'value' => set_value('Date'), 'id' => 'Date', 'class' => 'form-control', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="ReorderLevel">Reorder Level</label>
|
||||
<input type="text" class="form-control" id="reorder" name="reorder" maxlength="255">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<label for="Remarks">Remarks</label>
|
||||
<input type="text" class="form-control" id="remarks" name="remarks" maxlength="255">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<input type="checkbox" id="isactive" name="isactive">
|
||||
<label for="IsActive">IsActive</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
|
||||
<input type="submit" onclick="return Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$listErrors = session()->getFlashdata('listErrors');
|
||||
if($listErrors)
|
||||
{
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('listErrors'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<script src="<?php echo base_url(); ?>public/assets/js/addUser.js" type="text/javascript"></script>
|
||||
<script>
|
||||
//var tempARRAY = [];
|
||||
|
||||
@ -1,33 +1,3 @@
|
||||
<style>
|
||||
legend {
|
||||
border-bottom: 2px solid #FFF !important;
|
||||
margin-left: -2%;
|
||||
}
|
||||
.form-group {
|
||||
padding-bottom: 4%;
|
||||
}
|
||||
.badge {
|
||||
color: red;
|
||||
background-color: #fff;
|
||||
}
|
||||
.btn-cancel {
|
||||
background-color: grey; /* Red color */
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-cancel:hover {
|
||||
background-color: #d32f2f; /* Darker red on hover */
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<!-- ============================================================== -->
|
||||
<!-- Start Page Content here -->
|
||||
<!-- ============================================================== -->
|
||||
|
||||
@ -1,254 +1,182 @@
|
||||
<div class="content-wrapper" style="min-height: 537px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center> Add User Details</center>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>userListing"> <span class="bold">Back</span></a>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div style="text-align:right;">
|
||||
<a href="<?php echo base_url() ?>userListing" class="btn btn-success" value="Back"/>Back</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
<!-- general form elements -->
|
||||
|
||||
|
||||
|
||||
<div class="box box-success">
|
||||
<!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
|
||||
<form role="form" id="addUser" action="<?php echo base_url() ?>addNewUser" method="post" role="form">
|
||||
<div class="box-body">
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Add User Details</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>userListing"> <span class="bold">Back</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="fname">Employee ID</label>
|
||||
<select class="form-control required select" id="EmpList" name="EmpList">
|
||||
<option value="">Select Emp ID</option>
|
||||
|
||||
<?php
|
||||
if(!empty($EmpList))
|
||||
{
|
||||
foreach ($EmpList as $EID)
|
||||
{
|
||||
|
||||
$EmpID = $EID->EmpID;
|
||||
<div class="col-12">
|
||||
<div class="p-2">
|
||||
<form role="form" id="addUser" action="<?php echo base_url() ?>addNewUser" method="post">
|
||||
<div class="box-body">
|
||||
<!-- Supplier Information -->
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="EmployeeID">Employee ID</label>
|
||||
<select class="form-control required select" id="EmpList" name="EmpList">
|
||||
<option value="">Select Emp ID</option>
|
||||
<?php
|
||||
if(!empty($EmpList))
|
||||
{
|
||||
foreach ($EmpList as $EID)
|
||||
{
|
||||
$EmpID = $EID->EmpID;
|
||||
// if ($_POST['EmpList'] == $EmpID) {
|
||||
// echo "<option value=\"".$EmpID."\" selected=\"selected\">".$EmpID.' - '. $EID->FirstName."</option>";
|
||||
// } else{
|
||||
echo "<option value=\"".$EmpID."\">".$EmpID.' - '. $EID->FirstName ."</option>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="FirstName">First Name</label>
|
||||
<input type="text" class="form-control required" readonly id="FirstName" name="FirstName" maxlength="128">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="LastName">Last Name</label>
|
||||
<input type="text" class="form-control required" readonly id="LastName" name="LastName" maxlength="128">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="Designation">Designation</label>
|
||||
<input type="text" class="form-control required " readonly id="Designation" name="Designation" maxlength="128">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<label for="Emailaddress">Email address</label>
|
||||
<input type="text" class="form-control required " readonly id="MailID" name="MailID" maxlength="128">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="ContactNumber">Contact Number</label>
|
||||
<input type="text" class="form-control required digits" readonly id="ContactNo" name="ContactNo" minlength="10"maxlength="10">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Role">Role</label>
|
||||
<select class="form-control required" id="role" name="role">
|
||||
<option value="0">Select Role</option>
|
||||
<?php
|
||||
if(!empty($roles))
|
||||
{
|
||||
foreach ($roles as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->roleId ?>"><?php echo $rl->role ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label for="Department">Department</label>
|
||||
<select class="form-control required" id="role" name="role">
|
||||
<option value="0">Select Department</option>
|
||||
<?php
|
||||
if(!empty($departments))
|
||||
{
|
||||
foreach ($departments as $dt)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $dt->departmentId ?>"><?php echo $dt->departments ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<label for="Password">Password</label>
|
||||
<input type="password" class="form-control required" id="password" required name="password" maxlength="10">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="ConfirmPassword">Confirm Password</label>
|
||||
<input type="password" class="form-control required equalTo" required id="cpassword" name="cpassword" maxlength="10">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
// if ($_POST['EmpList'] == $EmpID)
|
||||
// {
|
||||
|
||||
// echo "<option value=\"".$EmpID."\" selected=\"selected\">".$EmpID.' - '. $EID->FirstName."</option>";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
echo "<option value=\"".$EmpID."\">".$EmpID.' - '. $EID->FirstName ."</option>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="fname">First Name</label>
|
||||
<input type="text" class="form-control required" readonly id="FirstName" name="FirstName" maxlength="128">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="fname">Last Name</label>
|
||||
<input type="text" class="form-control required" readonly id="LastName" name="LastName" maxlength="128">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="email">Designation</label>
|
||||
<input type="text" class="form-control required " readonly id="Designation" name="Designation" maxlength="128">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
|
||||
<input type="submit" onclick="return Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="mobile">Department</label>
|
||||
<input type="text" class="form-control required " readonly id="Department" name="Department" minlength="10"maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$listErrors = session()->getFlashdata('listErrors');
|
||||
if($listErrors)
|
||||
{
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('listErrors'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="email">Email address</label>
|
||||
<input type="text" class="form-control required " readonly id="MailID" name="MailID" maxlength="128">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label for="mobile">Contact Number</label>
|
||||
<input type="text" class="form-control required digits" readonly id="ContactNo" name="ContactNo" minlength="10"maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" class="form-control required" id="password" required name="password" maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2">
|
||||
<div class="form-group">
|
||||
<label for="cpassword">Confirm Password</label>
|
||||
<input type="password" class="form-control required equalTo" required id="cpassword" name="cpassword" maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2" style="display:block;">
|
||||
<div class="form-group" style="display:none;">
|
||||
<label for="role">Role</label>
|
||||
<select class="form-control required" id="role" name="role">
|
||||
<option value="0">Select Role</option>
|
||||
<?php
|
||||
if(!empty($roles))
|
||||
{
|
||||
foreach ($roles as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->roleId ?>"><?php echo $rl->role ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-4">
|
||||
<label>Department</label>
|
||||
<div>
|
||||
<?php
|
||||
|
||||
$options = array("0"=>'Select Department',
|
||||
"1"=>'System Administrator');
|
||||
//print_r( $Department);
|
||||
|
||||
if(!empty($Department))
|
||||
{
|
||||
foreach ($Department as $SID):
|
||||
|
||||
|
||||
$options[$SID->DEPCode] = $SID->DEPCode.' '.' - '.' '.$SID->DepartmentName;
|
||||
|
||||
endforeach;
|
||||
}
|
||||
echo form_multiselect('distriList', $options,set_value('distriList', array()),'id="distriList"' ,'class="form-control required"','required="true"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<center>
|
||||
<a style="color:white" href="javascript:void(0);" id="addPop"><button type="button" style="margin: 30px 0px 0px 15px;" class="btn btn-success">Add</button></a><br>
|
||||
<!-- <a style="color:white" href="javascript:void(0);" id="removePop"><button type="button" style="margin: 10px 0px 0px 15px;" class="btn btn-success">Remove</button></a> --><br>
|
||||
|
||||
</center>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<b> </b>
|
||||
|
||||
<?php
|
||||
$option["0"] = 'Selected Department';
|
||||
echo form_multiselect('selectDistriList[]', $option,set_value('selectDistriList[]', array()),'id="selectDistriList"','size="10"');
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="txtSelectedDepartment" id="txtSelectedDepartment" />
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div><!-- /.box-body -->
|
||||
|
||||
<div class="box-footer" style="text-align:right">
|
||||
<input type="reset" class="btn btn-success" value="Reset" />
|
||||
<input type="submit" class="btn btn-success" value="Submit" />
|
||||
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
|
||||
echo $error;
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php // \Config\Services::validation()->listErrors('<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>
|
||||
|
||||
<!-- end row -->
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/assets/js/addUser.js" type="text/javascript"></script>
|
||||
|
||||
<script>
|
||||
|
||||
@ -1,355 +1,219 @@
|
||||
<script>
|
||||
|
||||
$(function() {
|
||||
var d = new Date();
|
||||
|
||||
var month = d.getMonth();
|
||||
var day = d.getDate();
|
||||
var year = d.getFullYear() ;
|
||||
var SIAStartYear = year - 2015;
|
||||
var mindt = year-70;
|
||||
var maxdt = year-15;
|
||||
|
||||
// $("#PONO").select2();
|
||||
// $("#SelectMaterialCode").select2();
|
||||
//$("#AssetStatus").select2();
|
||||
|
||||
$("#DateOfCommission").datepicker({
|
||||
minDate : new Date(year-SIAStartYear,1,1),
|
||||
maxDate :'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,
|
||||
|
||||
|
||||
|
||||
});
|
||||
$("#DateOfPurchase").datepicker({
|
||||
minDate : new Date(year-SIAStartYear,1,1),
|
||||
maxDate :'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
if (charCode != 46 && charCode > 31
|
||||
&& (charCode < 48 || charCode > 57))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<div class="content-wrapper" style="min-height: 537px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center> Add Asset Details</center>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>assetListing"> <span class="bold">Back</span></a>
|
||||
</ol>
|
||||
</section><br>
|
||||
|
||||
<section class="content">
|
||||
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
<!-- general form elements -->
|
||||
|
||||
<div class="box box-success">
|
||||
|
||||
<!-- form start -->
|
||||
|
||||
<form role="form" id="addAsset" action="<?php echo base_url() ?>addNewasset" method="post">
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
|
||||
<div class="form-group"><b>
|
||||
<span for="Asset_Name">Asset Name </span><span style="color:red">*</span></b>
|
||||
<input type="text" class="form-control " required style="text-transform:uppercase;" id="AssetName" name="AssetName" value="<?php echo isset($_POST['AssetName']) ? $_POST['AssetName'] : '' ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="Description">Asset Description</span></b><span style="color:red">*</span>
|
||||
<input type="text" class="form-control required" id="Description" required name="Description" value="<?php echo isset($_POST['Description']) ? $_POST['Description'] : '' ?>">
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title"> Add Asset Details</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>supplierlisting"> <span class="bold">Back</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="p-2">
|
||||
<form role="form" id="addAsset" action="<?php echo base_url() ?>addNewasset" method="post">
|
||||
<div class="box-body">
|
||||
<!-- Supplier Information -->
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="AssetName">Asset Name<span class="badge">*</span></label>
|
||||
<input type="text" class="form-control " required style="text-transform:uppercase;" id="AssetName" name="AssetName" value="<?php echo isset($_POST['AssetName']) ? $_POST['AssetName'] : '' ?>">
|
||||
</div>
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="AssetDescription">Asset Description<span class="badge">*</span></label>
|
||||
<input type="text" class="form-control required" id="Description" required name="Description" value="<?php echo isset($_POST['Description']) ? $_POST['Description'] : '' ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="Asset User">Asset User<span class="badge">*</span></label>
|
||||
<input type="text" class="form-control required" required id="User" name="User" value= "<?php echo isset($_POST['User']) ? $_POST['User'] : '' ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="AssetLocation">Asset Location<span class="badge">*</span></label>
|
||||
<input type="text" class="form-control required" required id="Location" name="Location" value= "<?php echo isset($_POST['Location']) ? $_POST['Location'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3" >
|
||||
<label for="PurchaseOrderNumber">Purchase Order Number<span class="badge">*</span></label>
|
||||
<select class="form-control required " required id="PONO" required name="PONO">
|
||||
<option value="" >Select PO Number</option>
|
||||
<?php
|
||||
echo "////***////";
|
||||
print_r($po);
|
||||
if(!empty($po))
|
||||
{
|
||||
foreach ($po as $po)
|
||||
{
|
||||
|
||||
$PONO = $po->PONO;
|
||||
|
||||
// if ($_POST['PONO'] == $PONO)
|
||||
// {
|
||||
// echo "<option value=\"".$PONO."\" selected=\"selected\">".$PONO.' - '. $SID->PONO."</option>";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
echo "<option value=\"".$PONO."\">".$PONO.' '. $SID->PONO ."</option>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="SelectMaterialCode">Select Material Code</label>
|
||||
<select class="form-control required select2" required="" id="SelectMaterialCode" name="lineitem">
|
||||
<option value="-1">Select Material Code</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="UOM">UOM</label>
|
||||
<input type="text" class="form-control required" id="UOM" readonly name="UOM" value="">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Quantity">Quantity</label>
|
||||
<input type="text" class="form-control required" id="Quantity" name="Quantity" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<label for="Quantity">Description</label>
|
||||
<input style="height: 70px;" type="text" class="form-control required" id="PODescription" readonly name="PODescription" value="<?php echo isset($_POST['PODescription']) ? $_POST['PODescription'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<input type="hidden" name="AssetDept" id="depcode">
|
||||
<label for="AssetDepartment">Asset Department</label>
|
||||
<input type="text" class="form-control required" id="AssetDept" readonly name="" value="">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Quantity">Purchase Date</label>
|
||||
<input id="DateOfPurchase" name="DateOfPurchase" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['DateOfPurchase']) ? $_POST['DateOfPurchase'] : '' ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="SupplierName">Supplier Name</label>
|
||||
<input type="hidden" name="SupplierName" id="SupID">
|
||||
<input id="SupplierName" readonly name="" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['SupplierName']) ? $_POST['SupplierName'] : '' ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="DeliveryDate">Delivery Date</label>
|
||||
<input id="DeliveryDate" readonly name="DeliveryDate" maxlength="10" class="form-control" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<label for="DateOfCommission">Date Of Commission<span style="color:red">*</span></label>
|
||||
<input id="DateOfCommission" required name="DateOfCommission" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['DateOfCommission']) ? $_POST['DateOfCommission'] : '' ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="AssetValue">Asset Value</label>
|
||||
<input type="text" class="form-control" id="Assetvalue" name="Assetvalue"onkeypress="return isNumberKey(event)" title="Please Enter currency value" maxlength="255" value= "<?php echo isset($_POST['Assetvalue']) ? $_POST['Assetvalue'] : '' ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Asset Status">Asset Status</label>
|
||||
<select class="form-control required select2" required id="AssetStatus" name="AssetStatus">
|
||||
<option value="" >Select Asset Status</option>
|
||||
<?php
|
||||
if(!empty($AssetStatus))
|
||||
{
|
||||
foreach ($AssetStatus as $SID)
|
||||
{
|
||||
$AssetValue = $SID->ConfigValue;
|
||||
// if ($_POST['AssetStatus'] == $AssetValue)
|
||||
// {
|
||||
// echo "<option value=\"".$AssetValue."\" selected=\"selected\">".$AssetValue."</option>";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
echo "<option value=\"".$AssetValue."\">".$AssetValue."</option>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="Remarks">Remarks</label>
|
||||
<input type="text" class="form-control required" id="Remarks" name="Remarks" maxlength="500" value= "<?php echo isset($_POST['Remarks']) ? $_POST['Remarks'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class="col-md-3">
|
||||
<input type="checkbox" id="isactive" name="isactive" <?php echo (isset($_POST['isactive']) ? 'checked' : '') ?>> <label for="">IsActive</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
|
||||
<input type="submit" onclick="return Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
|
||||
<b><span for="AssetOwner">Asset User</span></b>
|
||||
<span style="color:red">*</span>
|
||||
<input type="text" class="form-control required" required id="User" name="User" value= "<?php echo isset($_POST['User']) ? $_POST['User'] : '' ?>">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="Location">Asset Location</span></b>
|
||||
<span style="color:red">*</span>
|
||||
<input type="text" class="form-control required" required id="Location" name="Location" value= "<?php echo isset($_POST['Location']) ? $_POST['Location'] : '' ?>">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group"><b>
|
||||
<span for="PONO">Purchase Order Number</span> </b> <span style="color:red">*</span>
|
||||
<select class="form-control required " required id="PONO" required name="PONO">
|
||||
<option value="" >Select PO Number</option>
|
||||
<?php
|
||||
echo "////***////";
|
||||
print_r($po);
|
||||
if(!empty($po))
|
||||
{
|
||||
foreach ($po as $po)
|
||||
{
|
||||
|
||||
$PONO = $po->PONO;
|
||||
|
||||
// if ($_POST['PONO'] == $PONO)
|
||||
// {
|
||||
// echo "<option value=\"".$PONO."\" selected=\"selected\">".$PONO.' - '. $SID->PONO."</option>";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
echo "<option value=\"".$PONO."\">".$PONO.' '. $SID->PONO ."</option>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php
|
||||
$listErrors = session()->getFlashdata('listErrors');
|
||||
if($listErrors)
|
||||
{
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('listErrors'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="padding:0px;">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="SelectMaterialCode">Select Material Code</span>
|
||||
</b>
|
||||
<select class="form-control required select2" required="" id="SelectMaterialCode" name="lineitem">
|
||||
<option value="-1">Select Material Code</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" >
|
||||
<div class="form-group">
|
||||
<b><span for="MaterialCode">Material Code</span></b>
|
||||
<input type="text" class="form-control required" id="MaterialCode" readonly name="MaterialCode" value="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="padding:0px;">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<b><span for="UOM">UOM</span></b>
|
||||
<input type="text" class="form-control required" id="UOM" readonly name="UOM" value="">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
<div class="form-group"><b>
|
||||
<span for="Quantity">Quantity</span></b>
|
||||
<input type="text" class="form-control required" id="Quantity" name="Quantity" value="">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="PODescription">Description</span></b>
|
||||
<input type="text" class="form-control required" id="PODescription" readonly name="PODescription" value="<?php echo isset($_POST['PODescription']) ? $_POST['PODescription'] : '' ?>">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="AssetDept" id="depcode"><b>
|
||||
<span for="AssetDept">Asset Department</span></b>
|
||||
<input type="text" class="form-control required" id="AssetDept" readonly name="" value="">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="DateOfPurchase">Purchase Date</span></b>
|
||||
<input id="DateOfPurchase" name="DateOfPurchase" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['DateOfPurchase']) ? $_POST['DateOfPurchase'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="DateOfPurchase">Supplier Name</span></b>
|
||||
<input type="hidden" name="SupplierName" id="SupID">
|
||||
<input id="SupplierName" readonly name="" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['SupplierName']) ? $_POST['SupplierName'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3" style="padding:0px;">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="DeliveryDate">Delivery Date</span>
|
||||
</b>
|
||||
<input id="DeliveryDate" readonly name="DeliveryDate" maxlength="10" class="form-control" >
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group"><b>
|
||||
<span for="DateOfCommission">Date Of Commission</span></b><span style="color:red">*</span>
|
||||
<input id="DateOfCommission" required name="DateOfCommission" onkeypress="return false;" maxlength="10" class="form-control" value= "<?php echo isset($_POST['DateOfCommission']) ? $_POST['DateOfCommission'] : '' ?>">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="Assetvalue">Asset Value</span>
|
||||
</b>
|
||||
<input type="text" class="form-control" id="Assetvalue" name="Assetvalue"onkeypress="return isNumberKey(event)" title="Please Enter currency value" maxlength="255" value= "<?php echo isset($_POST['Assetvalue']) ? $_POST['Assetvalue'] : '' ?>">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="AssetStatus">Asset Status</span></b><span style="color:red">*</span>
|
||||
<select class="form-control required select2" required id="AssetStatus" name="AssetStatus">
|
||||
<option value="" >Select Asset Status</option>
|
||||
<?php
|
||||
if(!empty($AssetStatus))
|
||||
{
|
||||
foreach ($AssetStatus as $SID)
|
||||
{
|
||||
$AssetValue = $SID->ConfigValue;
|
||||
|
||||
// if ($_POST['AssetStatus'] == $AssetValue)
|
||||
// {
|
||||
// echo "<option value=\"".$AssetValue."\" selected=\"selected\">".$AssetValue."</option>";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
echo "<option value=\"".$AssetValue."\">".$AssetValue."</option>";
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<b>
|
||||
<span for="Remarks">Remarks</span></b>
|
||||
|
||||
<input type="text" class="form-control required" id="Remarks" name="Remarks" maxlength="500" value= "<?php echo isset($_POST['Remarks']) ? $_POST['Remarks'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<input type="checkbox" id="isactive" name="isactive" <?php echo (isset($_POST['isactive']) ? 'checked' : '') ?>> IsActive
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
|
||||
<div class="box-footer" style="text-align:right">
|
||||
<input type="reset" class="btn btn-reset" value="Reset" />
|
||||
<input type="submit" onclick="validate();"class="btn btn-success" value="Submit" />
|
||||
<?php } ?>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
$listErrors = session()->getFlashdata('listErrors');
|
||||
if($listErrors)
|
||||
{
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('listErrors'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- end row -->
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/assets/js/addUser.js" type="text/javascript"></script>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$('#PONO').on('change',function(){
|
||||
var PONO = $(this).val();
|
||||
$('#SupplierName').val('');
|
||||
@ -479,8 +343,7 @@ $(function() {
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
|
||||
function validate()
|
||||
{
|
||||
@ -541,4 +404,50 @@ function validate()
|
||||
|
||||
|
||||
}
|
||||
|
||||
$(function() {
|
||||
var d = new Date();
|
||||
|
||||
var month = d.getMonth();
|
||||
var day = d.getDate();
|
||||
var year = d.getFullYear() ;
|
||||
var SIAStartYear = year - 2015;
|
||||
var mindt = year-70;
|
||||
var maxdt = year-15;
|
||||
|
||||
// $("#PONO").select2();
|
||||
// $("#SelectMaterialCode").select2();
|
||||
//$("#AssetStatus").select2();
|
||||
|
||||
$("#DateOfCommission").datepicker({
|
||||
minDate : new Date(year-SIAStartYear,1,1),
|
||||
maxDate :'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,
|
||||
|
||||
|
||||
|
||||
});
|
||||
$("#DateOfPurchase").datepicker({
|
||||
minDate : new Date(year-SIAStartYear,1,1),
|
||||
maxDate :'now',
|
||||
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
if (charCode != 46 && charCode > 31
|
||||
&& (charCode < 48 || charCode > 57))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
</script>
|
||||
@ -1,18 +1,24 @@
|
||||
<div class="content-wrapper" style="min-height: 537px;">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center> Add Config Details</center>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>configlisting"> <span class="bold">Back</span></a>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
<style>
|
||||
th{
|
||||
background-color: #ddd;
|
||||
}
|
||||
</style>
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title"> Add Config Details</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>configlisting"> <span class="bold">Back</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if ($error) {
|
||||
@ -31,57 +37,94 @@
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>');
|
||||
?> </div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
<div class="box box-success">
|
||||
<?php
|
||||
$attributes = ['class' => 'form-label-left addconfig', 'name' => 'addconfig', 'id' => 'addconfig'];
|
||||
$route = base_url('configurationctrl/saveconfig');
|
||||
echo form_open($route, $attributes);
|
||||
?>
|
||||
|
||||
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>Configuration Name</label>
|
||||
<div class="form-group">
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form role="form" id="adddepartment" action="<?php echo base_url() ?>savedepartment" method="post">
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="ConfigurationName">Configuration Name</label>
|
||||
<?php
|
||||
$data = array('name' => 'configurationname', 'value' => set_value('configurationname'), 'id' => 'configurationname', 'class' => 'form-control', 'required' => 'true', 'maxlength' => '20');
|
||||
echo form_input($data);
|
||||
?>
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="Comments">Comments</label>
|
||||
<?php
|
||||
$data = array('name' => 'Comments', 'value' => set_value('Comments'), 'id' => 'Comments', 'class' => 'form-control', 'required' => 'true', 'maxlength' => '20');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class="col-md-12 text-right">
|
||||
<a data-toggle="modal" href="#AddConfiguration" style="margin-right: 10px;" class="btn btn-success"><i class="fa fa-plus"></i> Add Configuration</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class="col-md-12">
|
||||
<table id="configtable" class="table table-bordered table-hover responsive-utilities jambo_table" style="background-color:#fff;font-size:12px;" >
|
||||
<thead>
|
||||
<th>S.NO</th>
|
||||
<th>Configuration Value</th>
|
||||
<th>Action</th>
|
||||
</thead>
|
||||
|
||||
<tbody id="tempAppend">
|
||||
<!--<tr>
|
||||
<td>001</td>
|
||||
<td>100</td>
|
||||
|
||||
<td>
|
||||
<a data-toggle="modal" href="#Edit"><i class="fa fa-pencil"></i> </a>
|
||||
<a><i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>-->
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<input type="hidden" name="newhidden" id="newhidden" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>Comments</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Comments', 'value' => set_value('Comments'), 'id' => 'Comments', 'class' => 'form-control', 'required' => 'true', 'maxlength' => '20');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div col="row">
|
||||
<div style="text-align:right">
|
||||
<a data-toggle="modal" href="#AddConfiguration" style="margin-right: 10px;" class="btn btn-success"><i class="fa fa-plus"></i> Add Configuration</a>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="AddConfiguration" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
|
||||
<input type="submit" onclick="return Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if ($error) {
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true"><EFBFBD></button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if ($success) {
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true"><EFBFBD></button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
t <!-- end row -->
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
|
||||
<div class="modal fade" id="AddConfiguration" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<!-- Modal Header -->
|
||||
@ -124,36 +167,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><br>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="table-responsive">
|
||||
<table id="configtable" class="table table-bordered table-hover responsive-utilities jambo_table" style="background-color:#fff;font-size:12px;" >
|
||||
<thead>
|
||||
<th>S.NO</th>
|
||||
<th>Configuration Value</th>
|
||||
<th>Action</th>
|
||||
</thead>
|
||||
|
||||
<tbody id="tempAppend">
|
||||
<!--<tr>
|
||||
<td>001</td>
|
||||
<td>100</td>
|
||||
|
||||
<td>
|
||||
<a data-toggle="modal" href="#Edit"><i class="fa fa-pencil"></i> </a>
|
||||
<a><i class="fa fa-trash"></i> </a>
|
||||
</td>
|
||||
</tr>-->
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<input type="hidden" name="newhidden" id="newhidden" />
|
||||
|
||||
<!-- Modal For edit -->
|
||||
<div class="modal fade" id="Edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal fade" id="Edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<!-- Modal Header -->
|
||||
@ -190,55 +205,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content"></div>
|
||||
<div class="box-footer" style="text-align:right">
|
||||
<!--<input type="text" name="txtRowCount" id="txtRowCount" />-->
|
||||
<input type="hidden" name="txtRowCount" id="txtRowCount" />
|
||||
<a href="" class="btn btn-cancel" id="cancel" value="Cancel">Cancel</a>
|
||||
<input type="submit" class="btn btn-success" value="Submit" />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if ($error) {
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true"><EFBFBD></button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if ($success) {
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true"><EFBFBD></button>
|
||||
<?php echo session()->getFlashdata('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"><3E></button></div>');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<script type="text/html" id="tempList">
|
||||
<tr id="<%=index%>">
|
||||
|
||||
|
||||
@ -1,4 +1,121 @@
|
||||
|
||||
<style>
|
||||
.pad{
|
||||
padding-bottom:1%;
|
||||
}
|
||||
.badge
|
||||
{
|
||||
color:red; background-color:#fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Add Department Details</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>departmentListing"> <span class="bold">Back</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="p-2">
|
||||
<form role="form" id="adddepartment" action="<?php echo base_url() ?>savedepartment" method="post">
|
||||
<div class="box-body">
|
||||
<!-- Supplier Information -->
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<legend>Department Information</legend>
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="DepartmentName">Department Name<span class="badge">*</span></label>
|
||||
<input type="text" name="DepartmentName" id="DepartmentName" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="HeadDepartment">Head Department<span class="badge">*</span></label>
|
||||
<select class="form-control required" id="HeadDept" name="HeadDept">
|
||||
<option value="-1" required>Select Department Code</option>
|
||||
<?php
|
||||
if(!empty($depcode))
|
||||
{
|
||||
foreach ($depcode as $DC)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $DC->DEPCode?>"><?php echo $DC->DEPCode." - " .$DC->DepartmentName ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:10px">
|
||||
<div class="col-md-3">
|
||||
<input type="checkbox" id="IsActive" name="IsActive" >
|
||||
<span for="Active">Is Active</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
|
||||
<input type="submit" onclick="return Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
// function blockKeyPress(evt)
|
||||
@ -44,158 +161,4 @@
|
||||
// return true;
|
||||
// }
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* legend{
|
||||
color:#00c0ef ! important;
|
||||
} */
|
||||
|
||||
.pad{
|
||||
padding-bottom:1%;
|
||||
}
|
||||
.badge
|
||||
{
|
||||
color:red; background-color:#fff;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<center> Add Department Details</center>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>departmentListing"> <span class="bold">Back</span></a>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
|
||||
<section class="content">
|
||||
<br/>
|
||||
<div class="row">
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
<!-- general form elements -->
|
||||
|
||||
|
||||
<div class="box">
|
||||
|
||||
<!-- form start -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1"> <!--style="border:3px solid #00d976;;">-->
|
||||
<form class="form-horizontal" role="form" id="adddepartment" action="<?php echo base_url() ?>savedepartment" method="post" role="form"><br/>
|
||||
<fieldset>
|
||||
|
||||
<!-- Form Name -->
|
||||
<legend>Department Information</legend>
|
||||
|
||||
<div class="col-md-3 pad">
|
||||
<span for="DepartmentName">Department Name</span><span class="badge">*</span>
|
||||
<input type="text" name="DepartmentName" id="DepartmentName" class="form-control" required>
|
||||
|
||||
</div>
|
||||
|
||||
<!--div class="col-md-3 pad">
|
||||
<span for="DEPCode">Department Code</span><span class="badge">*</span>
|
||||
<input type="text" name="DEPCode" id="DEPCode" class="form-control" >
|
||||
</div>-->
|
||||
|
||||
<div class="col-md-3 pad">
|
||||
<span for="HeadDept">Head Department</span>
|
||||
<select class="form-control required" id="HeadDept" name="HeadDept">
|
||||
<option value="-1" required>Select Department Code</option>
|
||||
<?php
|
||||
if(!empty($depcode))
|
||||
{
|
||||
foreach ($depcode as $DC)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $DC->DEPCode?>"><?php echo $DC->DEPCode." - " .$DC->DepartmentName ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-offset-1 col-md-2">
|
||||
<div class="form-group">
|
||||
<span for="Active">Is Active</span> <br>
|
||||
<input type="checkbox" id="IsActive" name="IsActive" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Address Section -->
|
||||
<!-- Form Name -->
|
||||
|
||||
<!-- Text input-->
|
||||
<!-- <div class="col-md-3 pad">
|
||||
<span for="EmailAddress">CreatedBY</span><span class="badge">*</span>
|
||||
<input type="email" name="emailid" id="emailid" required maxlength="100" class="form-control">
|
||||
</div>
|
||||
<div class="col-md-3 pad">
|
||||
<span for="EmailAddress">CreatedDate</span><span class="badge">*</span>
|
||||
<input type="email" name="emailid" id="emailid" required maxlength="100" class="form-control">
|
||||
</div>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-3 col-md-offset-9">
|
||||
<div class="pull-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" value="Reset" />
|
||||
<input type="submit" onclick="return Validat();" class="btn btn-success" value="Submit"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div><!-- /.col-lg-12 -->
|
||||
</div><!-- /.row -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if($error)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if($success)
|
||||
{
|
||||
?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php // \Config\Services::validation()->listErrors('<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>
|
||||
@ -50,7 +50,7 @@
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addasset">Add New Asset</a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>exportasset">Export Asset Details <i class="fa fa-download" aira-hidden="true"></i></a>
|
||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>exportasset">Export Asset Details <i class="fa fa-download" aira-hidden="true"></i></a> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
@ -421,6 +421,9 @@ function ValidateUA() {
|
||||
/* legend{
|
||||
color:#00c0ef ! important;
|
||||
} */
|
||||
th{
|
||||
background-color: #ddd;
|
||||
}
|
||||
.form-group
|
||||
{
|
||||
padding-bottom:4%;
|
||||
@ -434,416 +437,328 @@ function ValidateUA() {
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<CENTER>Company Profile</CENTER>
|
||||
|
||||
</h1>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="content" id="content">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if ($error) {
|
||||
?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
$success = session()->getFlashdata('success');
|
||||
if ($success) {
|
||||
?>
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php // \Config\Services::validation()->listErrors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>');
|
||||
?> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div class="row" style="font-size:12px">
|
||||
<!-- left column -->
|
||||
<div class="col-md-12">
|
||||
<!-- general form elements -->
|
||||
|
||||
<div class="box box-success">
|
||||
<!-- /.box-header -->
|
||||
<!-- form start -->
|
||||
|
||||
|
||||
<form role="form" id="addemployee" action="<?php echo base_url()?>Updatecompany" method="post" enctype="multipart/form-data">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1"> <!-- style="border:3px solid #00d976;;"> -->
|
||||
<form class="form-horizontal" role="form" >
|
||||
<fieldset>
|
||||
|
||||
<!-- Form Name -->
|
||||
<legend>Company Information</legend>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<div class="box-header">
|
||||
<img id="profilepicture" src="<?= base_url().'public/uploads/images/avatar.png'; ?>" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,0);" id="photo" value="<?php echo $ProfilePic ;?>" name="photo"/>
|
||||
<label for="photo">Select Company Logo<br/><small>(only .jpg or .png)</small></label>
|
||||
<input type="hidden" name="Image" id="Image" value="<?php echo $ProfilePic ; ?>" class="form-control" readonly>
|
||||
<input type="hidden" name="ModifyImage" id="ModifyImage" class="form-control" readonly>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6 pad"><span>CompanyID</span><span class="badge">*</span>
|
||||
<input type="text" name="CompanyID" maxlength="100" id="CompanyID" value="<?php echo $CompID;?>" class="form-control" readonly>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 pad"><span>CompanyName</span><span class="badge">*</span>
|
||||
<input type="text" name="CompanyName" onkeypress="return onlyAlphabets(event);" maxlength="100" id="CompanyName" class="form-control" required value="<?php echo $CompanyName;?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6 pad"><span>ContactNumber</span><span class="badge">*</span>
|
||||
<input type="text" name="ContactNumber" onchange="getMobileValidation();" id="ContactNumber" maxlength="12" class="form-control" value="<?php echo $ContactNumber;?>" required onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 pad"><span>AlternateContactNumber</span><span class="badge">*</span>
|
||||
<input type="text" name="AlternateContactNumber" onchange="ValidateAlternateContact();" id="AlternateContactNumber" maxlength="12" class="form-control" value="<?php echo $AlternateContactNumber;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6 pad"><span>Email Address</span>
|
||||
<input type="email" name="EmailAddress" onchange="validateEmail();"id="EmailAddress" class="form-control" value="<?php echo $EmailAddress;?>">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 pad"><span>Excise Registration</span><span class="badge">*</span>
|
||||
<!-- <input type="text" name="Exiseregistration1" id="ExiseRegistration1" maxlength="15" class="form-control" value="<?php echo $Exiseregistration ;?>" pattern="(?=.*[A-Za-z]).{5}(?=.*[0-9]).{4}(?=.*[A-Za-z]).{1}(?=.*[A-Za-z]).{2}(?=.*[0-9]).{3}" required onchange="ValidateExno();" style="text-transform: uppercase"> -->
|
||||
<input type="text" name="Exiseregistration1" id="ExiseRegistration1" maxlength="15" class="form-control" value="<?php echo $Exiseregistration ;?>" pattern="([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}([A-Za-z]){2}([0-9]){3}" required onchange="ValidateExno();" style="text-transform: uppercase">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-6 pad"><span>Company Website</span><span class="badge">*</span>
|
||||
<input type="text" name="companywebsite" id="companywebsite" maxlength="100" class="form-control" value="<?php echo $companywebsite ;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 pad"><span>Financial Year StartON</span><span class="badge">*</span>
|
||||
<input name="financialstart" id="financialstart" maxlength="10" class="form-control" value="<?php echo $financialstart ;?>" required>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 pad"><span>Financial Year EndON</span><span class="badge">*</span>
|
||||
<input name="financialend" id="financialend" maxlength="10" class="form-control" value="<?php echo $financialend ;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Address Section -->
|
||||
<!-- Form Name -->
|
||||
<legend>Address Details</legend>
|
||||
<!-- Text input-->
|
||||
<!-- <div class="form-group"> -->
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 pad"><span>Address</span><span class="badge">*</span>
|
||||
<input type="text" id="Address" name="Address" maxlength="500" class="form-control" value="<?php echo $Address;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<br>
|
||||
<!-- Text input-->
|
||||
|
||||
<!-- Text input-->
|
||||
|
||||
|
||||
|
||||
<!-- profile Section -->
|
||||
<!-- Form Name -->
|
||||
<legend>Tax Related Data</legend>
|
||||
<!-- Text input-->
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<span for="payablefrom" style="width :25%";>Payable Terms</span>
|
||||
<select class="form-control required" id="PaymentTerms" name="PaymentTerms" onchange="payment_hidden();">
|
||||
<option value="<?php echo $PaymentTerms;?>" ><?php echo $PaymentTerms;?></option>
|
||||
<?php
|
||||
if(!empty($payment))
|
||||
{
|
||||
foreach ($payment as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->PaymentID ?>"><?php echo $rl->PaymentTerms ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="hidden" id="paymentid" name="paymentid" value="<?php echo $PaymentId;?>" >
|
||||
</div>
|
||||
|
||||
<!--<div class="col-md-3">
|
||||
<span for="PayableAT">Payable AT</span>
|
||||
<input type="text" class="form-control required" id="PayableAT" name="PayableAT" value="<?php // echo $PayableAT;?>" required>
|
||||
</div>-->
|
||||
|
||||
<!-- <div class="col-md-3"><span>Payment Date</span><br/>
|
||||
<label class="radio-inline"><input type="radio" name="PaymentDays" value="Before">Before</label>
|
||||
<label class="radio-inline"><input type="radio" name="PaymentDays" value="After">After</label>
|
||||
</div>-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<!--<div class="form-group">
|
||||
<div class="col-md-3"><span>Created BY</span>
|
||||
<input type="text" id="Createdby" name="createdname" maxlength="10" onkeypress="return isNumberKey(event)" class="form-control" value="<?php echo $firstname;?>" readonly>
|
||||
</div>
|
||||
<div class="col-md-3"><span>Create date</span>
|
||||
<input type="text" id="CreatedDate" name="CreatedDate" maxlength="100" class="form-control" value="<?php echo $CreatedDate;?>" readonly>
|
||||
</div>-->
|
||||
|
||||
|
||||
<legend>ID Proof</legend>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-12 pad">
|
||||
|
||||
<div class="col-md-4"><span>UA Number</span>
|
||||
<input type="text" id="UANumber" name="UANumber" onchange="ValidateUA();" maxlength="15" class="form-control" value="<?php echo $UANumber;?>" pattern="([a-zA-Z]){5}([0-9]){10}" style="text-transform: uppercase">
|
||||
</div>
|
||||
<div class="col-md-4"><span>TIN Number</span>
|
||||
<input type="text" id="TIN" name="TIN" maxlength="11" class="form-control" value="<?php echo $TIN;?>" pattern="(.){11,11}" onkeypress="return isNumberKey(event)" title="Please Enter 11 digit Number">
|
||||
</div>
|
||||
<div class="col-md-4"><span>MSME Number</span>
|
||||
<input type="text" id="MSME" name="MSME" class="form-control" value="<?php echo $MSME;?>" title="Please Enter MSME" style="text-transform: uppercase">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 pad">
|
||||
<div class="col-md-4"><span>GST Range</span>
|
||||
<input type="text" id="GSTRange" name="GSTRange" maxlength="100" class="form-control" value="<?php echo $GSTRange;?>">
|
||||
</div>
|
||||
<div class="col-md-4"><span>GST Number</span><span class="badge">*</span>
|
||||
<!-- <input type="text" id="GSTNO" maxlength="15" onchange="validateGST();" name="GSTNO" class="form-control" style="text-transform: uppercase" value="<?php echo $GSTNO;?>" pattern="(?=.*[0-9]).{2}(?=.*[A-Za-z]).{5}(?=.*[0-9]).{4}(?=.*[A-Za-z]).{1}(?=.*[0-9]).{1}(?=.*[Zz]).{1}(?=.*[A-Za-z0-9]).{1}" required title="Please Enter 2 Digit Number and 5 Character and 4 Digit Numbers and 1 Character and 1 Number and should be 'Z' only and 1 Number"> -->
|
||||
<input type="text" id="GSTNO" maxlength="15" onchange="validateGST();" name="GSTNO" class="form-control" style="text-transform: uppercase" value="<?php echo $GSTNO;?>" pattern="([0-9]){2}([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}([0-9]){1}([Zz]){1}([A-Za-z0-9]){1}" required title="Please Enter 2 Digit Number and 5 Character and 4 Digit Numbers and 1 Character and 1 Number and should be 'Z' only and 1 Number">
|
||||
</div>
|
||||
<div class="col-md-4"><span>PAN Number</span><span class="badge">*</span>
|
||||
<!-- <input type="text" id="PAN" maxlength="10" name="PAN" onchange="validatePAN();" class="form-control" style="text-transform: uppercase" value="<?php echo $PAN;?>" pattern="(?=.*[A-Za-z]).{5,}(?=.*[0-9]).{4,}(?=.*[A-Za-z]).{1,}" required> -->
|
||||
<input type="text" id="PAN" maxlength="10" name="PAN" onchange="validatePAN();" class="form-control" style="text-transform: uppercase" value="<?php echo $PAN;?>" pattern="([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-md-12 pad">
|
||||
|
||||
<!-- <div class="form-group"> -->
|
||||
<div class="col-md-12"><span>Collectrate Address</span><span class="badge">*</span>
|
||||
<input type="text" id="CollectrateAddress" required name="CollectrateAddress" maxlength="500" class="form-control" value="<?php echo $CollectrateAddress;?>" required >
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
|
||||
<!--bank details-->
|
||||
<legend>Bank Details</legend>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-3"><span>Bank Name</span>
|
||||
<input type="text" id="BankName" name="BankName" maxlength="500" class="form-control" value="<?php echo $bankname;?>">
|
||||
</div>
|
||||
<div class="col-md-3"><span>IFSC</span>
|
||||
<input type="text" id="IFSC" name="IFSC" maxlength="500" class="form-control" value="<?php echo $bankifsc;?>">
|
||||
</div>
|
||||
<div class="col-md-3"><span>Bank Account Number</span>
|
||||
<input type="text" id="BankAccno" name="BankAccno" maxlength="500" class="form-control" onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
<div class="col-md-3"><span>Bank Address</span>
|
||||
<input type="text" id="BankAddress" name="BankAddress" maxlength="500" class="form-control" value="<?php echo $bankaddress;?>">
|
||||
</div>
|
||||
<input type="hidden" id="BankState" name="BankState" class="form-control" value="Yes">
|
||||
<div class="col-md-12 text-right" style="padding: 19px;">
|
||||
<!-- <div class="col-md-6"><span>State</span><div>padding: 49px
|
||||
<input type="radio" name="Bankstate" id="Bankstate" value="1" checked> Active<br>
|
||||
<input type="radio" name="Bankstate" id="Bankstate" value="0">InActive<br></div>
|
||||
</div>
|
||||
<div class="col-md-6">-->
|
||||
<a class="btn btn-success font Add" ID="Add"> <span class="bold">Add/Update Bank Detail</span></a>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-xs-12 pad" style="padding: 0px 30px 0px 30px;">
|
||||
<table id="banktable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
||||
<thead >
|
||||
<tr>
|
||||
<th>BankName</th>
|
||||
<th>IFSC</th>
|
||||
<th>BankAccountNumber</th>
|
||||
<th>BankAddress</th>
|
||||
<th>IsActive</th>
|
||||
<!-- <th>Action</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- <tbody> -->
|
||||
<tbody id="databaseAppend">
|
||||
<?php if(!empty($bankdetails))
|
||||
{
|
||||
|
||||
foreach ($bankdetails as $uf)
|
||||
|
||||
{
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td style="width: 15%;"><?php echo $uf->Bank_name ?></td>
|
||||
<td style="width: 18%;" contenteditable='true'><?php echo $uf->IFSC ?></td>
|
||||
<td style="width: 18%;" contenteditable='true'><?php echo $uf->Bank_AccNo ?></td>
|
||||
<td style="width: 40%;" contenteditable='true'><?php echo $uf->Address ?></a></td>
|
||||
<td style="width: 10%;" contenteditable='true'>
|
||||
<?php if($uf->Is_Active == 1 )
|
||||
{
|
||||
echo 'Yes';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'No';
|
||||
}
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
<!-- Start Content-->
|
||||
<div class="container-fluid">
|
||||
<!-- start page title -->
|
||||
<?php
|
||||
helper('form');
|
||||
$error = session()->getFlashdata('error');
|
||||
if ($error) {
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<legend>Upload File</legend>
|
||||
<div class="col-md-12 pad">
|
||||
<div class="col-md-3"><span>File Description</span>
|
||||
|
||||
<select class="form-control required" id="filedescription" name="filedescription">
|
||||
<option value="CERTIFICATION" >Select File Type</option>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('error'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php
|
||||
if(!empty($filetype))
|
||||
{
|
||||
foreach ($filetype as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->ConfigValue ?>"><?php echo $rl->ConfigValue ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$success = session()->getFlashdata('success');
|
||||
if ($success) {
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="col-md-3" "box-header">
|
||||
|
||||
<input type = "file" size = "20" input accept=".docx,.pdf,.doc.JPG,.PNG" onchange="readURL(this,1);" id="images" name="images"/>
|
||||
<label for="images">Select Company file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-3 col-md-offset-9">
|
||||
<div class="pull-right">
|
||||
|
||||
<input type="submit" id="submit" onclick="valid();" class="btn btn-success" value="Submit" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<table id="datatable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
||||
<thead >
|
||||
|
||||
<tr>
|
||||
<th>filedescription</th>
|
||||
<th>filename</th>
|
||||
<th>uploadedby</th>
|
||||
<th>uploadedon</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(!empty($filenames))
|
||||
{
|
||||
|
||||
foreach ($filenames as $uf)
|
||||
|
||||
{
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td ><?php echo $uf->filedescription ?></td>
|
||||
<td><?php echo $uf->filename ?></a></td>
|
||||
<td><?php echo $firstname;?></td>
|
||||
<td><?php echo $uf->createdDate ?></td>
|
||||
<td>
|
||||
<!--<a href="<?php echo base_url().'user/editOld?UID='.$uf->filename;?>"><i class="fa fa-pencil"></i> </a>-->
|
||||
<a onclick="deletefile(<?php echo $uf->ID;?>)"><i class="fa fa-trash"></i> </a>
|
||||
<a href="<?php echo base_url().'public/uploads/files/'?><?php echo $uf->filename ?>"><i class="fa fa-download" ></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
</div><!-- /.col-lg-12 -->
|
||||
</div><!-- /.row -->
|
||||
|
||||
</form>
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<?php echo session()->getFlashdata('success'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Company Profile</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-cancel" href="<?php echo base_url(); ?>supplierlisting"> <span class="bold">Back</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="p-2">
|
||||
<form class="form-horizontal" role="form" id="addemployee" action="<?php echo base_url() ?>Updatecompany" method="post" role="form" enctype="multipart/form-data">
|
||||
<div class="box-body">
|
||||
<!-- Supplier Information -->
|
||||
<legend style="margin-left:-10px">Company Information</legend>
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row">
|
||||
<div class=" col-md-3">
|
||||
<img id="profilepicture" src="<?= base_url().'public/uploads/images/avatar.png'; ?>" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,0);" id="photo" value="<?php echo $ProfilePic ;?>" name="photo"/>
|
||||
<label for="photo">Select Company Logo<br/><small>(only .jpg or .png)</small></label>
|
||||
<input type="hidden" name="Image" id="Image" value="<?php echo $ProfilePic ; ?>" class="form-control" readonly>
|
||||
<input type="hidden" name="ModifyImage" id="ModifyImage" class="form-control" readonly>
|
||||
</div>
|
||||
<div class=" col-md-3">
|
||||
<label class="col-form-label" for="CompanyID">CompanyID<span class="badge">*</span></label>
|
||||
<input type="text" name="CompanyID" maxlength="100" id="CompanyID" value="<?php echo $CompID;?>" class="form-control" readonly>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="CompanyName">CompanyName</label>
|
||||
<input type="text" name="CompanyName" onkeypress="return onlyAlphabets(event);" maxlength="100" id="CompanyName" class="form-control" required value="<?php echo $CompanyName;?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label class="col-form-label" for="ContactNumber">Contact Number<span class="badge">*</span></label>
|
||||
<input type="text" name="ContactNumber" onchange="getMobileValidation();" id="ContactNumber" maxlength="12" class="form-control" value="<?php echo $ContactNumber;?>" required onkeypress="return isNumberKey(event)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" >
|
||||
<div class="col-md-3" style="margin-top:20px">
|
||||
<label for="AlternateContactNumber">Alternate Contact Number</label><!--<span class="badge">*</span>-->
|
||||
<input type="text" name="AlternateContactNumber" onchange="ValidateAlternateContact();" id="AlternateContactNumber" maxlength="12" class="form-control" value="<?php echo $AlternateContactNumber;?>" required>
|
||||
</div>
|
||||
<div class="col-md-3" style="margin-top:20px">
|
||||
<label for="EmailAddress">Email Address</label><!--<span class="badge">*</span>-->
|
||||
<input type="email" name="EmailAddress" onchange="validateEmail();"id="EmailAddress" class="form-control" value="<?php echo $EmailAddress;?>">
|
||||
</div>
|
||||
<div class="col-md-3" style="margin-top:20px">
|
||||
<label for="ExciseRegistration">Excise Registration</label><!--<span class="badge">*</span>-->
|
||||
<input type="text" name="Exiseregistration1" id="ExiseRegistration1" maxlength="15" class="form-control" value="<?php echo $Exiseregistration ;?>" pattern="([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}([A-Za-z]){2}([0-9]){3}" required onchange="ValidateExno();" style="text-transform: uppercase">
|
||||
</div>
|
||||
<div class="col-md-3" style="margin-top:20px">
|
||||
<label for="AlternateContactNumber">Company Website</label><!--<span class="badge">*</span>-->
|
||||
<input type="text" name="companywebsite" id="companywebsite" maxlength="100" class="form-control" value="<?php echo $companywebsite ;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" >
|
||||
<div class="col-md-3" style="margin-top:20px">
|
||||
<label for="FinancialYearStartON">Financial Year StartON</label><!--<span class="badge">*</span>-->
|
||||
<input name="financialstart" id="financialstart" maxlength="10" class="form-control" value="<?php echo $financialstart ;?>" required>
|
||||
</div>
|
||||
<div class="col-md-3" style="margin-top:20px">
|
||||
<label for="FinancialYearEndON">Financial Year EndON</label><!--<span class="badge">*</span>-->
|
||||
<input name="financialend" id="financialend" maxlength="10" class="form-control" value="<?php echo $financialend ;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Address Section -->
|
||||
<legend style="margin-left:-10px">Address Details</legend>
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row">
|
||||
<div class=" col-md-12">
|
||||
<label class="col-form-label" for="Address">Address<span class="badge">*</span></label>
|
||||
<input type="text" id="Address" name="Address" maxlength="500" class="form-control" value="<?php echo $Address;?>" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Tax Related Data -->
|
||||
<legend style="margin-left:-10px">Tax Related Data</legend>
|
||||
<!-- Text input-->
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row" style="margin-bottom: 20px;">
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="GSTNo">Payable Terms</label>
|
||||
<select class="form-control required" id="PaymentTerms" name="PaymentTerms" onchange="payment_hidden();">
|
||||
<option value="<?php echo $PaymentTerms;?>" ><?php echo $PaymentTerms;?></option>
|
||||
<?php
|
||||
if(!empty($payment))
|
||||
{
|
||||
foreach ($payment as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->PaymentID ?>"><?php echo $rl->PaymentTerms ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type="hidden" id="paymentid" name="paymentid" value="<?php echo $PaymentId;?>" > </div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Bank Details-->
|
||||
<legend style="margin-left:-10px">ID Proof</legend>
|
||||
|
||||
<div class="col-md-12" style="margin-bottom: 27px;">
|
||||
<div class="form-row">
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="UANumber">UA Number<span class="badge">*</span></label>
|
||||
<input type="text" id="UANumber" name="UANumber" onchange="ValidateUA();" maxlength="15" class="form-control" value="<?php echo $UANumber;?>" pattern="([a-zA-Z]){5}([0-9]){10}" style="text-transform: uppercase"> </div>
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="TINNumber">TIN Number<span class="badge">*</span></label>
|
||||
<input type="text" id="TIN" name="TIN" maxlength="11" class="form-control" value="<?php echo $TIN;?>" pattern="(.){11,11}" onkeypress="return isNumberKey(event)" title="Please Enter 11 digit Number"> </div>
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="MSMENumber">MSME Number</label>
|
||||
<input type="text" id="MSME" name="MSME" class="form-control" value="<?php echo $MSME;?>" title="Please Enter MSME" style="text-transform: uppercase"> </div>
|
||||
</div>
|
||||
<div class="form-row" style="margin-top:20px">
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="GSTRange">GST Range<span class="badge">*</span></label>
|
||||
<input type="text" id="GSTRange" name="GSTRange" maxlength="100" class="form-control" value="<?php echo $GSTRange;?>">
|
||||
</div>
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="GSTNumber">GST Number<span class="badge">*</span></label>
|
||||
<input type="text" id="GSTNO" maxlength="15" onchange="validateGST();" name="GSTNO" class="form-control" style="text-transform: uppercase" value="<?php echo $GSTNO;?>" pattern="([0-9]){2}([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}([0-9]){1}([Zz]){1}([A-Za-z0-9]){1}" required title="Please Enter 2 Digit Number and 5 Character and 4 Digit Numbers and 1 Character and 1 Number and should be 'Z' only and 1 Number"> </div>
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="PANNumber">PAN Number<span class="badge">*</span></label>
|
||||
<input type="text" id="PAN" maxlength="10" name="PAN" onchange="validatePAN();" class="form-control" style="text-transform: uppercase" value="<?php echo $PAN;?>" pattern="([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}" required> </div>
|
||||
<div class=" col-md-4">
|
||||
<label class="col-form-label" for="CollectrateAddress">Collectrate Address<span class="badge">*</span></label>
|
||||
<input type="text" id="CollectrateAddress" required name="CollectrateAddress" maxlength="500" class="form-control" value="<?php echo $CollectrateAddress;?>" required > </div>
|
||||
</div>
|
||||
|
||||
<legend style="margin-left:-10px">Bank Details</legend>
|
||||
<!-- Text input-->
|
||||
|
||||
<div class="form-row" style="margin-bottom: 27px;">
|
||||
<div class="col-md-3">
|
||||
<span for="BankName">Bank Name</span>
|
||||
<input type="text" id="BankName" name="BankName" maxlength="500" class="form-control" value="<?php echo $bankname;?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<span for="IFSC">IFSC</span>
|
||||
<input type="text" id="IFSC" name="IFSC" maxlength="500" class="form-control" value="<?php echo $bankifsc;?>"> </div>
|
||||
<div class="col-md-3">
|
||||
<span for="BankAccountNumber">Bank Account Number</span>
|
||||
<input type="text" id="BankAccno" name="BankAccno" maxlength="500" class="form-control" onkeypress="return isNumberKey(event)"> </div>
|
||||
<div class="col-md-3">
|
||||
<span for="BankName">Bank Address</span>
|
||||
<input type="text" id="BankAddress" name="BankAddress" maxlength="500" class="form-control" value="<?php echo $bankaddress;?>"> </div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="BankState" name="BankState" class="form-control" value="Yes">
|
||||
<div class="form-row" style="padding: 19px;">
|
||||
<div class="col-md-12 text-right">
|
||||
<a class="btn btn-success font Add" ID="Add"> <span class="bold">Add/Update Bank Detail</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="padding: 19px;">
|
||||
<div class="col-md-12">
|
||||
<table id="banktable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
||||
<thead >
|
||||
<tr>
|
||||
<th>BankName</th>
|
||||
<th>IFSC</th>
|
||||
<th>BankAccountNumber</th>
|
||||
<th>BankAddress</th>
|
||||
<th>IsActive</th>
|
||||
<!-- <th>Action</th> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="databaseAppend">
|
||||
<?php if(!empty($bankdetails)){
|
||||
foreach ($bankdetails as $uf) { ?>
|
||||
<tr>
|
||||
<td style="width: 15%;"><?php echo $uf->Bank_name ?></td>
|
||||
<td style="width: 18%;" contenteditable='true'><?php echo $uf->IFSC ?></td>
|
||||
<td style="width: 18%;" contenteditable='true'><?php echo $uf->Bank_AccNo ?></td>
|
||||
<td style="width: 40%;" contenteditable='true'><?php echo $uf->Address ?></a></td>
|
||||
<td style="width: 10%;" contenteditable='true'>
|
||||
<?php if($uf->Is_Active == 1 )
|
||||
{
|
||||
echo 'Yes';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'No';
|
||||
}
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php } } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<legend style="margin-left:-10px">Upload File</legend>
|
||||
<div class="form-row" style="padding: 19px;">
|
||||
<div class="col-md-4">
|
||||
<span for="FileDescription">File Description</span>
|
||||
<select class="form-control required" id="filedescription" name="filedescription">
|
||||
<option value="CERTIFICATION" >Select File Type</option>
|
||||
<?php
|
||||
if(!empty($filetype))
|
||||
{
|
||||
foreach ($filetype as $rl)
|
||||
{
|
||||
?>
|
||||
<option value="<?php echo $rl->ConfigValue ?>"><?php echo $rl->ConfigValue ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<input type = "file" size = "20" input accept=".docx,.pdf,.doc.JPG,.PNG" onchange="readURL(this,1);" id="images" name="images"/>
|
||||
<label for="images">Select Company file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row" style="padding: 19px;">
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="submit" id="submit" onclick="valid();" class="btn btn-success" value="Submit" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row"style="padding: 19px;">
|
||||
<div class="col-md-12">
|
||||
<table id="datatable" class="table table-hover table-bordered" style="background-color:#fff;font-size:12px;" >
|
||||
<thead >
|
||||
|
||||
<tr>
|
||||
<th>filedescription</th>
|
||||
<th>filename</th>
|
||||
<th>uploadedby</th>
|
||||
<th>uploadedon</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if(!empty($filenames))
|
||||
{
|
||||
|
||||
foreach ($filenames as $uf)
|
||||
|
||||
{
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td ><?php echo $uf->filedescription ?></td>
|
||||
<td><?php echo $uf->filename ?></a></td>
|
||||
<td><?php echo $firstname;?></td>
|
||||
<td><?php echo $uf->createdDate ?></td>
|
||||
<td>
|
||||
<!--<a href="<?php echo base_url().'user/editOld?UID='.$uf->filename;?>"><i class="fa fa-pencil"></i> </a>-->
|
||||
<a onclick="deletefile(<?php echo $uf->ID;?>)"><i class="fa fa-trash"></i> </a>
|
||||
<a href="<?php echo base_url().'public/uploads/files/'?><?php echo $uf->filename ?>"><i class="fa fa-download" ></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 text-right">
|
||||
<input type="reset" id="reset" class="btn btn-reset" style="background-color: red;color: white; margin-right: 15px;width: 80px;" value="Reset" />
|
||||
<input type="submit" onclick="return Validate();" value="Submit" class="btn btn-success">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<!-- end row -->
|
||||
</div> <!-- container -->
|
||||
</div> <!-- content -->
|
||||
</div>
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/assets/js/addUser.js" type="text/javascript"></script>
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a data-toggle="modal" href="#ccwizard" data-id="0" data-name="" class="btn btn-success">Add New Cost List</a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>exportcost">Export Cost Details <i class="fa fa-download" aira-hidden="true"></i></a>
|
||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>exportcost">Export Cost Details <i class="fa fa-download" aira-hidden="true"></i></a> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>adddepartment">Add New department</a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>exportdepartment">Export department details <i class="fa fa-download" aira-hidden="true"></i></a>
|
||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>exportdepartment">Export department details <i class="fa fa-download" aira-hidden="true"></i></a> -->
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@ -58,7 +58,41 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
|
||||
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
|
||||
<style>
|
||||
th{
|
||||
background-color: #ddd !important;
|
||||
}
|
||||
.btn.btn-secondary.buttons-html5 , .btn.btn-secondary.buttons-print{
|
||||
border: 1px solid grey;
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
legend {
|
||||
border-bottom: 2px solid #FFF !important;
|
||||
margin-left: -2%;
|
||||
}
|
||||
.form-group {
|
||||
padding-bottom: 4%;
|
||||
}
|
||||
.badge {
|
||||
color: red;
|
||||
background-color: #fff;
|
||||
}
|
||||
.btn-cancel {
|
||||
background-color: grey; /* Red color */
|
||||
color: white;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
margin: 4px 2px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn-cancel:hover {
|
||||
background-color: #02a8b5; /* Darker red on hover */
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
.date_range{
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addRawmaterial">Add New Material</a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>exportmaterial">Export Material Master <i class="fa fa-download" aira-hidden="true"></i></a>
|
||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>exportmaterial">Export Material Master <i class="fa fa-download" aira-hidden="true"></i></a> -->
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
<div class="col-6 text-right">
|
||||
<div class="form-group">
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>addsupplier">Add New Supplier</a>
|
||||
<a class="btn btn-success" href="<?php echo base_url(); ?>exportsupplier">Export Supplier Details <i class="fa fa-download" aira-hidden="true"></i></a>
|
||||
<!-- <a class="btn btn-success" href="<?php echo base_url(); ?>exportsupplier">Export Supplier Details <i class="fa fa-download" aira-hidden="true"></i></a> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user