home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 May
/
W2KPRK.iso
/
apps
/
crystal
/
disk24
/
Xasp0
< prev
next >
Wrap
Text File
|
1999-08-23
|
2KB
|
110 lines
<%@ LANGUAGE="VBSCRIPT" %>
<% if Session("username") = "" then
Response.Redirect("/logon.asp")
end if
%>
<%sql="SELECT max([Customer ID]) AS Maxcustid FROM Customer"%>
<%Set Conn = Server.CreateObject("ADODB.Connection")%>
<%Conn.Open "Xtreme sample data"%>
<%Set RS = Conn.Execute(sql)
%>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<HEAD>
<title>Add Customer</title>
</HEAD>
<BODY bgcolor="#003366" text="#FF8000" link="#FF8000"
vlink="#00FFFF">
<FORM ACTION="addcustsub.asp" METHOD="POST" NAME="form1">
<INPUT TYPE=hidden VALUE="<% =RS.fields(0).value+1%>" NAME="custid">
<div align="center"><center><table
border="0" width="400">
<tr>
<td>Business Name</td>
<td>
<INPUT TYPE=text SIZE=17 NAME="T1">
</td>
</tr>
<tr>
<td>Account Manager</td>
<td>
<INPUT TYPE=text SIZE=17 NAME="T6">
</td>
</tr>
<tr>
<td>Contact First Name</td>
<td>
<INPUT TYPE=text SIZE=17 NAME="T2">
</td>
</tr>
<tr>
<td>Contact Last Name</td>
<td>
<INPUT TYPE=text SIZE=17 NAME="T3">
</td>
</tr>
<tr>
<td>Address Line 1</td>
<td>
<INPUT TYPE=text SIZE=20 NAME="T8">
</td>
</tr>
<tr>
<td>Address Line 2</td>
<td>
<INPUT TYPE=text SIZE=20 NAME="T9">
</td>
</tr>
<tr>
<td>City</td>
<td>
<INPUT TYPE=text SIZE=20 NAME="T10">
</td>
</tr>
<tr>
<td>Region</td>
<td>
<INPUT TYPE=text SIZE=12 NAME="T11">
</td>
</tr>
<tr>
<td>Country</td>
<td>
<INPUT TYPE=text SIZE=12 NAME="T12">
</td>
</tr>
<tr>
<td>Phone</td>
<td>
<INPUT TYPE=text SIZE=12 NAME="T14">
</td>
</tr>
<tr>
<td>Fax</td>
<td>
<INPUT TYPE=text SIZE=12 NAME="T15">
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</center></div><p align="center">
<INPUT TYPE=submit VALUE="Submit" NAME="B1">
</p>
</FORM>
</BODY>
</html>