Example #1
0
						<th>File</th>
						<th data-hide="phone">Size</th>
						<th>Type</th>
						<th data-hide="phone,tablet">Date</th>
						<th>Action</th>
					</tr>
				</thead>
				<tbody>
<?php 
$ignored_childs = array('expimp');
$dir_files = getDirFiles(LEUPLOAD_STORE, 1, 2, $ignored_childs);
$records_per_page = $LEUPLOAD_PERPAGE_LIST;
$pagination = new Zebra_Pagination();
$pagination->records(count($dir_files));
$pagination->records_per_page($records_per_page);
$pagination->labels('<span class="glyphicon glyphicon-chevron-left"></span>', '<span class="glyphicon glyphicon-chevron-right"></span>');
$dir_files = array_slice($dir_files, ($pagination->get_page() - 1) * $records_per_page, $records_per_page);
foreach ($dir_files as $k => $v) {
    ?>
					<tr>
						<td><a href="javascript:;" class="leupload_link" data-leupload-form="<?php 
    echo $pf;
    ?>
" data-leupload-link-model="<?php 
    echo $pm;
    ?>
" data-leupload-link="<?php 
    echo set_org_resource_url . '/' . $v['file_name'];
    ?>
" data-leupload-file-type="<?php 
    echo $v['file_type'] ? 'img' : 'doc';