home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
_LINKS.AP_
/
_LINKS.AP
Wrap
Text File
|
1998-04-01
|
4KB
|
143 lines
<[
// _links.htm
// Customizing Links 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
item = new( "LinkItem", desk, desk.session.var( "item" ) )
cmd = desk.session.var( "cmd" )
if ( ! strempty( cmd ) )
switch ( upper( cmd ) )
case "UPDATE"
item.UpdateFromForm( )
break
case "DELETE"
item.delete( )
break
case "NEW"
item.createnew( )
break
end
end
]>
<HTML>
<HEAD>
<TITLE>Customizing Links</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> " ]>Customizing Links</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=33%>
<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD BGCOLOR=<[! desk.bclrHdr + "> <FONT SIZE=+0 COLOR=" + desk.fclrHdr + " FACE=" + desk.fontHdr ]>><B>Links</B></FONT></TD>
</TR>
</TABLE>
<[
! DisplayLinks( desk, 3, 1 )
]>
<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>
<br><CENTER><a href="public.htm"><FONT SIZE=3>Public</FONT></a> |
<a href="private.htm"><FONT SIZE=3>Private</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>
<IMG SRC=vspots.gif WIDTH=1 HEIGHT=249 HSPACE=6><BR>
</TD>
<TD WIDTH=66%>
<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</B></FONT></TD>
</TR>
</TABLE>
<center><p>Select the item at the left to view/update the details.</p></center>
<[
! item.display( )
]>
<P>
<CENTER>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD>
<FORM ACTION="_links.htm" METHOD="get">
<FONT SIZE=2>Description:</br></FONT>
<INPUT TYPE="hidden" NAME="cmd" VALUE="update">
<INPUT TYPE="hidden" NAME="item" VALUE="<[ ! item.item ]>">
<INPUT TYPE="edit" NAME="desc" SIZE=30 VALUE="<[ ! item.desc ]>"><br>
<FONT SIZE=2>Link:</br></FONT>
<INPUT TYPE="edit" NAME="link" SIZE=30 VALUE="<[ ! item.link ]>"><br><br>
<INPUT TYPE="checkbox" NAME="ispublic" <[ ! ( ( item.scope & 1 ) ? "CHECKED" : "" ) ]>> Include in PUBLIC lists<br>
<INPUT TYPE="checkbox" NAME="isprivate" <[ ! ( ( item.scope & 2 ) ? "CHECKED" : "" ) ]>> Include in PRIVATE lists<br><br>
<center><INPUT TYPE="submit" VALUE="Update"><INPUT TYPE="reset" VALUE=" Reset "></center>
</FORM>
<center><P>
<a href="_links.htm?cmd=delete&item=<[ ! item.item ]>">Delete</a> |
<a href="_links.htm?cmd=new">New</a>
</p></center>
</TD>
</TR>
</TABLE>
</CENTER>
</P>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
<[
CATCH ( err )
println( 3000, "Error [" + err.errornum + "] at line #" + err.errorline + " (" + ErrorAsText( err.errornum ) + ")" )
return( 0 )
END
]>