siddharth_application/application/views/addasset.php
2017-04-05 19:38:02 +05:30

186 lines
10 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<center>Asset Details</center>
</h1>
</section>
<section class="content">
<div style="text-align:right;">
<a href="<?php base_url() ?>assetListing" class="btn btn-info" value="Back"/>Back</a>
</div>
<br>
<div class="row">
<!-- left column -->
<div class="col-md-12">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-header">
<center><h3 class="box-title">Add Asset Details</h3></center>
</div><!-- /.box-header -->
<!-- form start -->
<form role="form" id="addUser" action="<?php echo base_url() ?>addNewasset" method="post" role="form">
<div class="box-body">
<div class="row">
<!--<div class="col-md-6">
<div class="form-group">
<div class="form-group">
<label for="Asset_Code">Asset Code</label>
<input type="text" class="form-control required" id="Asset_Code" name="Asset_Code">
</div>
</div>
</div>-->
<div class="col-md-6">
<div class="form-group">
<div class="form-group">
<label for="Asset_Name">Asset Name</label>
<input type="text" class="form-control required" id="Asset_Name" name="Asset_Name">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class="form-group">
<label for="Description">Description</label>
<input type="text" class="form-control required" id="Description" name="Description">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class="form-group">
<label for="Department">Department</label>
<select class="form-control required" id="Department" name="Department">
<option>Department</option>
<?php
if(!empty($Department))
{
foreach ($Department as $SID)
{
?>
<option value="<?php echo $SID->ConfigValue ?>"><?php echo $SID->ConfigValue ?></option>
<?php
}
}
?>
</select>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class="form-group">
<label for="Location">Location</label>
<input type="text" class="form-control required" id="Location" name="Location">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<div class="form-group">
<label for="AssetOwner">Asset Owner</label>
<input type="text" class="form-control required" id="User" name="User">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="SupplierName">Supplier Name</label>
<select class="form-control required" id="SupplierName" name="SupplierName">
<option >Select Supplier Name</option>
<?php
if(!empty($SupplierName))
{
foreach ($SupplierName as $SID)
{
?>
<option value="<?php echo $SID->SupplierName; ?>"><?php echo $SID->SupplierID ?> - <?php echo $SID->SupplierName ?></option>
<?php
}
}
?>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="DateOfPurchase">Date Of Purchase</label>
<input type="date" name="DateOfPurchase" min=<?php $week = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-7,date("Y")));echo $week;?> max=<?php echo date('Y-m-d'); ?> value="<?php echo date('Y-m-d'); ?>" class="form-control" placeholder="" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="DateOfCommission">Date Of Commission</label>
<input type="date" name="DateOfCommission" min=<?php $week = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-7,date("Y")));echo $week;?> max=<?php echo date('Y-m-d'); ?> value="<?php echo date('Y-m-d'); ?>" class="form-control" placeholder="" />
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="Assetvalue">Asset Value</label>
<input type="text" class="form-control required" id="Assetvalue" name="Assetvalue" maxlength="255">
<input type="hidden" class="form-control required" id="Createdby" name="Createdby" maxlength="255">
</div>
</div>
</div><!-- /.box-body -->
<div class="box-footer" style="text-align:right">
<input type="submit" class="btn btn-info" value="Submit" />
<input type="reset" class="btn btn-info" value="Reset" />
</div>
</form>
</div>
</div>
<div class="col-md-4">
<?php
$this->load->helper('form');
$error = $this->session->flashdata('error');
if($error)
{
?>
<div class="alert alert-danger alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php echo $this->session->flashdata('error'); ?>
</div>
<?php } ?>
<?php
$success = $this->session->flashdata('success');
if($success)
{
?>
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<?php echo $this->session->flashdata('success'); ?>
</div>
<?php } ?>
<div class="row">
<div class="col-md-12">
<?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
</div>
</div>
</div>
</div>
</section>
</div>
<script src="<?php echo base_url(); ?>assets/js/addUser.js" type="text/javascript"></script>