JSP Addressbook app for VIP Express (circa Jun 2002)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

161 lines
3.8 KiB

<%-- JSP page setup --%>
<%! static String pageTitle = "Address Detail"; %>
<%@ page
info = "Data-Entry form for the AddressBook webapp"
language = "java"
session = "true"
import = "com.bullseyecomputing.beans.AddressDataBean"
%>
<% AddressDataBean a = (AddressDataBean) session.getAttribute("address.data"); %>
<%@ include file = "include/pageHeader.jsp" %>
<body bgcolor="#f7f7f7" onload="document.search.filter.focus();">
<table class="data">
<colgroup>
<col width=75pt>
<col width=275pt>
<col width=60pt>
<col width=*>
</colgroup>
<!-- Title/Search ----------->
<tr class="header">
<form method="get" action="getData" name="search">
<td colspan=3 class="title"><%=a.getName()%></td>
<td align="right"><b class="label">Search:</b>
<input type="text" name="filter" maxlength=30 style="width: 140pt"/></td>
</form>
</tr>
<!-- Address/Contact -->
<tr>
<th colspan=4 style="font-style: italic"><%=pageTitle%></th>
</tr>
<!-- Entry Form -->
<form name="entry" method="post">
<tr>
<td colspan=2>
<!-- Left Side ----------->
<table>
<colgroup>
<col width=75pt>
<col width=275pt>
</colgroup>
<!-- Name -->
<tr>
<td class="label">Name:</td>
<td>
<input type="text" name="name" value="<%=a.getName()%>"
maxlength=30 style="width: 210pt;">
</td>
</tr>
<!-- Addr1 -->
<tr>
<td class="label">Addr1:</td>
<td>
<input type="text" name="street" value="<%=a.getStreet()%>"
maxlength=30 style="width: 210pt;">
</td>
</tr>
<!-- Addr2 -->
<tr>
<td class="label">Addr2:</td>
<td>
<input type="text" name="street" value=""
maxlength=30 style="width: 210pt;">
</td>
</tr>
<!-- City/State -->
<tr>
<td class="label">City/St:</td>
<td>
<input type="text" name="city" value="<%=a.getCity()%>"
maxlength=16 style="width: 108pt;">
<input type="text" name="state" value="<%=a.getState()%>"
maxlength=2 style="width: 21pt;">
<input type="text" name="zipcode" value="<%=a.getZipcode()%>"
maxlength=6 style="width: 41pt;">
<input type="text" name="plus4" value="<%=a.getPlus4()%>"
maxlength=4 style="width: 31pt;">
</td>
</tr>
</table>
</td>
<!-- Right Side -->
<td colspan=2>
<table>
<colgroup>
<col width=60pt>
<col width=275pt>
</colgroup>
<tr>
<td class="label">Phone:</td>
<td>
<input type="text" name="pArea" value=""
maxlength=3 style="width: 28pt;">
<input type="text" name="pNumber" value=""
maxlength=8 style="width: 58pt;">
<input type="text" name="pDesc" value=""
maxlength=20 style="width: 108pt;">
</td>
</tr>
<tr>
<td class="label">Fax:</td>
<td>
<input type="text" name="fArea" value=""
maxlength=3 style="width: 28pt;">
<input type="text" name="fNumber" value=""
maxlength=8 style="width: 58pt;">
<input type="text" name="fDesc" value=""
maxlength=20 style="width: 108pt;">
</td>
</tr>
<tr>
<td class="label">Note:</td>
<td><input type="text" name="note" value="This a sample note"
maxlength=30 style="width: 200pt;">
</td>
</tr>
<tr>
<td class="label">Nick:</td>
<td><input type="text" name="nick" value=""
maxlength=12 style="width: 90pt;">
</td>
</tr>
</table>
</td>
</tr>
<!-- Save/Delete Buttons -->
<tr align="center">
<td colspan=4>
<input class="small" type="submit" value="save">
<input class="small" type="button" value="delete">
<input class="small" type="reset" value="reset">
</td>
</tr>
<!-- Status Line -->
<tr class="status">
<td colspan=4>
<span class="left">&nbsp;Status:</span>
<span class="right"></span>
</td>
</tr>
</form>
</table>
</body>
</html>