<form class="form-horizontal" id="vis_depreciation_schedule" name="vis_depreciation_schedule" method="post">
<div class="col-sm-1 pull-right">
<input type="hidden" value="cmdb" name="vis_module">
<input type="hidden" value="get_depreciation_schedule" name="vis_operation">
<input type="hidden" value="<? echo $operation['vis_cost']?>" name="vis_cost">
<input type="hidden" value="<? echo $operation['vis_salvage']?>" name="vis_salvage">
<input type="hidden" value="<? echo $operation['vis_depreciation_type']?>" name="vis_depreciation_type">
<input type="hidden" value="<? echo $operation['vis_expence']?>" name="vis_expence">
<input type="hidden" value="<? echo $useful_life?>" name="vis_useful_life">
<input type="hidden" value="<? echo $operation['vis_aquisition_date']?>" name="vis_aquisition_date">
<input type="hidden" value="true" name="vis_export">
<input type="hidden" value="<? echo $operation['vis_action']?>" name="vis_action">
<input class="btn btn-primary btn-sm m-b-sm" type="submit" name="vis_submit" value="<?= $vis_language['TXTEXPORT'] ?>"></div>
<? global $vis_language;?>
<div id="<?= $operation['section'];?>" class="tab-pane active">
<div class="wrapper">
  <div class="row">
  <table class="table table-hover b-t b-light m-b-none" data-ride="datatables">
   <thead class="table_head">
      <tr>
         <th class="txt_nowrap"><? echo $vis_language['TXTYEAR']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTCOST']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTITILDEPRECIATIONEXPENSE']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTITILACCUMULATEDDEPRECIATION']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTITILBOOKVALUE']; ?></th>
         <th class="txt_nowrap"><? echo $vis_language['TXTITILREMAININGLIFE'];?></th>
      </tr>
   </thead>
     <tbody>
      <? for($i=0;$i<count($depArr);$i++) {
		 
      ?>
               <tr>
                <td><?= $depArr[$i]['useful_year'];?></td>
                <td><?= $depArr[$i]['vis_cost'];?></td>
                <td><?= $depArr[$i]['depreciation_expense'];?></td>
                <td><?= $depArr[$i]['accumulated_expense'];?></td>
                <td><?= $depArr[$i]['book_value'];?></td>
                <td><?= $depArr[$i]['remaining_life'];?></td>
               </tr>
            
      <?   
		}?>
      </tbody>
    </table>         
    </div>
    </div>
 </div>    
 </form>
<script type="text/javascript">
  /* $(document).ready(function() {	
   $('[data-ride="datatables"]').dataTable({		
           "bPaginate" : false,	
   		"sDom": 't', "bAutoWidth": false,
   		"aoColumns": [
   		  	null,
   		  	null,
   		  	null,
			null,
			{ "bSortable": false }
   		]
   	});
   });*/
</script>
