siddharth_application/application/views/viewasset.php

194 lines
7.3 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.

<?php
$Asset_Code = '';
$Asset_Name = '';
$Description = '';
$Department = '';
$Location = '';
$User = '';
$SupplierName = '';
$DateOfPurchase = '';
$DateOfCommission = '';
$AssetValue = '';
$Createdby = '';
$CreatedDate = '';
if(!empty($asset))
{
foreach ($asset as $uf)
{
$Asset_Code = $uf->Asset_Code;
$Asset_Name = $uf->Asset_Name;
$Description = $uf->Description;
$Department = $uf->Department;
$Location = $uf->Location;
$User = $uf->User;
$SupplierName = $uf->SupplierName;
$DateOfPurchase = $uf->DateOfPurchase;
$DateOfCommission = $uf->DateOfCommission;
$AssetValue = $uf->AssetValue;
$Createdby = $uf->Createdby;
$CreatedDate = $uf->CreatedDate;
}
}
?>
<script>
function demo(){
alert("Update this records");
}
</script>
<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 echo 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">View Asset Details</h3></center>
</div><!-- /.box-header -->
<!-- form start -->
<!--<form role="form" action="<?php echo base_url() ?>assetdetails/editasset" method="post" id="editsupplier" role="form">-->
<div class="box-body">
<div class="row">
<table class="table table-bordered 2px">
<div class="col-md-6 col-md-offset-3">
<div class="form-group">
<tbody>
<tr>
<td><label for="Asset_Code" class="col-md-7">Asset Code</label></td>
<td><?php echo $Asset_Code; ?></td>
</tr>
<tr>
<td><label for="Asset_Name" class="col-md-7">Asset Name </label></td>
<td><?php echo $Asset_Name; ?></td>
</tr>
<tr>
<td> <label for="Description" class="col-md-7">Description</label></td>
<td><?php echo $Description;?></td>
</tr>
<tr>
<td> <label for="Department" class="col-md-7">Department</label></td>
<td> <?php echo $Department?></td>
</tr>
<tr>
<td> <label for="Location" class="col-md-7">Location</label></td>
<td> <?php echo $Location?></td>
</tr>
<tr>
<td><label for="AssetOwner" class="col-md-7">User</label></td>
<td> <?php echo $User?></td>
</tr>
<tr>
<td> <label for="SupplierName" class="col-md-7">Supplier Name</label></td>
<td> <?php echo $SupplierName; ?></td>
</tr>
<tr>
<td> <label for="DateOfPurchase" class="col-md-7">Date Of Purchase</label></td>
<td><?php echo $DateOfPurchase; ?></td>
</tr>
<tr>
<td> <label for="DateOfCommission" class="col-md-7">Date Of Commission</label></td>
<td> <?php echo $DateOfCommission; ?></td>
</tr>
<tr>
<td> <label for="CreatedDate" class="col-md-7">Created Date</label></td>
<td> <?php echo $CreatedDate; ?></td>
</tr>
<tr>
<td> <label for="AssetValue" class="col-md-7">AssetValue</label></td>
<td> <?php echo $AssetValue; ?></td>
</tr>
<tr>
<td> <label for="Createdby" class="col-md-7">Created By</label></td>
<td> <?php echo $Createdby; ?></td>
</tr>
</div>
</div>
</tr>
</tbody>
</div>
</table>
</div><!-- /.box-body -->
<!--<div class="box-footer">
<input type="submit" class="btn btn-primary" onclick="demo()" value="Submit" />
<input type="reset" class="btn btn-default" 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/editUser.js" type="text/javascript"></script>