PHP Classes

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

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   application/templates/home/ajax/load_more_prefix.php   Download  
File: application/templates/home/ajax/load_more_prefix.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: 3,345 bytes
 

Contents

Class file image Download
<?php
if ($listObjects):
   
?>
<?php
   
foreach ($listObjects as $object):
       
?>
<tr class="row-<?php echo $sst; ?>">
            <td><?php echo $sst; ?></td>
            <td class="a-center ">
                <input data-id="<?php echo $sst; ?>" value="<?php echo base64_encode($object['key']); ?>" type="checkbox" class="flat" name="table_records">
            </td>
            <td>
                <?php if ($object['is_file']): ?>
<a href="javascript:;" class="img-popup" onclick="PrettyS3FilesManager.File.previewImage('<?php echo $object['url'] ?>');" data-toggle="modal" data-target="#popup-image"><img class="img-file" src="<?php echo $object['url'] ?>" /></a>
                <?php endif; ?>
</td>
            <td class=" "><?php echo $object['icon'] ?> <a href="#" onclick="PrettyS3FilesManager.File.fileProperties('<?php echo base64_encode($object['key']); ?>', '<?php echo $object['url'] ?>')" title=""><?php echo $object['name'] ?></a></td>
            <td class=" "><?php echo date('M m,Y. H:m',$object['date']); ?></td>
            <td class=" ">
                <span><?php echo $object['size'] ?> Kb</span>
            </td>
            <td class=" last">
                <div class="btn-group action-file">
                    <button type="button" class="btn btn-danger">Action</button>
                    <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                        <span class="caret"></span>
                        <span class="sr-only">Action</span>
                    </button>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="<?php echo $object['url']; ?>"><i class="fa fa-cloud-download"></i> Download</a></li>
                        <li><a href="javascript:;" onclick="PrettyS3FilesManager.File.fileProperties('<?php echo base64_encode($object['key']); ?>', '<?php echo $object['url'] ?>')" ><i class="fa fa-eye"></i> View</a></li>
                        <li><a onclick="PrettyS3FilesManager.File.delete('<?php echo base64_encode($object['key']); ?>', <?php echo $i; ?>);" href="javascript:;" ><i class="fa fa-remove"></i> Delete</a></li>
                    </ul>
                </div>
            </td>
        </tr>
        <?php
        $sst
++;
    endforeach;
   
?>

    <?php if ($load_more != 0): ?>
<tr><td colspan="8"><a class="load-more"
                                <?php if ($search ==0): ?>
onclick="PrettyS3FilesManager.Bucket.loadObjects('<?php echo $frefix; ?>', <?php echo $load_more; ?>);"
                                <?php else: ?>
onclick="loadSearchFrefix( <?php echo $load_more; ?>);"
                                <?php endif; ?>
href="javascript:;">Load more</a></td></tr>
    <?php endif; ?>
<?php
endif;
?>
<script type="text/javascript">
    $(function () {
        $('.bulk_action input#check-all').on('ifChecked', function () {
            check_state = 'check_all';
            countChecked();
        });
        $('.bulk_action input#check-all').on('ifUnchecked', function () {
            check_state = 'uncheck_all';
            countChecked();
        });
    })
</script>