?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Policies/ |
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/Policies/loadtreedirectory.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <ul id="dhtmlgoodies_tree2" class="dhtmlgoodies_tree"> <li id="node0" noDrag="true" noSiblings="true" noDelete="true" noRename="true"><a href="#">Root Directory</a> <ul> <li id="node1"><a href="#">Uploaded Directories</a> <ul> <?php foreach($directory as $dir) { $dirpath=$dir['dirname']; $subdirectory=$this->mastermodel->get_data('sub_directory',$dir['id'],'parentdir'); ?> <li id="node2" noDelete="true" ><a class="clickimage"onclick="uploadpath('<?=$dirpath?>')"><?php echo $dir['dirname'];?></a><ul> <?php $id=1; foreach($subdirectory as $subdir) { $subpath=$subdir['subdirname']; ?> <li id="node" noRename="true"><a class="clickimage" onclick="uploadsubpath('<?=$dirpath?>','<?=$subpath?>')"><?php echo $subdir['subdirname'];?></a></li> <?php $id++; }?> </ul></li> <?php } ?> </ul> </li> </ul> </li></ul> <script type="text/javascript"> treeObj = new JSDragDropTree(); treeObj.setTreeId('dhtmlgoodies_tree2'); treeObj.setMaximumDepth(7); treeObj.setMessageMaximumDepthReached('Maximum depth reached'); // If you want to show a message when maximum depth is reached, i.e. on drop. treeObj.initTree(); treeObj.expandAll(); </script>