![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
|
Explorer Directory Listing
Yea, so I realized I don't have auto-indexing on some of my web space accounts, because it's turned off in Apache. So I have to have an index file per directory.
So I got drunk... While drunk, I decided Explorer looks cool. I also decided the "Details" view is sleak and could easily replace an Apache listing. So I started coding it... I am near completion with the main frame. I'm going to possibly add the WinXP blue sidebar, depending on how useful it would be. I know I need to fix the XHTML, but that's why it's a "Current Project". I also have a lot of tweaks to add. Anyways, here it is: http://grog.mine.nu/~lance And if you want to see the code, I can post it... but it's over 200 lines, so I'm not sure I should post it here. I'll link it, even though posting with the vB "php" tag would make it nicer to look at... Here's the code: http://grog.mine.nu/~lance/index.txt Soo... what do you think? It has working sort, and working highlighting/coloring just like Explorer. But I guess you'd have to be drunk to appreciate Explorer's style... INPORTANT NOTE: Internet Explorer doesn't display the highlighting properly due to pathetic CSS rendering. Firefox does it perfect. I'll try and make it IE complaint later. Ironic how an Explorer styled site doesn't render right in Explorer...
__________________
/* LANCE */ C++; /* this makes C bigger but returns the old value */ char *site = "slackwise.net", *home = "lance.slackwise.net", *pics = "flickr.com/photos/slackwise"; |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Looks pretty good.
|
|
|
|
|
|
#3 |
|
Programmer
|
Heh, cool. What else do you plan to do to it? Are you gonna work in any JavaScripting or somesuch that let's you change the column widths? Ooo, And you could even tweak the Explorer style just a touch with something like having the whole row highlight (or shade) when mousing over a filename. That might make it easier to read the file info going across. Just some ideas.
![]()
__________________
I can pick my friends. And I can pick my nose. So, why can't I pick my friend's nose? |
|
|
|
|
|
#4 |
|
Programming Guru
![]() ![]() ![]() |
Nice work Lance
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#5 |
|
Programmer
|
Thanks, Infinite Recursion.
Oh, and I plan to fix it so it works right in IE. As well as make the XHTML W3C compliant (I just threw together the HTML because I was more concerned/amsued with the PHP code.) Then I plan to add that blue sidebar that WinXP has, with the "Details" and the locations and the sort. So you can do all sorts of stuff with files. Maybe add some context menu stuff... just anything that comes to mind. Eventually, it might just turn into a proper all-purpose directory listing. Something that can replace the Apache auto-index. ![]() Anyways, this was all just for fun. I'm not drunk anymore... nor caffeinated... and my amusement seems gone. :/ Oh well. I hope I eventually get back to work on it...
__________________
/* LANCE */ C++; /* this makes C bigger but returns the old value */ char *site = "slackwise.net", *home = "lance.slackwise.net", *pics = "flickr.com/photos/slackwise"; |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jan 2005
Location: Oregon Coast, The
Posts: 1
Rep Power: 0
![]() |
Hey Lance,
The sort is looking good. Maby you should try for an osX theme too? 'Cus I know you always are looking for some kind of new project ![]() ~Drache |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|