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

  1. <%-- JSP page setup --%>
  2. <%! static String pageTitle = "Address Detail"; %>
  3. <%@ page
  4. info = "Data-Entry form for the AddressBook webapp"
  5. language = "java"
  6. session = "true"
  7. import = "com.bullseyecomputing.beans.AddressDataBean"
  8. %>
  9. <% AddressDataBean a = (AddressDataBean) session.getAttribute("address.data"); %>
  10. <%@ include file = "include/pageHeader.jsp" %>
  11. <body bgcolor="#f7f7f7" onload="document.search.filter.focus();">
  12. <table class="data">
  13. <colgroup>
  14. <col width=75pt>
  15. <col width=275pt>
  16. <col width=60pt>
  17. <col width=*>
  18. </colgroup>
  19. <!-- Title/Search ----------->
  20. <tr class="header">
  21. <form method="get" action="getData" name="search">
  22. <td colspan=3 class="title"><%=a.getName()%></td>
  23. <td align="right"><b class="label">Search:</b>
  24. <input type="text" name="filter" maxlength=30 style="width: 140pt"/></td>
  25. </form>
  26. </tr>
  27. <!-- Address/Contact -->
  28. <tr>
  29. <th colspan=4 style="font-style: italic"><%=pageTitle%></th>
  30. </tr>
  31. <!-- Entry Form -->
  32. <form name="entry" method="post">
  33. <tr>
  34. <td colspan=2>
  35. <!-- Left Side ----------->
  36. <table>
  37. <colgroup>
  38. <col width=75pt>
  39. <col width=275pt>
  40. </colgroup>
  41. <!-- Name -->
  42. <tr>
  43. <td class="label">Name:</td>
  44. <td>
  45. <input type="text" name="name" value="<%=a.getName()%>"
  46. maxlength=30 style="width: 210pt;">
  47. </td>
  48. </tr>
  49. <!-- Addr1 -->
  50. <tr>
  51. <td class="label">Addr1:</td>
  52. <td>
  53. <input type="text" name="street" value="<%=a.getStreet()%>"
  54. maxlength=30 style="width: 210pt;">
  55. </td>
  56. </tr>
  57. <!-- Addr2 -->
  58. <tr>
  59. <td class="label">Addr2:</td>
  60. <td>
  61. <input type="text" name="street" value=""
  62. maxlength=30 style="width: 210pt;">
  63. </td>
  64. </tr>
  65. <!-- City/State -->
  66. <tr>
  67. <td class="label">City/St:</td>
  68. <td>
  69. <input type="text" name="city" value="<%=a.getCity()%>"
  70. maxlength=16 style="width: 108pt;">
  71. <input type="text" name="state" value="<%=a.getState()%>"
  72. maxlength=2 style="width: 21pt;">
  73. <input type="text" name="zipcode" value="<%=a.getZipcode()%>"
  74. maxlength=6 style="width: 41pt;">
  75. <input type="text" name="plus4" value="<%=a.getPlus4()%>"
  76. maxlength=4 style="width: 31pt;">
  77. </td>
  78. </tr>
  79. </table>
  80. </td>
  81. <!-- Right Side -->
  82. <td colspan=2>
  83. <table>
  84. <colgroup>
  85. <col width=60pt>
  86. <col width=275pt>
  87. </colgroup>
  88. <tr>
  89. <td class="label">Phone:</td>
  90. <td>
  91. <input type="text" name="pArea" value=""
  92. maxlength=3 style="width: 28pt;">
  93. <input type="text" name="pNumber" value=""
  94. maxlength=8 style="width: 58pt;">
  95. <input type="text" name="pDesc" value=""
  96. maxlength=20 style="width: 108pt;">
  97. </td>
  98. </tr>
  99. <tr>
  100. <td class="label">Fax:</td>
  101. <td>
  102. <input type="text" name="fArea" value=""
  103. maxlength=3 style="width: 28pt;">
  104. <input type="text" name="fNumber" value=""
  105. maxlength=8 style="width: 58pt;">
  106. <input type="text" name="fDesc" value=""
  107. maxlength=20 style="width: 108pt;">
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="label">Note:</td>
  112. <td><input type="text" name="note" value="This a sample note"
  113. maxlength=30 style="width: 200pt;">
  114. </td>
  115. </tr>
  116. <tr>
  117. <td class="label">Nick:</td>
  118. <td><input type="text" name="nick" value=""
  119. maxlength=12 style="width: 90pt;">
  120. </td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. <!-- Save/Delete Buttons -->
  126. <tr align="center">
  127. <td colspan=4>
  128. <input class="small" type="submit" value="save">
  129. <input class="small" type="button" value="delete">
  130. <input class="small" type="reset" value="reset">
  131. </td>
  132. </tr>
  133. <!-- Status Line -->
  134. <tr class="status">
  135. <td colspan=4>
  136. <span class="left">&nbsp;Status:</span>
  137. <span class="right"></span>
  138. </td>
  139. </tr>
  140. </form>
  141. </table>
  142. </body>
  143. </html>