diff --git a/Telephone Billing System Java Project/Project Abstract/Telephone Billing System Project.doc b/Telephone Billing System Java Project/Project Abstract/Telephone Billing System Project.doc
new file mode 100644
index 0000000..2e43ef7
Binary files /dev/null and b/Telephone Billing System Java Project/Project Abstract/Telephone Billing System Project.doc differ
diff --git a/Telephone Billing System Java Project/Reference Project Report/Telephone Billing System Project Report.doc b/Telephone Billing System Java Project/Reference Project Report/Telephone Billing System Project Report.doc
new file mode 100644
index 0000000..182fdac
Binary files /dev/null and b/Telephone Billing System Java Project/Reference Project Report/Telephone Billing System Project Report.doc differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/1.bmp b/Telephone Billing System Java Project/Telephone Billing System - Codes/1.bmp
new file mode 100644
index 0000000..b9621f3
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/1.bmp differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/2.bmp b/Telephone Billing System Java Project/Telephone Billing System - Codes/2.bmp
new file mode 100644
index 0000000..5f5c30d
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/2.bmp differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/Logout.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/Logout.jsp
new file mode 100644
index 0000000..54b05b4
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/Logout.jsp
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+ HOME PAGE
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/New_connection.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/New_connection.jsp
new file mode 100644
index 0000000..deb9777
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/New_connection.jsp
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+NEW CONNECTION REGISTRATION
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn.class b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn.class
new file mode 100644
index 0000000..6d89988
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn.class differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn1.class b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn1.class
new file mode 100644
index 0000000..48ad54d
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn1.class differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn3.class b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn3.class
new file mode 100644
index 0000000..b86cb24
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn3.class differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn4.class b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn4.class
new file mode 100644
index 0000000..6f83e7d
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn4.class differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn5.class b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn5.class
new file mode 100644
index 0000000..f1d52fe
Binary files /dev/null and b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/chandu/dbConn5.class differ
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn.java b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn.java
new file mode 100644
index 0000000..b8da964
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn.java
@@ -0,0 +1,78 @@
+package chandu;
+import java.sql.*;
+
+public class dbConn
+ {
+ // Member Variables
+ private String m_DBLoc = "jdbc:odbc:wipro";
+ private String m_DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
+ private ResultSet m_RS = null; // RecordSet Variable
+ private Connection m_conn = null;
+
+ public String setData(String name, String pwd, String fName, String lName, String email, String pno, String address, String state, int pin, String cno) {
+ String sqlInsSt = "INSERT INTO USER_TBS VALUES('"+name+"','"+pwd+"','"+fName+"','"+lName+"','"+email+"','"+pno+"','"+address+"','"+state+"',"+pin+",'"+cno+"')" ;
+ int n = 0;
+ if(m_conn == null) // if Connection has not been set
+ return "Connection failed" ;
+
+ try {
+ Statement s = m_conn.createStatement();
+ n = s.executeUpdate(sqlInsSt);
+ }catch (SQLException e) {
+ e.printStackTrace();} // if a SQL error occurs
+
+ if(n !=0)
+ return "Data inserted successfully" ;
+ else
+ return "Data insertion is failed" ;
+ }
+
+public ResultSet getData() {
+ String sqlStatement = "SELECT pno FROM new_connection" ;
+ ResultSet temp = executeQuery(sqlStatement);
+ return temp;
+ }
+
+ //-------------------------------------------------------
+ // Method executeQuery -- for executing queries. Returns
+ // a ResultSet (RecordSet) kind of like in ADO
+ //-------------------------------------------------------
+ public ResultSet executeQuery(String stmt)
+ {
+ if(m_conn == null) // if Connection has not been set
+ m_RS = null;
+ else
+ { try {
+ Statement s = m_conn.createStatement();
+ m_RS = s.executeQuery(stmt);
+ }
+ catch (SQLException e) {e.printStackTrace();} // if a SQL error occurs
+ }
+ return(m_RS);
+ }
+
+//-----------------------------------------------------
+ // Method DBConnect -- must connect to the DB before a
+ // query can be executed. Returns an error message
+ // to be printed by the caller if there is an error.
+ //-----------------------------------------------------
+ public String DBConnect()
+ {
+ String retVal = ""; // there are no errors yet
+ //Connection conn = null;
+ try // try to connect to the database
+ { Class.forName(m_DBDriver);
+ m_conn = DriverManager.getConnection(m_DBLoc,"scott","tiger");
+ }
+ // if the driver class isn't found
+ catch (ClassNotFoundException e) {retVal = e.toString();
+ e.printStackTrace();}
+ catch (SQLException e) {retVal = e.toString();
+ e.printStackTrace();} // if a SQL error occurs
+
+ return(retVal); // returns error messages or an empty string
+ // that the caller must print.
+ }
+}
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn1.java b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn1.java
new file mode 100644
index 0000000..37b8b31
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn1.java
@@ -0,0 +1,79 @@
+package chandu;
+import java.sql.*;
+
+public class dbConn1
+ {
+ // Member Variables
+ private String m_DBLoc = "jdbc:odbc:wipro";
+ private String m_DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
+ private ResultSet m_RS = null; // RecordSet Variable
+ private Connection m_conn = null;
+
+ public String setData(String uname, String cname, String occupation, String purpose, String gender, int income, String dob, String address, String state, int pin) {
+ String sqlInsSt = "INSERT INTO NEW_CONNECTION VALUES('"+uname+"','"+cname+"','"+occupation+"','"+purpose+"','"+gender+"',"+income+",'"+dob+"','"+address+"','"+state+"',"+pin+",seq.nextval)" ;
+ int n = 0;
+ if(m_conn == null) // if Connection has not been set
+ return "Connection failed" ;
+
+ try {
+ Statement s = m_conn.createStatement();
+ n = s.executeUpdate(sqlInsSt);
+ }catch (SQLException e) {
+ e.printStackTrace();} // if a SQL error occurs
+
+ if(n !=0)
+ return "Data inserted successfully" ;
+ else
+ return "Data insertion is failed" ;
+ }
+
+public ResultSet getData() {
+
+ String sqlStatement = "SELECT UNAME, CNAME, PURPOSE, PNO FROM NEW_CONNECTION" ;
+ ResultSet temp = executeQuery(sqlStatement);
+ return temp;
+ }
+
+ //-------------------------------------------------------
+ // Method executeQuery -- for executing queries. Returns
+ // a ResultSet (RecordSet) kind of like in ADO
+ //-------------------------------------------------------
+ public ResultSet executeQuery(String stmt)
+ {
+ if(m_conn == null) // if Connection has not been set
+ m_RS = null;
+ else
+ { try {
+ Statement s = m_conn.createStatement();
+ m_RS = s.executeQuery(stmt);
+ }
+ catch (SQLException e) {e.printStackTrace();} // if a SQL error occurs
+ }
+ return(m_RS);
+ }
+
+//-----------------------------------------------------
+ // Method DBConnect -- must connect to the DB before a
+ // query can be executed. Returns an error message
+ // to be printed by the caller if there is an error.
+ //-----------------------------------------------------
+ public String DBConnect()
+ {
+ String retVal = ""; // there are no errors yet
+ //Connection conn = null;
+ try // try to connect to the database
+ { Class.forName(m_DBDriver);
+ m_conn = DriverManager.getConnection(m_DBLoc,"scott","tiger");
+ }
+ // if the driver class isn't found
+ catch (ClassNotFoundException e) {retVal = e.toString();
+ e.printStackTrace();}
+ catch (SQLException e) {retVal = e.toString();
+ e.printStackTrace();} // if a SQL error occurs
+
+ return(retVal); // returns error messages or an empty string
+ // that the caller must print.
+ }
+}
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn3.java b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn3.java
new file mode 100644
index 0000000..fc5a6df
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn3.java
@@ -0,0 +1,80 @@
+package chandu;
+import java.sql.*;
+
+public class dbConn3
+ {
+ // Member Variables
+ private String m_DBLoc = "jdbc:odbc:wipro";
+ private String m_DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
+ private ResultSet m_RS = null; // RecordSet Variable
+ private Connection m_conn = null;
+
+ public String setData(String name, String pwd, String fName, String lName, String email, String pno, String address, String state, int pin) {
+ String sqlInsSt = "INSERT INTO USER_TBS VALUES('"+name+"','"+pwd+"','"+fName+"','"+lName+"','"+email+"','"+pno+"','"+address+"','"+state+"',"+pin+")" ;
+ int n = 0;
+ if(m_conn == null) // if Connection has not been set
+ return "Connection failed" ;
+
+ try {
+ Statement s = m_conn.createStatement();
+ n = s.executeUpdate(sqlInsSt);
+ }catch (SQLException e) {
+ e.printStackTrace();} // if a SQL error occurs
+
+ if(n !=0)
+ return "Data is successfully inserted" ;
+ else
+ return "Data insertion is failed" ;
+ }
+
+public ResultSet getData() {
+ String sqlStatement = "SELECT u.name,b.pno,u.fname,b.billno,b.amount,b.paybydate,b.paiddate FROM user_tbs u,bill_details b where u.pno=b.pno" ;
+ ResultSet temp = executeQuery(sqlStatement);
+ return temp;
+ }
+
+
+ //-------------------------------------------------------
+ // Method executeQuery -- for executing queries. Returns
+ // a ResultSet (RecordSet) kind of like in ADO
+ //-------------------------------------------------------
+ public ResultSet executeQuery(String stmt)
+ {
+ if(m_conn == null) // if Connection has not been set
+ m_RS = null;
+ else
+ { try {
+ Statement s = m_conn.createStatement();
+ m_RS = s.executeQuery(stmt);
+ }
+ catch (SQLException e) {e.printStackTrace();} // if a SQL error occurs
+ }
+ return(m_RS);
+ }
+
+//-----------------------------------------------------
+ // Method DBConnect -- must connect to the DB before a
+ // query can be executed. Returns an error message
+ // to be printed by the caller if there is an error.
+ //-----------------------------------------------------
+ public String DBConnect()
+ {
+ String retVal = ""; // there are no errors yet
+ //Connection conn = null;
+ try // try to connect to the database
+ { Class.forName(m_DBDriver);
+ m_conn = DriverManager.getConnection(m_DBLoc,"scott","tiger");
+ }
+ // if the driver class isn't found
+ catch (ClassNotFoundException e) {retVal = e.toString();
+ e.printStackTrace();}
+ catch (SQLException e) {
+ retVal = e.toString();
+ e.printStackTrace();} // if a SQL error occurs
+
+ return(retVal); // returns error messages or an empty string
+ // that the caller must print.
+ }
+}
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn4.java b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn4.java
new file mode 100644
index 0000000..23ea336
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn4.java
@@ -0,0 +1,79 @@
+package chandu;
+import java.sql.*;
+
+public class dbConn4
+ {
+ // Member Variables
+ private String m_DBLoc = "jdbc:odbc:wipro";
+ private String m_DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
+ private ResultSet m_RS = null; // RecordSet Variable
+ private Connection m_conn = null;
+
+ public String setData(String name, String pwd, String fName, String lName, String email, String pno, String address, String state, int pin) {
+ String sqlInsSt = "INSERT INTO USER_TBS VALUES('"+name+"','"+pwd+"','"+fName+"','"+lName+"','"+email+"','"+pno+"','"+address+"','"+state+"',"+pin+")" ;
+ int n = 0;
+ if(m_conn == null) // if Connection has not been set
+ return "Connection failed" ;
+
+ try {
+ Statement s = m_conn.createStatement();
+ n = s.executeUpdate(sqlInsSt);
+ }catch (SQLException e) {
+ e.printStackTrace();} // if a SQL error occurs
+
+ if(n !=0)
+ return "Data is successfully inserted" ;
+ else
+ return "Data insertion is failed" ;
+ }
+
+public ResultSet getData() {
+ String sqlStatement = "SELECT NAME,PWD FROM USER_TBS" ;
+ ResultSet temp = executeQuery(sqlStatement);
+ return temp;
+ }
+
+ //-------------------------------------------------------
+ // Method executeQuery -- for executing queries. Returns
+ // a ResultSet (RecordSet) kind of like in ADO
+ //-------------------------------------------------------
+ public ResultSet executeQuery(String stmt)
+ {
+ if(m_conn == null) // if Connection has not been set
+ m_RS = null;
+ else
+ { try {
+ Statement s = m_conn.createStatement();
+ m_RS = s.executeQuery(stmt);
+ }
+ catch (SQLException e) {e.printStackTrace();} // if a SQL error occurs
+ }
+ return(m_RS);
+ }
+
+//-----------------------------------------------------
+ // Method DBConnect -- must connect to the DB before a
+ // query can be executed. Returns an error message
+ // to be printed by the caller if there is an error.
+ //-----------------------------------------------------
+ public String DBConnect()
+ {
+ String retVal = ""; // there are no errors yet
+ //Connection conn = null;
+ try // try to connect to the database
+ { Class.forName(m_DBDriver);
+ m_conn = DriverManager.getConnection(m_DBLoc,"scott","tiger");
+ }
+ // if the driver class isn't found
+ catch (ClassNotFoundException e) {retVal = e.toString();
+ e.printStackTrace();}
+ catch (SQLException e) {
+ retVal = e.toString();
+ e.printStackTrace();} // if a SQL error occurs
+
+ return(retVal); // returns error messages or an empty string
+ // that the caller must print.
+ }
+}
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn5.java b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn5.java
new file mode 100644
index 0000000..e34fe0b
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/WEB-INF/classes/dbConn5.java
@@ -0,0 +1,105 @@
+package chandu;
+import java.sql.*;
+
+public class dbConn5
+ {
+ // Member Variables
+ private String m_DBLoc = "jdbc:odbc:wipro";
+ private String m_DBDriver = "sun.jdbc.odbc.JdbcOdbcDriver";
+ private ResultSet m_RS = null; // RecordSet Variable
+ private Connection m_conn = null;
+
+ public String setData(String bno, int amt, String bank, String cardno) {
+ String sqlInsSt = "update bill_details set amount="+amt+",bank='"+bank+"',cardno='"+cardno+"',paiddate=sysdate where billno='"+bno+"'" ;
+ //,BANK='"+bank+"',CARDNO='"+cardno+"',PAIDDATE=sysdate
+ int n = 0;
+ if(m_conn == null) // if Connection has not been set
+ return "Connection failed" ;
+
+ try {
+ Statement s = m_conn.createStatement();
+ n = s.executeUpdate(sqlInsSt);
+ }catch (SQLException e) {
+ e.printStackTrace();} // if a SQL error occurs
+
+ if(n !=0)
+ return "Data updation successfully" ;
+ else
+ return "Data insertion is failed" ;
+ }
+
+ public String setData1(String pno, int bamt, String pdd) {
+ String sqlInsSt = "insert into bill_details(billno,pno,amount,paybydate) values(seq1.nextval,'"+pno+"',"+bamt+",'"+pdd+"')";
+ //,BANK='"+bank+"',CARDNO='"+cardno+"',PAIDDATE=sysdate
+ int n = 0;
+ if(m_conn == null) // if Connection has not been set
+ return "Connection failed" ;
+
+ try {
+ Statement s = m_conn.createStatement();
+ n = s.executeUpdate(sqlInsSt);
+ }catch (SQLException e) {
+ e.printStackTrace();} // if a SQL error occurs
+
+ if(n !=0)
+ return "Data updation successfully" ;
+ else
+ return "Data insertion is failed" ;
+ }
+public ResultSet getData() {
+
+ String sqlStatement = "SELECT UNAME, CNAME, PURPOSE, PNO FROM NEW_CONNECTION" ;
+ ResultSet temp = executeQuery(sqlStatement);
+ return temp;
+ }
+public ResultSet getData1()
+ {
+
+ String sqlStatement = "SELECT billno,amount,paiddate FROM bill_details" ;
+ ResultSet temp = executeQuery(sqlStatement);
+ return temp;
+ }
+
+ //-------------------------------------------------------
+ // Method executeQuery -- for executing queries. Returns
+ // a ResultSet (RecordSet) kind of like in ADO
+ //-------------------------------------------------------
+ public ResultSet executeQuery(String stmt)
+ {
+ if(m_conn == null) // if Connection has not been set
+ m_RS = null;
+ else
+ { try {
+ Statement s = m_conn.createStatement();
+ m_RS = s.executeQuery(stmt);
+ }
+ catch (SQLException e) {e.printStackTrace();} // if a SQL error occurs
+ }
+ return(m_RS);
+ }
+
+//-----------------------------------------------------
+ // Method DBConnect -- must connect to the DB before a
+ // query can be executed. Returns an error message
+ // to be printed by the caller if there is an error.
+ //-----------------------------------------------------
+ public String DBConnect()
+ {
+ String retVal = ""; // there are no errors yet
+ //Connection conn = null;
+ try // try to connect to the database
+ { Class.forName(m_DBDriver);
+ m_conn = DriverManager.getConnection(m_DBLoc,"scott","tiger");
+ }
+ // if the driver class isn't found
+ catch (ClassNotFoundException e) {retVal = e.toString();
+ e.printStackTrace();}
+ catch (SQLException e) {retVal = e.toString();
+ e.printStackTrace();} // if a SQL error occurs
+
+ return(retVal); // returns error messages or an empty string
+ // that the caller must print.
+ }
+}
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/admin.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/admin.jsp
new file mode 100644
index 0000000..8a27ae0
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/admin.jsp
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+ WELCOME TO ADMINISTRATOR
+ LOGOUT
+
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/admin1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/admin1.jsp
new file mode 100644
index 0000000..361ccb5
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/admin1.jsp
@@ -0,0 +1,100 @@
+
+
+
+
+
+
+ WELCOME TO ADMINISTRATOR
+ LOGOUT
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/admin2.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/admin2.jsp
new file mode 100644
index 0000000..ece9804
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/admin2.jsp
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ CONTINUE ENTERING DETAILS
+
+
+
+ LOGOUT
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/adminconn.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/adminconn.jsp
new file mode 100644
index 0000000..0637a66
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/adminconn.jsp
@@ -0,0 +1,52 @@
+
+
+
+
+Employee Details
+<%@ page import = "java.sql.*, chandu.dbConn5" %>
+
+<%!
+ ResultSet rs ;
+ dbConn5 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn5();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+Home
+<%
+ String sID = request.getParameter("ID");
+ if(sID.equals("SUBMIT")) {
+ String pno = request.getParameter("pno");
+ int bamt = (new Integer(request.getParameter("bamt"))).intValue();
+ String pdd = request.getParameter("pdd");
+
+
+String y="Data updation successfully";
+
+
+
+ String sInsState =null;
+ if(sConn.equals("")) {
+ sInsState = db.setData1(pno, bamt, pdd);
+ }
+%>
+<%String x=sInsState;%>
+ <%
+ if(x.equals(y))
+ {
+
+%>
+
+<%}
+ else
+ {%>
+
+ <%
+ }
+ }%>
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/adminlog.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/adminlog.jsp
new file mode 100644
index 0000000..b8f37dd
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/adminlog.jsp
@@ -0,0 +1,39 @@
+
+
+
+TELEPHONE BILLING SYSTEM
+Home
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/bill.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/bill.jsp
new file mode 100644
index 0000000..922785c
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/bill.jsp
@@ -0,0 +1,36 @@
+
+
+
+
+
+ WELCOME TO ONLINE TELEPHONE BILLING
+
+
+ LOGOUT
+
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/bill_conn.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/bill_conn.jsp
new file mode 100644
index 0000000..de336f9
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/bill_conn.jsp
@@ -0,0 +1,59 @@
+
+
+
+
+Bill Details
+<%@ page import = "java.sql.*, chandu.dbConn3" %>
+
+<%!
+ ResultSet rs ;
+ dbConn3 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn3();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+Home
+<%
+ String sID = request.getParameter("ID");
+ String pno = request.getParameter("pno");
+ //out.println(pno);
+ rs = db.getData();
+
+%>
+
+
+
+
+ | Name |
+ Age |
+
+
+<%
+ while(rs.next()){
+%>
+ <%
+ String x=rs.getString(1);
+ if(x==pno)
+ {
+ %>
+
+
+ | <%=rs.getString(2)%> |
+ <%=rs.getInt(3)%> |
+
+
+
+
+<%
+ }
+ }
+%>
+
+
+
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/exp.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/exp.jsp
new file mode 100644
index 0000000..3253e1a
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/exp.jsp
@@ -0,0 +1,76 @@
+
+
+
+
+Employee Details
+<%@ page import = "java.sql.*, chandu.dbConn" %>
+
+<%!
+ ResultSet rs ;
+ dbConn db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+Home
+<%
+ String sID = request.getParameter("ID");
+ if(sID.equals("INSERT")) {
+ String sName = request.getParameter("uname");
+ String pwd = request.getParameter("password");
+ String confPwd = request.getParameter("confpassword");
+ String fname = request.getParameter("fname");
+ String lname = request.getParameter("lname");
+ String email = request.getParameter("email");
+ String pno = request.getParameter("pno");
+ String address = request.getParameter("address");
+ String state = request.getParameter("state");
+ int pin = (new Integer(request.getParameter("pin"))).intValue();
+ String cno = request.getParameter("cno");
+
+ String y="Data inserted successfully";
+ int z=0;
+ String sInsState = null;
+ rs= db.getData();
+while(rs.next()){
+ if(rs.getString(1).equals(pno))
+ {
+ z=1;
+
+ }
+
+ }
+ if(z!=1)
+ {
+ %>
+
+<%
+ }
+ else
+ {
+ if(sConn.equals("")) {
+ sInsState = db.setData(sName, pwd, fname, lname, email, pno, address, state, pin, cno);
+ %>
+<%String x=sInsState;%>
+ <%
+ if(x.equals(y))
+ {
+
+%>
+
+<%}
+ else
+ {
+%>
+
+<%}
+
+ }
+ }
+ }%>
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/generatebill.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/generatebill.jsp
new file mode 100644
index 0000000..474c7de
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/generatebill.jsp
@@ -0,0 +1,25 @@
+
+
+ BILL DETAILS
+
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/login.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/login.jsp
new file mode 100644
index 0000000..b6d4bb3
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/login.jsp
@@ -0,0 +1,57 @@
+
+
+
+
+
+TELEPHONE BILLING SYSTEM
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/login1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/login1.jsp
new file mode 100644
index 0000000..445ff09
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/login1.jsp
@@ -0,0 +1,57 @@
+
+
+
+
+
+TELEPHONE BILLING SYSTEM
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/login_conn.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/login_conn.jsp
new file mode 100644
index 0000000..90220ec
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/login_conn.jsp
@@ -0,0 +1,55 @@
+
+
+
+
+Employee Details
+<%@ page import = "java.sql.*, chandu.dbConn4" %>
+
+<%!
+ ResultSet rs ;
+ dbConn4 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn4();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+
+<%
+ String sID = request.getParameter("ID");
+ String uname =request.getParameter("uname");
+ String pwd =request.getParameter("password");
+ //String user=null;
+ int t=0;
+
+
+ rs = db.getData();
+
+%>
+
+
+
+<%
+ while(rs.next()){
+%>
+ <%
+ String x=rs.getString(1);
+ String y=rs.getString(2);
+
+ if(x.equals(uname)&&y.equals(pwd))
+ {%>
+
+ <%
+ }
+ else{ t=1;
+
+ }
+}
+%>
+<%if(t==1) { %>
+
+<%}%>
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/new_connection1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/new_connection1.jsp
new file mode 100644
index 0000000..d49f959
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/new_connection1.jsp
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+NEW CONNECTION REGISTRATION
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/newconnexp.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/newconnexp.jsp
new file mode 100644
index 0000000..0a31e40
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/newconnexp.jsp
@@ -0,0 +1,59 @@
+
+
+
+
+Phone Details
+<%@ page import = "java.sql.*, chandu.dbConn1" %>
+
+<%!
+ ResultSet rs ;
+ dbConn1 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn1();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+Home
+<%
+ String sID = request.getParameter("ID");
+ if(sID.equals("INSERT")) {
+ String uname = request.getParameter("uname");
+ String cname = request.getParameter("cname");
+ String occupation = request.getParameter("occupation");
+ String purpose = request.getParameter("purpose");
+ String gender = request.getParameter("m");
+ int income = (new Integer(request.getParameter("income"))).intValue();
+ String dob = request.getParameter("dob");
+ String address = request.getParameter("address");
+ String state = request.getParameter("state");
+ int pin = (new Integer(request.getParameter("pin"))).intValue();
+
+String y="Data inserted successfully";
+
+
+
+ String sInsState =null;
+ if(sConn.equals("")) {
+ sInsState = db.setData(uname, cname, occupation, purpose, gender, income, dob, address, state, pin);
+ }
+%>
+<%String x=sInsState;%>
+ <%
+ if(x.equals(y))
+ {
+
+%>
+
+<%}
+ else
+ {
+ %>
+
+<%
+ }
+ }%>
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/newno.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/newno.jsp
new file mode 100644
index 0000000..1de93c3
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/newno.jsp
@@ -0,0 +1,68 @@
+
+
+
+
+Phone Details
+<%@ page import = "java.sql.*, chandu.dbConn1" %>
+
+<%!
+ ResultSet rs ;
+ dbConn1 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn1();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+
+<%
+ String sID = request.getParameter("ID");
+ String user =request.getParameter("user");
+ rs = db.getData();
+
+%>
+
+
+
+ | Name |
+ Purpose |
+ Phone No Alloted |
+
+
+<%
+ while(rs.next()){
+%>
+ <%
+ String x=rs.getString(1);
+ String y=rs.getString(2);
+ String z=rs.getString(3);
+ int a=rs.getInt(4);
+
+ if(x.equals(user))
+ {%>
+
+
+ | <%=y%> |
+ <%=z%> |
+ <%=a%> |
+
+
+
+
+ <%
+ }
+ }
+%>
+
+
+
+ HOME
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill.jsp
new file mode 100644
index 0000000..02a891a
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill.jsp
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+ BILL PAYMENT
+Home LOGOUT
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill1.jsp
new file mode 100644
index 0000000..7fbb7e0
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill1.jsp
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+ BILL PAYMENT
+Home LOGOUT
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill2.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill2.jsp
new file mode 100644
index 0000000..0e1b50b
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybill2.jsp
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+ BILL PAYMENT
+Home LOGOUT
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/paybillconn.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybillconn.jsp
new file mode 100644
index 0000000..7170d64
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/paybillconn.jsp
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+ CARD NOT INVALID
+
+ Enter Valid No
+
+
+<%@ page import = "java.sql.*, chandu.dbConn5" %>
+
+<%!
+ ResultSet rs ;
+
+ dbConn5 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn5();
+ sConn = db.DBConnect();
+ rs = null;
+ // String us=(String)session.getAttribute("user");
+ }
+%>
+Home
+
+<%
+
+
+ String sID = request.getParameter("ID");
+ if(sID.equals("SUBMIT")) {
+ String bno = request.getParameter("bnum");
+ int amt = (new Integer(request.getParameter("amt"))).intValue();
+ String bank = request.getParameter("bank");
+ String cardno = request.getParameter("cardno");
+
+
+String y="Data updation successfully";
+ int s=0;
+ int z=0;
+
+ String sInsState =null;
+
+
+
+
+ rs= db.getData1();
+while(rs.next()){
+ if(rs.getString(1).equals(bno)&&(rs.getInt(2)==amt))
+ {
+ z=1;
+ }
+ if(z==1)
+ {
+ if((rs.getString(3)==null))
+ {
+ s=1;
+ }
+ }
+ }
+if((s!=1))
+ {
+ %>
+
+ <%
+ }
+ if(z!=1)
+ {
+ %>
+
+<%
+ }
+ else
+ {
+ if(sConn.equals("")) {
+ sInsState = db.setData(bno, amt, bank, cardno);
+ }%>
+<%String x=sInsState;%>
+ <%
+ if(x.equals(y))
+ {%>
+
+<%}
+
+
+ }
+ }
+ %>
+
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/previousbill.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/previousbill.jsp
new file mode 100644
index 0000000..a63d110
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/previousbill.jsp
@@ -0,0 +1,27 @@
+
+
+ PREVIOUS BILL DETAILS
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/signup.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/signup.jsp
new file mode 100644
index 0000000..842ca5f
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/signup.jsp
@@ -0,0 +1,104 @@
+
+
+
+
+
+NEW USER REGISTRATION
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/signup1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/signup1.jsp
new file mode 100644
index 0000000..ca62368
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/signup1.jsp
@@ -0,0 +1,106 @@
+
+
+
+
+
+NEW USER REGISTRATION
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/success.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/success.jsp
new file mode 100644
index 0000000..46a391a
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/success.jsp
@@ -0,0 +1,7 @@
+
+
+ GO TO HOME PAGE
+SUCCESSFULLY REGISTERD
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/success1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/success1.jsp
new file mode 100644
index 0000000..836d3a2
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/success1.jsp
@@ -0,0 +1,7 @@
+
+
+ GO TO HOME PAGE
+BILL PAID SUCCESSFULLY
+
+
+
\ No newline at end of file
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/uname.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/uname.jsp
new file mode 100644
index 0000000..d56584a
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/uname.jsp
@@ -0,0 +1,38 @@
+
+
+
+
+
+ WELCOME
+ Enter User Name to View Alloted Phone No
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/viewbill.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/viewbill.jsp
new file mode 100644
index 0000000..ae4b586
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/viewbill.jsp
@@ -0,0 +1,99 @@
+
+
+
+
+Bill Details
+<%@ page import = "java.sql.*, chandu.dbConn3" %>
+
+<%!
+ ResultSet rs ;
+ dbConn3 db ;
+ String sConn;
+ public void jspInit() {
+ db = new dbConn3();
+ sConn = db.DBConnect();
+ rs = null;
+ }
+%>
+
+
+
+Back Home
+ Pay Bill
+
+
+<%
+ String sID = request.getParameter("ID");
+ String pno = request.getParameter("pno");
+ String uname = request.getParameter("uname");
+ //out.println(pno);
+ rs = db.getData();
+
+%>
+
+
+
+
+ | Customer name |
+ phone no |
+ bill no |
+ Bill amount |
+ pay by date |
+ paid date |
+ Status |
+
+
+<% int z=0;
+ while(rs.next()){
+%>
+ <%
+ String x=rs.getString(1);
+ String y=rs.getString(2);
+ //out.println(x);
+
+ if(y.equals(pno)&&x.equals(uname))
+ { z=1;
+ %>
+
+
+ | <%=rs.getString(3)%> |
+ <%=y%> |
+ <%=rs.getString(4)%> |
+ <%=rs.getInt(5)%> |
+ <%=rs.getString(6)%> |
+
+ <%
+ String s;
+ String t=rs.getString(7);
+ if((t==null))
+ {
+s="NOT PAID";
+ }
+else
+ {
+ s="PAID";
+ }
+ %>
+ <%=t%> |
+ <%=s%> |
+
+
+
+
+<%
+ }
+
+
+ }
+ if(z==0)
+ {%>
+
+<%
+} %>
+
+
+
+
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/vwbill.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/vwbill.jsp
new file mode 100644
index 0000000..7ddb250
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/vwbill.jsp
@@ -0,0 +1,40 @@
+
+
+
+
+
+ WELCOME
+ Enter Telephone Number to View Bill
+ Back Home LOGOUT
+
+
+
+
diff --git a/Telephone Billing System Java Project/Telephone Billing System - Codes/vwbill1.jsp b/Telephone Billing System Java Project/Telephone Billing System - Codes/vwbill1.jsp
new file mode 100644
index 0000000..e966455
--- /dev/null
+++ b/Telephone Billing System Java Project/Telephone Billing System - Codes/vwbill1.jsp
@@ -0,0 +1,42 @@
+
+
+
+
+
+ WELCOME
+ Enter Telephone Number to View Bill
+
+Back Home LOGOUT
+
+
+
+
+
+