?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/drafthr/system/application/views/Master/folderexplorer.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 id="exploremain"> <div id="exploretop" > <div class="operationdiv clickimage" onclick="showDiv('div1')" title="Add Folder" > <div style="float: left"> <img src="<?=base_url()?>/assets/images/addfolder.png" width="24px" height="24px" alt="Add Folder" title="Add Folder" ></div><div class="folderprop">New Folder</div></div> <div class="operationdiv clickimage" onclick="deletedirectory(document.getElementById('dirid').value,document.getElementById('parentid').value,document.getElementById('lastselected').value,<?=$cid?>,'<?=$tblname?>','<?=$fldname?>')" title="Rename Folder" > <div style="float: left"> <img src="<?=base_url()?>/assets/images/deletefolder.png" width="24px" height="24px" alt="Delete Folder" title="Delete Folder" class="clickimage" ></div><div class="folderprop"> Delete</div> </div> <div class="operationdiv clickimage" onclick="renamedirectory(document.getElementById('lastselected').value)" title="Rename Folder" class="clickimage" > <div style="float: left" > <img src="<?=base_url()?>/assets/images/renamefolder.png" width="24px" height="24px" alt="Rename Folder" title="Rename Folder" class="clickimage" > </div><div class="folderprop">Rename</div> </div> <div class="operationdiv clickimage" onclick="getfolderstructure(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="div1" class="hidden" > <fieldset>Enter a Directory Name (Alpha-Numeric only): <input type="text" value="" id="dirname" name="dirName" /> <input type="button" alt="" class="clickimage" onclick="createsubdir(document.getElementById('dirname').value,document.getElementById('dirid').value,document.getElementById('parentid').value,<?=$cid?>,'<?=$tblname?>','<?=$fldname?>')" value="Create"/> </fieldset> </div> <div id="div23" class="hidden" > <fieldset>Enter The New Name (Alpha-Numeric only): <input type="text" value="" id="newdirname" name="newdirname" /> <input type="button" alt="" class="clickimage" onclick="renamefolder(document.getElementById('newdirname').value,document.getElementById('lastselected').value,document.getElementById('dirid').value,<?=$cid?>,'<?=$tblname?>','<?=$fldname?>')" value="Create"/> </fieldset> </div> <div id="createdsubdir"></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'] . '> <img src="'.base_url().'/assets/images/'.$imname.'" class="clickimage" onclick="changeclass('. $res['id'] . ')" '; if(empty($n)) { echo "ondblclick=\"getfolderstructure('$id','$parentdir','$cid','$tblname','$fldname')\""; } 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>