Files
dlist/templates/simple/index.phtml
jim a8fe6d5a8c - added language support (still needs some tweaking, and swedish language file needs correct locale settings)
- removed timer.exc.php and put the needed intializer directly in view.php to get a more accurate reading from $timer->end()
- updated .htaccess settings to they for once work 100% as they should, and added httpd_dlist.conf to respository to keep track of any changes/updates needed to the .htaccess file or apache config file (depending how you implement dList)

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@11 a5845835-ea0f-0410-a762-dd0bfe9bfde8
2006-04-01 23:24:32 +00:00

55 lines
2.0 KiB
PHTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?=$lang->index_of.' '.DIR_URL?></title>
<style type="text/css" media="screen">
/* <![CDATA[ */
<? include(TPL_PATH.'stylesheets/screen.css') ?>
/* ]]> */
</style>
</head>
<body id="index">
<div id="header">
<?=$lang->index_of.' '.DIR_URL?>
</div>
<table border="0" cellspacing="1" cellpadding="0" id="list">
<tr>
<th class="icon"></th>
<th class="name"><?=$lang->name?></th>
<th class="size"><?=$lang->size?></th>
<th class="mtime"><?=$lang->mtime?></th>
<th class="perms"><?=$lang->perms?></th>
<th class="owner"><?=$lang->owner?></th>
</tr>
<? if ( DIR_URL != '' && DIR_URL != '/'): ?>
<tr>
<td class="icon"><a href="../" title="Parent Directory"><img src="<?=Icon::get_parent($config->tpl_icon_size)?>" class="" alt="" /></a></td>
<td class="name"><a href="../" title="Parent Directory">..</a></td>
<td class="size"><?=$parent['size']?></td>
<td class="mtime"><?=$parent['mtime']?></td>
<td class="perms"><?=$parent['perms']?></td>
<td class="owner"><?=$parent['owner']?></td>
</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'], $config->tpl_icon_size, $item['type'])?>" class="" alt="" />
</a>
</td>
<td class="name"><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><?=$item['name']?></a></td>
<td class="size"><?=$item['size']?></td>
<td class="mtime"><?=$item['mtime']?></td>
<td class="perms"><?=$item['perms']?></td>
<td class="owner"><?=$item['owner']?></td>
</tr>
<? endforeach ?>
</table>
<div id="stats">
<?=$lang->page_generated.' '.$timer->end(6).' '.$lang->seconds?>.
</div>
</body>
</html>