<?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>View 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">                 
                <div class="box box-primary">
                     
                    <!-- form start -->
                    
                     
                        <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">Asset Owner</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="AssetValue" class="col-md-7">AssetValue</label></td>
                                      <td>  <?php echo $AssetValue; ?></td>
                                    </tr>
									 
                                    </div>
                                </div>
                                   </tr> 
								   </tbody>
                            </div>
							</table>
                        </div><!-- /.box-body -->
                    
                </div>
            </div>
             
        </div>    
    </section>
</div>

<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>