Current File : /home/obabain/ms_obaba_in/AddSupplier.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Supplier</title>
</head>
<body>
<form method="post">
<%@include file="master.jsp" %>
<div class="content">
<div class="row">
<div>Supplier</div>
<table class="table" style="width:75%;">
<tr>
<td>
<div class="panel panel-success">
<div class="panel panel-heading ">
<h3 class="panel-title">Personal Information
<div class="headerbar-item pull-right">
<input type="checkbox" checked="checked"></div>
</h3>
</div>
<div class="panel-body">
<div class="form-group">
Supplier Name
<input type="text" class="form-control" name="cname">
</div>
<div class="form-group">
Supplier Surname(optional)
<input type="text" class="form-control" name="csurname">
</div>
<div class="form-group">
Language
<select class="form-control" name="clang">
<option>India</option>
</select>
</div>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Address</h3>
</div>
<div class="panel-body">
<div class="form-group">
Street Address
<input type="text" class="form-control" name="caddress1">
</div>
<div class="form-group">
Street Address2
<input type="text" class="form-control" name="caddress2">
</div>
<div class="form-group">
City
<input type="text" class="form-control" name="ccity">
</div>
<div class="form-group">
State
<input type="text" class="form-control" name="cstate">
</div>
<div class="form-group">
Zip code
<input type="text" class="form-control" name="czip">
</div>
<div class="form-group">
Country
<select class="form-control" name="ccountry">
<option>India</option>
</select>
</div>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Personal Information</h3>
</div>
<div class="panel-body">
<div class="form-group">
Gender
<select class="form-control" name="cgender">
<option value="1">Male</option>
<option value="2">Female</option>
</select>
</div>
<div class="form-group">
Birth Date
<input type="date" class="form-control" name="cbdy">
</div>
</div>
</div>
<input type="submit" value="Save" class="btn btn-success">
<a class="btn btn-danger">Cancel</a>
</td>
<td>
<div class="panel panel-success">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Contact Information</h3>
</div>
<div class="panel-body">
<div class="form-group">
Phone Number
<input type="text" class="form-control" name="cphone">
</div>
<div class="form-group">
Fax
<input type="text" class="form-control" name="cfax">
</div>
<div class="form-group">
Mobile
<input type="text" class="form-control" name="cmobile">
</div>
<div class="form-group">
E-mail
<input type="text" class="form-control" name="cemail">
</div>
<div class="form-group">
Web Address
<input type="text" class="form-control" name="cweb">
</div>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Tax Information</h3>
</div>
<div class="panel-body">
<div class="form-group">
GST Number
<input type="text" class="form-control" name="cvatid">
</div>
<div class="form-group">
TIN Number
<input type="text" class="form-control" name="ctaxcode">
</div>
</div>
</div>
</td>
</tr>
</table>
<%
try{
Statement st=con.createStatement();
//String cid=request.getParameter(arg0)
//String createdon=request.getParameter(arg0)
//String modifiedon=request.getParameter("modifiedon");
String cname=request.getParameter("cname");
String caddress1=request.getParameter("caddress1");
String caddress2=request.getParameter("caddress2");
String ccity=request.getParameter("ccity");
String cstate=request.getParameter("cstate");
String czip=request.getParameter("czip");
String ccountry=request.getParameter("ccountry");
String cphone=request.getParameter("cphone");
String cfax=request.getParameter("cfax");
String cmobile=request.getParameter("cmobile");
String cemail=request.getParameter("cemail");
String cweb=request.getParameter("cweb");
String cvatid=request.getParameter("cvatid");
String ctaxcode=request.getParameter("ctaxcode");
String clang=request.getParameter("clang");
String cactive=request.getParameter("cactive");
String csurname=request.getParameter("csurname");
String cavs=request.getParameter("cavs");
String cinsureno=request.getParameter("cinsureno");
String cveka=request.getParameter("cveka");
String cbdy=request.getParameter("cbdy");
String cgender=request.getParameter("cgender");
int i=st.executeUpdate("insert into ip_suppliers values(0,NOW(),NOW(),'"+cname+"','"+caddress1+"','"+caddress2+"','"+ccity+"','"+cstate+"','"+czip+"','"+ccountry+"','"+cphone+"','"+cfax+"','"+cmobile+"','"+cemail+"','"+cweb+"','"+cvatid+"','"+ctaxcode+"','"+clang+"',1,'"+csurname+"','','','','"+cbdy+"',"+cgender+")");
}
catch(Exception el){}
%>
</div>
</div>
<%@include file="footer.jsp" %>
</form>
</body>
</html>