Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function() {
- $('#fileData').dataTable( {
- "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
- "iDisplayLength": 10,
- "sPaginationType": "full_numbers",
- "aaSorting": [[ 0, "desc" ]],
- "aoColumns": [ {},{},{},{sClass: "alignCenter"}]
- } );
- } );
- </script>
- <div class="col-md-12 animated" data-animation="fadeInUp" data-animation-delay="900">
- <div class="contentPageWrapper">
- <div class="pageSectionMainFull ui-corner-all">
- <div class="pageSectionMainInternal">
- <p class="introText">
- <?php
- if ($results)
- {
- echo '<table id="fileData" class="accountStateTable table table-bordered table-striped" width="100%" cellpadding="0" cellspacing="0">';
- echo '<thead>';
- echo '<th class="ui-state-default" style="width: 19px;"></th>';
- echo '<th class="ui-state-default">'.t('ysm_advsearch_results_filename', 'Filename:').'</th>';
- echo '<th class="ui-state-default" text-align: center;">'.t('ysm_advsearch_results_file_size', 'Filesize').'</th>';
- echo '<th class="ui-state-default" text-align: center;">'.t('ysm_advsearch_results_download', 'Download File').'</th>';
- echo '</thead>';
- echo '<tbody>';
- foreach ($results AS $file)
- {
- echo '<tr>';
- echo '<td class="txtCenter">';
- $fileTypePath = DOC_ROOT.'/themes/'.SITE_CONFIG_SITE_THEME.'/images/file_icons/32px/'.$file['extension'].'.png';
- if (file_exists($fileTypePath))
- {
- echo ' <img src="'.SITE_IMAGE_PATH.'/file_icons/32px/'.$file['extension'].'.png" width="32" height="32" title="'.$file['extension'].' file"/>';
- }
- else
- {
- echo ' <img src="'.SITE_IMAGE_PATH.'/file_icons/32px/_blank.png" width="32" height="32" title="Unknown file type"/>';
- }
- echo '</td>';
- echo '<td title="'.$file['originalFilename'].'">'.$file['originalFilename'].'</td>';
- echo '<td title="'.coreFunctions::formatSize($file['fileSize']).'">'.coreFunctions::formatSize($file['fileSize']).'</td>';
- echo '<td title="Download File - '.$file['originalFilename'].'">';
- echo '<a href="'.file::getFileUrl($file['id']).'" target="_blank">'.t('ysm_advsearch_download_file', '[Download File]').'</a>';
- echo '</td>';
- echo '</tr>';
- }
- echo '</tbody>';
- echo '</table>';
- }
- else
- {
- echo t('ysm_advsearch_no_results', 'No files that matched your query was found.');
- }
- ?>
- </p>
- <div class="clear"></div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement