mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- added full icon support (still needs tweaking)
- very simple but powerful template system working (also needs tweaking, a fair amount of it) - other fixes to both dirlist.lib.php, exechandler.lib.php, config.lib.php and more... git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@9 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
51
templates/simple/index.phtml
Normal file
51
templates/simple/index.phtml
Normal file
@@ -0,0 +1,51 @@
|
||||
<!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>Index of <?= DIR_URL ?></title>
|
||||
<style type="text/css" media="screen">
|
||||
/* <![CDATA[ */
|
||||
|
||||
<? include(TPL_PATH.'stylesheets/media.css') ?>
|
||||
|
||||
/* ]]> */
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body id="index">
|
||||
<table border="0" cellspacing="1" cellpadding="3" id="list">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Size</th>
|
||||
<th>Date Modified</th>
|
||||
<th>Permissions</th>
|
||||
<th>Owner</th>
|
||||
</tr>
|
||||
<? if (!empty($dlist->parent) || $dlist->parent != '/'): $parent = $dlist->parent; ?>
|
||||
<tr>
|
||||
<td><img src="<?=icons_get_parent('large')?>" class="" alt="" /></td>
|
||||
<td><a href="../"><?=$parent['name']?></a></td>
|
||||
<td><?=$parent['size']?></td>
|
||||
<td><?=$parent['mtime']?></td>
|
||||
<td><?=$parent['perms']?></td>
|
||||
<td><?=$parent['owner']?></td>
|
||||
</tr>
|
||||
<? endif ?>
|
||||
<? foreach ($dlist->list as $key => $item): ?>
|
||||
<tr>
|
||||
<td><img src="<?=icons_get_url($item['ext'], 'large', $item['type'])?>" class="" alt="" /></td>
|
||||
<td><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><?=$item['name']?></a></td>
|
||||
<td><?=$item['size']?></td>
|
||||
<td><?=$item['mtime']?></td>
|
||||
<td><?=$item['perms']?></td>
|
||||
<td><?=$item['owner']?></td>
|
||||
</tr>
|
||||
<? endforeach ?>
|
||||
</table>
|
||||
<div id="stats">
|
||||
Page generated in <?=$timer->end()?> seconds.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php die();
|
||||
|
||||
//
|
||||
// Exec: render
|
||||
// Exec: render/simple
|
||||
//
|
||||
// Copyright © 2006 Jim Myhrberg. All rights reserved.
|
||||
// zynode@gmail.com
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
//_HEAD;
|
||||
/* --- Configuration ---
|
||||
Name: simple/render
|
||||
Name: render/simple
|
||||
Priority: 40
|
||||
Author: Jim Myhrberg
|
||||
*/
|
||||
@@ -24,5 +24,14 @@ Author: Jim Myhrberg
|
||||
$config->parse(TPL_PATH.'settings.php');
|
||||
|
||||
|
||||
//==========================
|
||||
//>STAGE> render
|
||||
//==========================
|
||||
|
||||
|
||||
//>Section> include_phtml
|
||||
include(TPL_PATH.'index.phtml');
|
||||
|
||||
|
||||
//_END;
|
||||
?>
|
||||
10
templates/simple/stylesheets/media.css
Normal file
10
templates/simple/stylesheets/media.css
Normal file
@@ -0,0 +1,10 @@
|
||||
BODY {
|
||||
background-color: #FFF;
|
||||
}
|
||||
#list {
|
||||
background-color: #666;
|
||||
}
|
||||
#list TH, #list TD {
|
||||
background-color: #FFF;
|
||||
padding: 5px;
|
||||
}
|
||||
Reference in New Issue
Block a user