Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
199 changes: 199 additions & 0 deletions Database/aadhar.sql

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions Database/birth_certificate.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 16, 2023 at 08:35 AM
-- Server version: 10.4.28-MariaDB
-- PHP Version: 8.0.28

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `electhon`
--

-- --------------------------------------------------------

--
-- Table structure for table `birth_certificate`
--

CREATE TABLE `birth_certificate` (
`Full_Name` varchar(100) DEFAULT NULL,
`Date` varchar(100) DEFAULT NULL,
`Place` varchar(100) DEFAULT NULL,
`Gender` varchar(100) DEFAULT NULL,
`Parents_Info` varchar(100) DEFAULT NULL,
`Physician_Info` varchar(100) DEFAULT NULL,
`Registration_No` varchar(100) NOT NULL,
`Date_of_registration` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `birth_certificate`
--
ALTER TABLE `birth_certificate`
ADD PRIMARY KEY (`Registration_No`);
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
49 changes: 49 additions & 0 deletions Database/elct_process.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 16, 2023 at 07:22 AM
-- Server version: 10.4.28-MariaDB
-- PHP Version: 8.0.28

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `electhon`
--

-- --------------------------------------------------------

--
-- Table structure for table `elct_process`
--

CREATE TABLE `elct_process` (
`Name` varchar(50) DEFAULT NULL,
`Aadhar_No` varchar(50) DEFAULT NULL,
`Father_VoteID` varchar(50) DEFAULT NULL,
`Mother_VoteID` varchar(50) DEFAULT NULL,
`PAN_No` varchar(50) DEFAULT NULL,
`Address` varchar(100) NOT NULL,
`Assembly_Constituency` varchar(50) DEFAULT NULL,
`Gender` varchar(50) DEFAULT NULL,
`DOB` varchar(50) DEFAULT NULL,
`Father_Name` varchar(50) DEFAULT NULL,
`Mother_Name` varchar(50) DEFAULT NULL,
`Photo` mediumblob DEFAULT NULL,
`mobile_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
194 changes: 194 additions & 0 deletions Database/pan.sql

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions Database/puc.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 16, 2023 at 04:18 AM
-- Server version: 10.4.28-MariaDB
-- PHP Version: 8.0.28

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `election`
--

-- --------------------------------------------------------

--
-- Table structure for table `puc`
--

CREATE TABLE `puc` (
`Name` varchar(50) NOT NULL,
`Reg_No` varchar(50) NOT NULL,
`puc_aadhar_no` varchar(50) NOT NULL,
`Address` varchar(100) NOT NULL,
`DateofBirth` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `puc`
--

INSERT INTO `puc` (`Name`, `Reg_No`, `puc_aadhar_no`, `Address`, `DateofBirth`) VALUES
('Ravi Kumar', '123400', '123456789003', 'HMT Main Road, Mathikere, Bengaluru, Karnataka.', '10-04-2001'),
('Lakshmi', '123401', '123456789004', 'HMT Main Road, Mathikere, Bengaluru, Karnataka.', '10-08-2002'),
('Swathi', '123403', '123456789008', 'No 01 Chikka Basthi, Main Rd, Ramasandra, Karnataka.', '17-05-2002'),
('Tharun', '123404', '123456789011', '#1113, 8th A Main Rd, 3rd Block, 3rd Stage, Basavesshwara nagar, Banglore, Karnataka.', '10-04-2004'),
('Yashvanth', '123405', '123456789015', '4th G Main Rd, HRBR Layout, Kalyan Nagar, Bengalore, Karnataka.', '10-04-2000'),
('Anirudh', '123406', '123456789029', 'Devanur Main Road 5th Cross, Decatur Main Road, Vijayanagar, Tumkur, Karntaka.', '13-04-2001'),
('Prashanth', '123407', '123456789034', 'TUDA Layout, Tumakuru, Karnataka 572106.', '20-08-2003'),
('Nirmala', '123408', '123456789035', 'TUDA Layout, Tumakuru, Karnataka 572106.', '22-02-2002'),
('Chandana', '123409', '123456789036', 'TUDA Layout, Tumakuru, Karnataka 572106.', '19-02-1999'),
('Raju', '123410', '123456789039', '6th Cross Rd, Hosamane, Shivamogga, Karnataka.', '03-04-2004'),
('Aishwarya', '123411', '123456789040', '6th Cross Rd, Hosamane, Shivamogga, Karnataka.', '04-04-2001');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `puc`
--
ALTER TABLE `puc`
ADD PRIMARY KEY (`Reg_No`),
ADD KEY `p_aadhar_fk` (`puc_aadhar_no`);
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
123 changes: 123 additions & 0 deletions Database/voter.sql

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions ECI_2023/WebContent/Check_detail.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<%@ page import="java.sql.*" %>
<%@ page import="javax.naming.*, javax.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<head>
<title>Database Entries</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f4f4f4;
margin: 0;
}
header {
display: flex;
align-items: center;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #555;
margin: 0;
}
img {
height: 50px;
margin-right: 10px;
}
table {
border-collapse: collapse;
width: 100%;
margin: 20px auto;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
th, td {
text-align: left;
padding: 8px;
}
tr:nth-child(even) {background-color: #f2f2f2;}
th {
background-color: #4CAF50;
color: white;
}
</style>
</head>

<body>
<%response.sendRedirect("puc.jsp"); %>
<header>
<img src="img.jpg" alt="Election Commission of India Logo">
<h1>Election Commission of India</h1>
</header>
<table>
<tr>
<th>Name</th>
<th>Aadhar No</th>
<th>Father VoteID</th>
<th>Mother VoteID</th>
<th>PAN No</th>
<th>Address</th>
<th>Constituency</th>
<th>Gender</th>
<th>DOB</th>
<th>Father Name</th>
<th>Mother Name</th>

</tr>
<%
try {
// Get the data source
Connection c=null;
Class.forName("com.mysql.jdbc.Driver");
c=DriverManager.getConnection("jdbc:mysql://localhost:3306/electhon","root","");

// Execute the query
Statement stmt = c.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM elct_process");

// Loop through the result set
while (rs.next()) {
String name = rs.getString("Name");
String aadharNo = rs.getString("Aadhar_No");
String fatherVoteID = rs.getString("Father_VoteID");
String motherVoteID = rs.getString("Mather_VoteID");
String panNo = rs.getString("PAN_No");
String address = rs.getString("Address");
String constituency = rs.getString("Assembly_Constituency");
String gender = rs.getString("Gender");
String dob = rs.getString("DOB");
String fatherName = rs.getString("Father_Name");
String motherName = rs.getString("Mother_Name");
//String photo = rs.getString("Photo");
%>
<tr>
<td><%=name%></td>
<td><%=aadharNo%></td>
<td><%=fatherVoteID%></td>
<td><%=motherVoteID%></td>
<td><%=panNo%></td>
<td><%=address%></td>
<td><%=constituency%></td>
<td><%=gender%></td>
<td><%=dob%></td>
<td><%=fatherName%></td>
<td><%=motherName%></td>

</tr>
<%
}

// Close the connection
c.close();

} catch (Exception e) {
out.println(e.getMessage());
}
%>
</body>
Loading