siddharth_application/application/views/addasset.php
saravanakumar_kandasami 9a4c13b92a updated code for demo
2017-03-28 11:30:22 +05:30

184 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>
<input type="text" class="form-control required" id="Department" name="Department">
</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="AssetOwner" name="AssetOwner">
</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 value="0">Select 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")-60,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")-60,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="SupportVendor">Support Vendor</label>
<input type="text" class="form-control required" id="SupportVendor" name="SupportVendor" maxlength="255">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="SupportFrom">Support From</label>
<input type="date" name="SupportFrom" min=<?php $week = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-60,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="SupportTo">Support To</label>
<input type="date" name="SupportTo" min=<?php $week = date("Y-m-d",mktime(0, 0, 0, date("m"), date("d")-60,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>
</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>