home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
WinFiles.com 1998 June
/
WF0698_3.ISO
/
servers-websrv
/
websuite.exe
/
USERMOD.AP_
/
USERMOD.AP
Wrap
Text File
|
1998-04-01
|
6KB
|
153 lines
<[
// Virtual Name Server - User Modification
// (c) 1997-98 SmartDesk, Inc., All Rights Reserved
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 )
if ( ! session.secure( "UserDir.Admin" ) )
return( 0 )
end
data = session.var( "USERID" )
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>Virtual Name Server - User Modify</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>
<FONT COLOR="#FFFF00"><B>User Modify</B></FONT><BR>
<A HREF="/index.htm"><IMG SRC="/image/ws.jpg" BORDER=0 WIDTH=159 HEIGHT=300></A><BR>
<FONT COLOR="#FFFFFF" SIZE=2><P><A HREF="userdir.htm">Directory</A> | <A HREF="/index.htm">Home</A></P></FONT>
</CENTER>
</TD>
<TD WIDTH=30>
<FONT SIZE=5 COLOR="#000000">.</FONT>
</TD>
<TD WIDTH=410 VALIGN="top">
<CENTER>
<B>Use this screen to modify user information:</B><BR>
<FORM ACTION="usermod2.htm" METHOD="GET">
<INPUT NAME="USERID" TYPE="hidden" VALUE="<[ ! session.var( "USERID" ) ]>">
<P><BR></P>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=410>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>First Name </B></TD><TD WIDTH=260><INPUT NAME="fname" TYPE= "text" VALUE="<[ ! rtrim( users->fname ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Middle Name: </B></TD><TD WIDTH=260><INPUT NAME="mname" TYPE= "text" VALUE="<[ ! rtrim( users->mname ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Last Name: </B></TD><TD WIDTH=260><INPUT NAME="lname" TYPE= "text" VALUE="<[ ! rtrim( users->lname ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><FONT COLOR="#000000">.</FONT></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Street Address: </B></TD><TD WIDTH=260><INPUT NAME="street" TYPE= "text" VALUE="<[ ! rtrim( users->street ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>City: </B></TD><TD WIDTH=260><INPUT NAME="city" TYPE= "text" VALUE="<[ ! rtrim( users->city ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>State/Province: </B></TD><TD WIDTH=260><INPUT NAME="state" TYPE= "text" VALUE="<[ ! rtrim( users->state ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Zip/Postal Code: </B></TD><TD WIDTH=260><INPUT NAME="zip" TYPE= "text" VALUE="<[ ! rtrim( users->zip ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Country: </B></TD><TD WIDTH=260><INPUT NAME="country" TYPE= "text" VALUE="<[ ! rtrim( users->country ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><FONT COLOR="#000000">.</FONT></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Company Name: </B></TD><TD WIDTH=260><INPUT NAME="c_name" TYPE= "text" VALUE="<[ ! rtrim( users->c_name ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Company Title:</B></TD><TD WIDTH=260><INPUT NAME="c_title" TYPE= "text" VALUE="<[ ! rtrim( users->c_title ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><FONT COLOR="#000000">.</FONT></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Phone 1: </B></TD><TD WIDTH=260><INPUT NAME="phone1" TYPE= "text" VALUE="<[ ! rtrim( users->phone1 ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Phone 2: </B></TD><TD WIDTH=260><INPUT NAME="phone2" TYPE= "text" VALUE="<[ ! rtrim( users->phone2 ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Phone 3: </B></TD><TD WIDTH=260><INPUT NAME="phone3" TYPE= "text" VALUE="<[ ! rtrim( users->phone3 ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Phone 4: </B></TD><TD WIDTH=260><INPUT NAME="phone4" TYPE= "text" VALUE="<[ ! rtrim( users->phone4 ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><FONT COLOR="#000000">.</FONT></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Email Address: </B></TD><TD WIDTH=260><INPUT NAME="email" TYPE= "text" VALUE="<[ ! rtrim( users->email ) ]>" SIZE=35></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><FONT COLOR="#000000">.</FONT></TD></TR>
<TR><TD WIDTH=20></TD><TD WIDTH=130><B>Message: </B></TD><TD WIDTH=260><INPUT NAME="msg" TYPE= "text" VALUE="<[ ! rtrim( users->msg ) ]>" SIZE=35></TD></TR>
</TABLE>
<P><BR></P>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=300>
<TR>
<TD align=center>
<INPUT TYPE="Submit" VALUE="Click Here to Save the Changes">
</TD>
</TR>
</TABLE>
</FORM>
</CENTER>
<CENTER>
<FONT SIZE=2><A HREF="usersrch.htm">Search</A> | <A HREF="userdir.htm">Directory</A></FONT><BR>
</CENTER>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>