PHP Classes

File: application/templates/home/ajax/load_folder.php

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   application/templates/home/ajax/load_folder.php   Download  
File: application/templates/home/ajax/load_folder.php
Role: Application script
Content type: text/plain
Description: Initial
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 8 years ago
Size: 1,939 bytes
 

Contents

Class file image Download
<ul class="tree-file">
    <?php if ($prefix == "/") : ?>
<li class="sub-<?php echo md5("/"); ?>">
            <span class="item">
                <span class="no-sub" ></span>
                <i class="fa fa-folder-open-o"></i> <a href="javascript:;" onclick="PrettyS3FilesManager.Bucket.loadObjects('<?php echo "/"; ?>', 0)" ><span class="name-prefix" >/</span></a>
            </span>
        </li>
    <?php endif; ?>
<?php
       
if ($files):
            foreach (
$files as $file):
               
?>
<li class="sub-<?php echo md5($file['prefix']); ?>">
                    <span class="item">
                        <?php if($file['isSub'] == 1): ?>
<a href="javascript:;" class="arrow" data-id="<?php echo md5($file['prefix']); ?>" data-prefix="<?php echo ($file['prefix']); ?>"><span><i class="fa fa-caret-right"></i></span></a>
                        <?php else : ?>
<span class="no-sub" ></span>
                        <?php endif; ?>
<i class="fa fa-folder-open-o"></i> <a href="javascript:;" onclick="PrettyS3FilesManager.Bucket.loadObjects('<?php echo $file['prefix']; ?>', 0)" ><span class="name-prefix name-<?php echo md5($file['prefix']); ?>" ><?php echo $file['name']; ?></span></a>
                        <span class="create-sub-folder" ><a onclick="PrettyS3FilesManager.File.fileProperties('<?php echo base64_encode($file['prefix']); ?>', '<?php echo $file['prefix']; ?>')" href="javascript:;"><i class="fa fa-eye"></i> </a><a onclick="PrettyS3FilesManager.Bucket.deleteFolder('<?php echo base64_encode($file['prefix']); ?>', '0', '<?php echo md5($file['prefix']); ?>')" href="javascript:;"><i class="fa fa-remove"></i> </a></span>
                    </span>
                    <span class="sub"></span>
                </li>
                <?php
           
endforeach;
        endif;
   
?>
</ul>