Skip to content
Snippets Groups Projects
Commit 7a3f1539 authored by rswindell's avatar rswindell
Browse files

New date format.

Proportional font used for non-extended desc displays.
parent 9f30921f
No related branches found
No related tags found
No related merge requests found
...@@ -82,9 +82,9 @@ function date(time) ...@@ -82,9 +82,9 @@ function date(time)
var mon=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; var mon=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
var d=new Date(time*1000); var d=new Date(time*1000);
return(format("<TT>%02d-%s-%d %02d:%02d" return(format("<TT>%s %02d %d %02d:%02d"
,d.getUTCDate()
,mon[d.getUTCMonth()] ,mon[d.getUTCMonth()]
,d.getUTCDate()
,d.getUTCFullYear() ,d.getUTCFullYear()
,d.getUTCHours() ,d.getUTCHours()
,d.getUTCMinutes())); ,d.getUTCMinutes()));
...@@ -98,10 +98,14 @@ function bytes(nbytes) ...@@ -98,10 +98,14 @@ function bytes(nbytes)
/* File Listing */ /* File Listing */
if(file.length) { if(file.length) {
var show_ext_desc=true; /* show extended descriptions */
var total_bytes=0; var total_bytes=0;
var total_downloads=0; var total_downloads=0;
var most_recent=0; var most_recent=0;
if (curdir.name==undefined)
show_ext_desc=false; /* aliased files have no ext desc */
write("<table border=0 nowrap " + cell_spacing + " width=100%>\r\n"); write("<table border=0 nowrap " + cell_spacing + " width=100%>\r\n");
/* header */ /* header */
...@@ -113,7 +117,7 @@ if(file.length) { ...@@ -113,7 +117,7 @@ if(file.length) {
write("<th>" + hdr_font + "Date/Time"); write("<th>" + hdr_font + "Date/Time");
if(curdir.name!=undefined) { /* not valid for aliased files in root */ if(curdir.name!=undefined) { /* not valid for aliased files in root */
write("<th>" + hdr_font + "Uploader"); write("<th>" + hdr_font + "Uploader");
write("<th>" + hdr_font + "Count"); write("<th>" + hdr_font + "Hits");
} }
write("</thead>"); write("</thead>");
...@@ -136,11 +140,14 @@ if(file.length) { ...@@ -136,11 +140,14 @@ if(file.length) {
write("<TD valign=top align=right>" + dat_font + "<font color=black>" + bytes(file[i].size)); write("<TD valign=top align=right>" + dat_font + "<font color=black>" + bytes(file[i].size));
/* description */ /* description */
write("<TD valign=top>" + dat_font); write("<TD valign=top>");
if (0 && file[i].misc&FM_EXTDESC) if (show_ext_desc) {
write("<PRE>" + file[i].extended_description); if(file[i].misc&FM_EXTDESC)
else write("<PRE>" + file[i].extended_description);
write("<TT>" + file[i].description); else
write("<TT>" + file[i].description);
} else
write(dat_font + file[i].description);
/* date/time */ /* date/time */
write("<TD valign=top align=center nowrap>" + dat_font + "<font color=black>" write("<TD valign=top align=center nowrap>" + dat_font + "<font color=black>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment