home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
VIEWFILE.AP_
/
VIEWFILE.AP
Wrap
Text File
|
1998-04-01
|
2KB
|
56 lines
<[
// viewfile.htm
// File Viewer Active Page
// (c) 1997-98 SmartDesk, Inc., All Rights Reserved.
LIBRARY webdesk
desk = new( "PrivateDesktop", param( 1 ), param( 2 ) )
if ( type( desk ) != "O" )
return( 0 )
end
filename = desk.session.var( "FileName" )
]>
<HTML>
<HEAD>
<TITLE>File Viewer</TITLE>
</HEAD>
<BODY BGCOLOR=<[ ! desk.bclrBody + " TEXT=" + desk.fclrBody + " LINK=" + desk.clrLink + " ALINK=" + desk.clrALink + " VLINK=" + desk.clrVLink ]>>
<p>
<CENTER>
<[ ! desk.templateHeader( ) ]>
<TABLE WIDTH=600 BORDER=0 CELLSPACING=0 CELLPADDING=1>
<TR BGCOLOR=<[! desk.bclrHdr ]>>
<TD VALIGN=bottom NOWRAP><FONT SIZE=+1 COLOR=<[ ! desk.fclrHdr + " FACE=" + desk.fontTitle + "><B> " + desk.fname ]>'s File Viewer</B></FONT></TD>
<TD WIDTH=100% ALIGN=right><FONT SIZE=-1 FACE=geneva,arial COLOR=<[ ! desk.fclrHdr + ">" + cdow( jdate( ) ) + ", " + date( "MMMM dd, YYYY " ) + timetostr( time( ), 0 ) + "m" ]></FONT></TD>
</TR>
</TABLE>
<[ ! desk.templateNavBar( ) ]>
</CENTER>
</p>
<[
str = "Last updated " + ltrim( filedate( filename ) ) + " at " + timetostr( filetime( filename ), 0 ) + "m, and the file size is " + strcommas( "" + filesize( filename ) ) + " bytes"
! "<CENTER><FONT COLOR=\"#000000\" SIZE=4><B>" + upper( filename ) + "</B></FONT><BR><FONT SIZE=2><B>" + str + "</B></FONT><BR></CENTER>"
! "<PRE>"
! fileReadASCII( filename )
! "</PRE>"
]>
<TABLE WIDTH=98% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR VALIGN=top>
<TD>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>