mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- thumbnail support is fully functional with custom imageThumb class which supports caching and so on, the class is still considered beta (specially the clean_cache() function)
- updated simple template - added Last Access (atime) to dirlist.lib.php - updated and fixed loads of other things git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@18 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<? endif ?>
|
||||
<? foreach ($dlist->list as $key => $item): ?>
|
||||
<tr>
|
||||
<td class="icon"><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><img src="<?=Icon::get_url($item['ext'], 'small', $item['type'])?>" alt="icon" /></a></td>
|
||||
<td class="icon"><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><img src="<?=Icon::get_url($item['name'], 'small', $item['type'])?>" alt="icon" /></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 ?>
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
</div>
|
||||
<ul>
|
||||
<? if ( !$is_root ): ?>
|
||||
<li><a href="../"><img src="<?=Icon::get_parent('large')?>" alt="" /><p class="name">..</p><p class="info"><?=$lang->parent_dir?></p></a></li>
|
||||
<li><a href="../"><p class="icon"><img src="<?=Icon::get_parent('large')?>" alt="" /></p><p class="name">..</p><p class="info"><?=$lang->parent_dir?></p></a></li>
|
||||
<? endif ?>
|
||||
<? foreach ($dlist->list as $key => $item): $info = ($item['type'] == 'file') ? $item['size'] : $item['mtime'] ;?>
|
||||
<li><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><img src="<?=Icon::get_url($item['ext'], 'large', $item['type'])?>" alt="" /><p class="name"><?=$item['name']?></p><p class="info"><?=$info?></p></a></li>
|
||||
<li><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><p class="icon"><img src="<?=Icon::get_url($item['name'], 'large', $item['type'], true)?>" alt="" /></p><p class="name"><?=$item['name']?></p><p class="info"><?=$info?></p></a></li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
</td></tr></table>
|
||||
@@ -5,11 +5,7 @@
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<title><?=$lang->index_of.' '.DIR_URL?></title>
|
||||
<script src="<?=TPL_URL?>javascripts/main.js" type="text/javascript" language="javascript" charset="utf-8"></script>
|
||||
<style type="text/css" media="screen">
|
||||
/* <![CDATA[ */
|
||||
<? include(TPL_PATH.'stylesheets/screen.css') ?>
|
||||
/* ]]> */
|
||||
</style>
|
||||
<link rel="stylesheet" href="<?=TPL_URL?>stylesheets/screen.css.php?dir=<?=TPL_URL?>" type="text/css" media="screen" title="screen" charset="utf-8" />
|
||||
</head>
|
||||
<body id="index">
|
||||
<div id="header">
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<?php header('Content-type: text/css;'); ( empty($dir) && !empty($_REQUEST['dir']) ) ? $dir = $_REQUEST['dir'] : $dir = '' ; ?>
|
||||
BODY {
|
||||
background-color: #FFF;
|
||||
color: #000;
|
||||
@@ -21,8 +22,7 @@ BODY {
|
||||
#files {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* <?=$dir?> */
|
||||
/* Details View (#list) */
|
||||
#list {
|
||||
background-color: #DDD;
|
||||
@@ -48,6 +48,9 @@ BODY {
|
||||
#list TH.mtime {
|
||||
width: 170px;
|
||||
}
|
||||
#list TH.atime {
|
||||
width: 170px;
|
||||
}
|
||||
#list TH.perms {
|
||||
width: 100px;
|
||||
}
|
||||
@@ -75,6 +78,9 @@ BODY {
|
||||
#list TD.mtime {
|
||||
text-align: right;
|
||||
}
|
||||
#list TD.atime {
|
||||
text-align: right;
|
||||
}
|
||||
#list TD.perms {
|
||||
text-align: right;
|
||||
}
|
||||
@@ -118,6 +124,12 @@ BODY {
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
}
|
||||
#icons LI .icon {
|
||||
display: block;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
height: 48px;
|
||||
}
|
||||
#icons LI .name {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
Reference in New Issue
Block a user