mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
only need to get thumbnails working, and make a fully featured web 2.0/6.3/whatever template and dList should be ready for its initial public release. git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@14 a5845835-ea0f-0410-a762-dd0bfe9bfde8
26 lines
1.2 KiB
PHTML
26 lines
1.2 KiB
PHTML
<table border="0" cellspacing="1" cellpadding="0" id="list">
|
|
<tr>
|
|
<th class="icon"></th>
|
|
<? foreach ($fields as $key => $value): ?><th class="<?=$key?>"><a href="<?=Sort::get_url($key)?>"><?=$lang->$key?></a></th>
|
|
<? endforeach ?>
|
|
</tr>
|
|
<? if ( !$is_root ): ?>
|
|
<tr>
|
|
<td class="icon"><a href="../" title="<?=$lang->parent_dir?>"><img src="<?=Icon::get_parent($config->tpl_icon_size)?>" class="" alt="" /></a></td>
|
|
<? foreach ($fields as $key => $value):
|
|
if ($key == 'name'):?><td class="name"><a href="../" title="<?=$lang->parent_dir?>">..</a></td>
|
|
<? else: ?><td></td><? endif ?>
|
|
<? endforeach ?>
|
|
</tr>
|
|
<? endif ?>
|
|
<? foreach ($dlist->list as $key => $item): ?>
|
|
<tr>
|
|
<td class="icon">
|
|
<a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>" title="<?=$item['name']?>"><img src="<?=Icon::get_url($item['ext'], 'small', $item['type'])?>" class="" alt="" /></a>
|
|
</td>
|
|
<? foreach ($fields as $key => $value):
|
|
if ($key == 'name'):?><td class="name"><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><?=$item['name']?></a></td>
|
|
<? else: ?><td class="<?=$key?>"><?=$item[$key]?></td><? endif ?><? endforeach ?>
|
|
</tr>
|
|
<? endforeach ?>
|
|
</table>
|