Exemplo n.º 1
0
				</a>
				</td>
				<td width="20%">
				' . $c['i'] . ' Items
				</td>
				<td width="10%">
					<a href="" class="transparent change-folder" title="Change Name" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
					<a href="" class="transparent delete-folder" rel="' . urlencode($c['path']) . '" title="Delete"><i class="icon-trash"></i></a>
				</td>
				</tr>';
            } else {
                $html .= '<tr>
				<td>
				<i class="icon-picture"></i>&nbsp;
				<a href="" class="img-thumbs" rel="' . $c['path'] . '" title="' . $c['name'] . '">
					' . TrimText($c['name'], 50) . '
				</a>
				</td>
				<td width="20%">
				' . formatSizeUnits($c['s']) . '
				</td>
				<td width="10%">
					<a href="" class="transparent change-file" title="Change Name" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>&nbsp;&nbsp;
					<a href="" class="transparent delete-file" rel="' . urlencode($c['p']) . '" title="Delete"><i class="icon-trash"></i></a>
				</td>
				</tr>';
            }
        } else {
            if ($c['is_file'] == false) {
                $html .= '<div class="item">
			<a class="lib-folder" href="" rel="' . urlencode($c['path']) . '" title="' . $c['name'] . '">
Exemplo n.º 2
0
				<a href="" class="pull-left transparent change-file" title="' . _lang('change_name') . '" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>
				<a href="" class="pull-right transparent delete-file" data-path="' . urlencode($c['x']) . '" rel="' . urlencode($c['p']) . '" title="' . _lang('delete') . '"><i class="icon-trash"></i></a>
				<div class="clearfix"></div>
				<p class="caption">' . TrimText($c['name'], 17) . '</p>
				</div>
				</div>';
                } else {
                    $html .= '<div class="item">
				<a href="" class="img-thumbs" rel="' . $c['path'] . '" title="' . $c['name'] . '">
				<img src="asc-thumb.php?src=' . $c['path'] . '&w=130&h=90" class="img-polaroid" width="130" height="90">
				</a>
				<div>
				<a href="" class="pull-left transparent change-file" title="' . _lang('change_name') . '" rel="' . $c['name'] . '"><i class="icon-pencil"></i></a>
				<a href="" class="pull-right transparent delete-file" data-path="' . urlencode($c['x']) . '" rel="' . urlencode($c['p']) . '" title="' . _lang('delete') . '"><i class="icon-trash"></i></a>
				<div class="clearfix"></div>
				<p class="caption">' . TrimText($c['name'], 17) . '</p>
				</div>
				</div>';
                }
            }
        }
    }
    if ($html != '') {
        if ($view == 'list') {
            $html = '<br/><table class="table">' . $html . '</table>';
        }
        $output["html"] = $html . '<div class="clearfix"></div><div style="margin-top: 20px;"><center>' . Paginate($current_folder, $page, $number_of_pages, 3) . '</center></div>';
    } else {
        $output["html"] = '<center>' . _lang('no_images_in_the_folder') . '</center>';
    }
} else {