home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
COLORS.AP_
/
COLORS.AP
Wrap
Text File
|
1998-04-01
|
4KB
|
148 lines
<[
// colors.htm
// Colors Active Page
// (c) 1997-98 SmartDesk, Inc., All Rights Reserved.
LIBRARY webdesk
FUNCTION UpdateColor( desk, var, retval, flag )
clr = desk.session.var( var )
if ( strempty( clr ) )
return( retval )
end
flag = 1
return( clr )
END
TRY
desk = new( "PrivateDesktop", param( 1 ), param( 2 ) )
if ( type( desk ) != "O" )
return( 0 )
end
flag = 0
desk.fClrBody = UpdateColor( desk, "fpage", desk.fClrBody, @flag )
desk.bClrBody = UpdateColor( desk, "bpage", desk.bClrBody, @flag )
desk.fClrHdr = UpdateColor( desk, "fhdr", desk.fClrHdr, @flag )
desk.bClrHdr = UpdateColor( desk, "bhdr", desk.bClrHdr, @flag )
desk.ClrLink = UpdateColor( desk, "ulink", desk.ClrLink, @flag )
desk.ClrVLink = UpdateColor( desk, "vlink", desk.ClrVLink, @flag )
if ( flag )
desk.ClrALink = desk.ClrLink
desk.update( )
end
]>
<HTML>
<HEAD>
<TITLE>Colors</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 Color Options</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=24%>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Page</B></FONT></TD>
</TR>
</TABLE>
<[
! DisplayColors( "Foreground", "", "colors.htm?fpage=" )
! DisplayColors( "Background", "", "colors.htm?bpage=" )
]>
</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>
</TD>
<TD WIDTH=24%>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Header</B></FONT></TD>
</TR>
</TABLE>
<[
! DisplayColors( "Foreground", "", "colors.htm?fhdr=" )
! DisplayColors( "Background", "", "colors.htm?bhdr=" )
]>
</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>
</TD>
<TD WIDTH=24%>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Unvisted Link</B></FONT></TD>
</TR>
</TABLE>
<[
! DisplayColors( "Link", "", "colors.htm?ulink=" )
! "<br><CENTER><a href=\"public.htm\"><FONT SIZE=3>Goto Public Desktop</FONT></a></CENTER><br>"
]>
</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>
</TD>
<TD WIDTH=24%>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Visited Link</B></FONT></TD>
</TR>
</TABLE>
<[
! DisplayColors( "Vlink", "", "colors.htm?vlink=" )
! "<br><CENTER><a href=\"private.htm\"><FONT SIZE=3>Goto Private Desktop</FONT></a></CENTER><br>"
]>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<[
CATCH ( err )
println( 3000, "Error [" + err.errornum + "] at line #" + err.errorline + " (" + ErrorAsText( err.errornum ) + ")" )
return( 0 )
END
]>