Heading

Wednesday, March 5, 2014

Web Application in Java with JDBC, Servlets, JSp and MYSQL DataBase-12

User Home Tabs:

Add Products Page:

<%--
    Document   : Add_Product
    Created on : Feb 25, 2014, 12:31:33 PM
    Author     : SDSTAFF
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Product Page</title>
                 <link rel="stylesheet" type="text/css" href="First.css">
    </head>
    <body>

         <p id="site">
           G C K Products
        </p>
        <div id="heading">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Add_Product.jsp">Add Product</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <a href="View_Product.jsp">View Product</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="Logout.jsp"> Logout</a>
        </div>   
                 <p align="right"> Hello <%=session.getAttribute("eid")%></p>
                
                 <p id="heading">Enter Product Details Here</p>
        <form id="form1" name="form1" method="post" action="Product_Register.jsp">
            <table style="">
            <tr>
                <td> Product Id:</td>
                <td> <input type="text" name="productid" id="pid"/></td>
            </tr>
            <tr>
                <td> Product Name:</td>
                <td> <input type="text" name="productname" id="pname"/></td>
            </tr>
            <tr>
                <td> Product Cost:</td>
                <td> <input type="text" name="productcost" id="pcost"/></td>
            </tr>
            <tr>
                <td> <input type="submit" value="Add Product" name="submit1"/></td>
                <td> <input type="reset" value="Reset" name="submit2"/></td>
            </tr>
            <tr>
                      <td height="48" colspan="2">  <%
                                                       String message=request.getParameter("Message");
                                                       if(message!=null && message.equalsIgnoreCase("success"))
                                                       {
                                                               out.println("<font color='red' size='+1'><blink>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Product Added Successfully !</blink></font>");
                                                       }
                                               %> &nbsp;
                      </td>
            </tr>
        </table>
        </form>
                  <div id="site1" >
            <p>
                Copy Rights @ G C K Solutions-2014.
            </p>
        </div>
    </body>
</html>
 

No comments:

Post a Comment