home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
DRVMGR.AP_
/
DRVMGR.AP
Wrap
Text File
|
1998-04-01
|
6KB
|
206 lines
<[
// drvmgr.htm
// Drive Manager 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
TRY
drive = new( "drive", desk.session.var( "drive" ) )
]>
<HTML>
<HEAD>
<TITLE>Drive Manager</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 Drive Manager</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>
<TABLE WIDTH=98% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR VALIGN=top>
<TD WIDTH=22%>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Jump</B></FONT></TD>
</TR>
</TABLE>
<p><CENTER><FONT SIZE=2><a href="public.htm">Public</a>, <a href="/chat/dir.htm">Chat</a>, <a href="/system/server.htm">Server</a>, <a href="http://www.smartdesk.com/webdesk.html">Help</a>, <a href="/system/srvstats.htm">Stats</a>, <a href="http://my.excite.com">Excite</a>, <a href="_public.htm">Personalize</a></FONT></center></p>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Drives</B></FONT></TD>
</TR>
</TABLE>
<P>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<[
// Drives
prefix = "drvmgr.htm?Drive="
y = 1
drives = drivestr( )
cnt = len( drives )
! "<TR>"
for ( i=1; i<=cnt; i++ )
if ( y > 3 )
! "</TR><TR>"
y = 1
end
filename = strextract( driveGetIconName( drives[i] + ":" ), ".", 1 ) + ".jpg"
if ( strat( "cdrom", filename ) )
filename = "cdrom2.jpg"
end
! "<TD ALIGN=center><a href=\"" + prefix + drives[i] + ":\"><img src=\"" + filename + "\" width=38 height=37 border=" + ( drive.letter[1] == drives[i] ? "1" : "0" ) + "></a><br> <font size=2>" + drives[i] + ":</font></TD>"
y++
end
! "</TR>"
]>
</TABLE>
</p>
<p><center><a href="private.htm">back</a></center></p>
</TD>
<TD NOWRAP WIDTH=13 ALIGN=middle><IMG SRC=vspots.gif WIDTH=1 HEIGHT=249 HSPACE=6><BR>
<IMG SRC=vspots.gif WIDTH=1 HEIGHT=249 HSPACE=6><BR>
<IMG SRC=vspots.gif WIDTH=1 HEIGHT=249 HSPACE=6><BR>
</TD>
<TD WIDTH=77%>
<P>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr + "><B>Details for Drive " + drive.letter ]></B></FONT></TD>
</TR>
</TABLE>
</P>
<FONT SIZE=4>
<CENTER>
<P>
<TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD ALIGN=center WIDTH=70%>
<[
filename = strextract( driveGetIconName( drive.letter + ":" ), ".", 1 ) + ".gif"
if ( strat( "cdrom", filename ) )
filename = "cdrom2.gif"
end
! "<IMG SRC=\"" + filename + "\" WIDTH=80 HEIGHT=60 BORDER=0>"
]>
</TD>
<TD WIDTH=30%> </TD>
</TR>
</TABLE>
<TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH=40%>Drive Type:</TD>
<TD ALIGN=right WIDTH=30%><[ ! drive.cType ]></TD>
<TD WIDTH=30%> </TD>
</TR>
<TR>
<TD WIDTH=40%>Drive Status:</TD>
<TD ALIGN=right WIDTH=30%><[ ! drive.status ]></TD>
<TD WIDTH=30%> </TD>
</TR>
<TR><TD> </TD></TR>
<TR>
<TD WIDTH=40%>Drive Size:</TD>
<TD ALIGN=right WIDTH=30%><[ ! drive.cSize ]></TD>
<TD WIDTH=30%> </TD>
</TR>
<TR>
<TD WIDTH=40%>Drive Space Free:</TD>
<TD ALIGN=right WIDTH=30%><[ ! drive.cSpace ]></TD>
<TD WIDTH=30%> </TD>
</TR>
<TR>
<TD WIDTH=40%>Percent Space Free:</TD>
<TD ALIGN=right WIDTH=30%><[ ! drive.cPctfree ]></TD>
<TD WIDTH=30%> </TD>
</TR>
<TR><TD> </TD></TR>
</TABLE>
<[
if ( ! drive.isremoveable )
! "<TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0>"
! " <TR>"
! " <TD BGCOLOR=red WIDTH=" + ( 100 - drive.pctfree ) + "> </TD>"
! " <TD BGCOLOR=blue WIDTH=" + drive.pctfree + "> </TD>"
! " <TD WIDTH=30%> </TD>"
! " </TR>"
! "</TABLE>"
! "<TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0>"
! " <TR>"
! " <TD WIDTH=40%><FONT SIZE=2>Space in Use</FONT></TD>"
! " <TD WIDTH=30% ALIGN=right><FONT SIZE=2>Space Available</FONT></TD>"
! " <TD WIDTH=30%> </TD>"
! " </TR>"
! "</TABLE>"
end
]>
<P>
<TABLE WIDTH=90% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD ALIGN=center WIDTH=70%>
<FORM ACTION="apprun.htm" METHOD="GET">
<INPUT TYPE="hidden" NAME="cat" VALUE="<[ ! "_system_" ]>">
<INPUT TYPE="hidden" NAME="item" VALUE="<[ ! "FileManager" ]>">
<INPUT TYPE="hidden" NAME="param" VALUE="<[ ! drive.letter ]>">
<INPUT TYPE="submit" VALUE=" Launch the File Manager ">
</FORM>
</TD>
<TD WIDTH=30%> </TD>
</TR>
</TABLE>
</P>
</CENTER>
</FONT>
</P>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<[
CATCH ( err )
println( 3000, "Error [" + err.errornum + "] at line #" + err.errorline + " (" + ErrorAsText( err.errornum ) + ")" )
return( 0 )
END
]>