Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <script language="javascript">
- function saveInfo()
- {
- var suppname = document.getElementById("suppliers");
- if(suppname.selectedIndex == 0)
- {
- alert("Please select the supplier.");
- return false;
- }
- else
- document.form1.action = 'modifysupplier.jsp';
- }
- </script>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Untitled Document</title>
- <style type="text/css">
- <!--
- body {
- background-image: url(images/iwt3.jpg);
- }
- -->
- </style></head>
- <body>
- <div align="center">
- <h2>MODIFY SUPPLIER</h2>
- <hr>
- <p> </p>
- <h3><strong>Please select the supplier from the list below.</strong></h3>
- <form name="form1" method="post" action="">
- <p>
- <select name="suppliers" id="suppliers">
- <option selected>SELECT</option>
- <%
- beans.SupplierData sdata = new beans.SupplierData();
- ResultSet rs = sdata.getSuppliers();
- while(rs.next())
- {
- %>
- <option><%=rs.getString("supplier_name")%></option>
- <%
- }
- %>
- </select>
- </p>
- <p> </p>
- <table width="152" border="0">
- <tr>
- <td width="79"><div align="center">
- <input type="submit" name="Submit" value=" OK " onClick="return saveInfo();">
- </div></td>
- <td width="111"><div align="center">
- <input type="submit" name="Submit" value="CANCEL" onClick="action = 'supplier.jsp'">
- </div></td>
- </tr>
- </table>
- <p> </p>
- </form>
- <p><strong></strong></p>
- <p> </p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement