home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
CONTACT.AP_
/
CONTACT.AP
Wrap
Text File
|
1998-04-01
|
4KB
|
162 lines
<[
// Virtual Name Server - Contact Information
// (c) 1997-98artDesk, Inc., All Rights Reserved
FUNCTION ProcessPhoneNumber( phone )
phone = rtrim( phone )
if ( strempty( phone ) )
return( "" )
end
if ( at( ":", phone ) > 1 )
return( "<P><FONT SIZE=2 COLOR=\"00FFFF\">" + strextract( phone, ":", 1 ) + "<BR></FONT><FONT SIZE=2 COLOR=\"FFFFFF\">" + strextract( phone, ":", 2 ) + "</FONT></P>" )
end
return( "<P><FONT SIZE=2 COLOR=\"00FFFF\">" + phone + "</FONT></P>" )
END
FUNCTION GetFullName( )
return( rtrim( users->fname ) + " " + rtrim( users->mname ) + " " + rtrim( users->lname ) )
END
FUNCTION webUserDirOpen( session, path )
local dbname, dbindex, db
dbname = fileFixPath( path + '\userdir.db' )
if ( ! fileExists( dbname ) )
session.error( "Unable to open " + dbname + " data file.", "FFFFFF", "000000" )
return(0)
end
db = dbuse( dbname, "users", 1 )
if ( ! db )
session.error( "Unable to open " + dbname + " data file.", "FFFFFF", "000000" )
return(0)
end
dbindex = fileFixPath( path + '\userdir.dx' )
if ( ! fileExists( dbindex ) )
users->dbClose( )
session.error( "Unable to open " + dbindex + " index file.", "FFFFFF", "000000" )
return(0)
end
users->dbOpenIndex( dbindex )
users->dbOrder( 1 )
return( db )
END
// Main code
_apGenerate( )
websrvr = 0 + param( 1 )
sessionId = 0 + param( 2 )
session = new( "session", websrvr, sessionId )
data = session.data( "QUERY_STRING" )
if ( strempty( data ) )
session.error( "No Record Provided!" )
return( 0 )
end
rec = ( 0 + data ) - 16384
if ( rec < 1 )
session.error( "Invalid Record Specified!" )
return( 0 )
end
if ( ! webUserDirOpen( session, webServerBaseDir( websrvr ) ) )
return( 0 )
end
if ( ! users->dbGoto( rec ) )
session.error( "Invalid Record Specified!" )
return( 0 )
end
]>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!-- SmartDesk Active Page, www.smartdesk.com -->
<HTML>
<HEAD>
<TITLE>Contact Information for <[ ! GetFullName( ) ]></TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#FFFFFF" LINK="#00FFFF" VLINK="#00FFFF" ALINK="#00FFFF">
<TABLE BORDER=0 WIDTH=600>
<TR>
<TD VALIGN="top" WIDTH=159>
<CENTER>
<A HREF="/index.htm"><IMG SRC="/image/ws.jpg" BORDER=0 WIDTH=159 HEIGHT=300></A>
<FONT SIZE=2>
<A HREF="userdir.htm">Directory</A>
</FONT>
</CENTER>
</TD>
<TD WIDTH=15>
<FONT SIZE=5 COLOR="#000000">.</FONT>
</TD>
<TD WIDTH=320 VALIGN="top">
<P><BR></P>
<P><BR></P>
<TABLE BORDER=0 WIDTH=300>
<TR>
<TD VALIGN="top" WIDTH=370>
<P>
<FONT SIZE=6 COLOR="#00FFFF"><[ ! GetFullName( ) ]></FONT><BR>
<FONT SIZE=3 COLOR="#FFFFFF"><[ ! users->c_title ]></FONT><BR>
<FONT SIZE=3 COLOR="#FFFFFF"><[ ! users->c_name ]></FONT><BR>
</P>
<P>
<FONT SIZE=3 COLOR="#FFFFFF"><[ ! users->street ]></FONT><BR>
<FONT SIZE=3 COLOR="#FFFFFF"><[ ! rtrim( users->city ) + ( strempty( users->city ) ? "" : ", " ) + rtrim( users->state ) + " " + rtrim( users->zip ) + " " + rtrim( users->country ) ]></FONT>
</P>
<[
if ( strempty( users->email ) )
! "<P><BR></P>"
! "<P><BR></P>"
else
! "<A HREF=\"mailto:" + rtrim( users->email ) + "\">Email Address:</A><BR>"
! "<FONT SIZE=3 COLOR=\"#FFFFFF\">" + rtrim( users->email ) + "</FONT>"
end
if ( ! strempty( users->msg ) )
! "<P><FONT COLOR=\"#A0A0A0\" SIZE=4>" + rtrim( users->msg ) + "</FONT></P>"
end
if ( ! strempty( users->goto_url ) )
! "<P><BR></P>"
! "<CENTER><A HREF=\"" + rtrim( users->goto_url ) + "\">Access " + rtrim( users->fname ) + "'s Online Web Desktop<BR></CENTER>"
end
]>
</TD>
</TR>
</TABLE>
</TD>
<TD WIDTH=120 VALIGN="top">
<P><BR></P>
<FONT SIZE=2>
<P><BR></P>
<P><BR></P>
<[
! ProcessPhoneNumber( users->phone1 )
! ProcessPhoneNumber( users->phone2 )
! ProcessPhoneNumber( users->phone3 )
! ProcessPhoneNumber( users->phone4 )
]>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>