?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/www/savoyglobal.net/drafthr/system/application/views/Master/folderexplorerview.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ ?> <?php if(isset($companyid)) { $cid=$companyid; } else { $cid=0; } $tblname=$tablename; $fldname=$fieldname; ?> <div> <?php if(isset($showfilesinview)) { if(count($showfilesinview)>0) { echo '<table class="sort" width="100%"> <tr><th style="width:10%">Sl.No</th><th style="width:40%">Document Name</th><th style="width:40%">File Name</th><th style="width:10%">Download<th></tr>'; $kk=1; foreach($showfilesinview as $sfilesv) { $filename = strtolower($sfilesv['subdirname']) ; $exts = split("[/\\.]", $filename) ; $n = count($exts)-1; $exts = $exts[$n]; $menuid=$_SESSION['current_mode']; if(!empty($n)) { $imname=$exts.'.png'; echo '<tr><td>'.$kk.'</td><td>'.$sfilesv['documentname'].'</td><td>'.$sfilesv['subdirname'].'</td><td>'; ?> <?=anchor('master/downloadfile/'.$sfilesv['id'].'', '<img src="'.base_url().'/assets/images/'.$imname.'" title="Download" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to download this file?')"))?> <?php echo '</td></tr>'; $kk++; } } echo '</table>'; } } ?> </div> <div id="exploremain"> <div id="exploretop" > <div class="operationdiv clickimage" onclick="viewfolderstructure(document.getElementById('parentid').value,document.getElementById('parentid').value,'<?=$cid?>','<?=$tblname?>','<?=$fldname?>')" title="Up Folder"> <div style="float: left"><img src="<?=base_url()?>/assets/images/upfolder.png" width="24px" height="24px" alt="Up Folder" title="Up Folder" ></div><div class="folderprop">Level Up</div> </div> </div> <div id="folderpath" >Uploads / <font color="#038CD0"><?=$folderpath?></font></div> <div id="explorebody"> <?php $resno=1; foreach ($folderlist as $res) { $flag="false"; $filename = strtolower($res['subdirname']) ; $exts = split("[/\\.]", $filename) ; $n = count($exts)-1; $exts = $exts[$n]; $menuid=$_SESSION['current_mode']; if($res['folder_for']==$menuid) { if(empty($n)) { $imname='folder.png'; $flag="true"; } else { if(isset($viewinsurance_files)) { if(count($viewinsurance_files)>0) { foreach($viewinsurance_files as $sr) { $arr[]= $sr['fileid']; } if(in_array($res['id'],$arr)) { $flag="true"; } } } else { $flag="true"; } $imname=$exts.'.png'; } } if($flag=="true") { $id=$res['id']; $parentdir=$res['parentdir']; echo '<div class="operationdiv1" id='. $res['id'] . '>'; if(empty($n)) { echo '<img src="'.base_url().'/assets/images/'.$imname.'" class="clickimage" onclick="changeclass('. $res['id'] . ')" '; echo "ondblclick=\"viewfolderstructure('$id','$parentdir','$cid','$tblname','$fldname')\">"; } else { ?> <?=anchor('master/downloadfile/'.$res['id'].'', '<img src="'.base_url().'/assets/images/'.$imname.'" title="Download" align = "center" width="20" height="20">',array('class'=>'delete','onclick'=>"return confirm('Are you sure want to download this file?')"))?> <?php } echo ' <div style="">' . $res['subdirname'] .'</div></div>' ; } } ?> <input type="hidden" name="dirid" id="dirid" > <input type="hidden" name="parentid" id="parentid" value="<?php echo $parid; ?>"> <input type="hidden" name="lastselected" id="lastselected" value="" > </div> </div>