?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/master/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/master/uploaded_files.php |
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $files=$this->mastermodel->get_data('file',$master_id,'master_id'); if(!empty($files)) { ?> <div class="row-fluid portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Files</div> </div> <div class="portlet-body form"> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>S.No</th> <th>File Name</th> <th>Download</th> <th>Delete</th> </tr> <?php $i=1; //var_dump($employee_file); foreach ($files as $file) { ?> <tr> <td><?= $i?></td> <td><?=$this->mastermodel->get_single_field_value('file_type','file_type','file_type_id',$file['file_type_id']) ?></td> <td> <a href="<?=base_url().$file['file_location'];?>"><img src="<?=base_url()?>assets/img/downarrow.png" title="Download" alt="Download" width="20" height="20"/></a> </td> <td> <a class="delete" href="#" onclick="deletedata('file',<?=$file['file_id'];?>,'file_id','<?=$controller;?>','<?=$controller_function;?>','<?=$model_function;?>','<?=$page;?>','','')">Delete</a> </td> </tr> <?php $i++; } ?> </table> </div> </div> <?php } ?>