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
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Electhon - 2023

#### Team Name -
#### Problem Statement -
#### Team Leader Email -
#### Team Name - IGNITE07
#### Problem Statement - How can we ensure the registration of new voters in the electoral roll?
#### Team Leader Email - [email protected]

## A Brief of the Prototype:
What is your solution? and how it works.
Basically, We built a website that offers the following features:

1. Simplified registration forms that make the registration process more accessible and user-friendly for potential voters.
2. Online registration options allow voters to register from the comfort of their own homes, reducing the barriers posed by physical registration centers.
3. When Online registration is done, a pop-up generates with a scratch card(we may be tied up with many companies).
4. In the above discussion we take money from that companies for promoting their platforms with a scratch card method. We use promo code on some product which is only on their platform. As a result, users will also get benefits for registering online and the government and the company make money from this solution.
5. Same-day voter registration policies allow eligible voters to register to vote on the day of the election itself, reducing the barriers posed by strict registration deadlines.

## Code Execution Instruction:
*[If your solution is **not** application based, you can ignore this para]

*The Repository must contain your **Execution Plan PDF**.
Pdf Link- https://drive.google.com/file/d/184VrstmZ2Ds0rPrZTvGXQica9K4P6O5q/view?usp=sharing
12 changes: 12 additions & 0 deletions connection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "login_sample_db";

if(!$con = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname))
{

die("failed to connect!");
}
83 changes: 83 additions & 0 deletions form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style1.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<title>IGNITE07</title>
</head>
<body>
<div class="wrapper">
<div class="container main">
<div class="row">
<div class="col-md-6 side-image">
<!-------Image-------->
<img src="images/white.png" alt="">
<div class="text">
<p> <i></i></p>
</div>
</div>

<div class="col-md-6 right">
<div class="input-box">
<header>Online Voter Registration Portal</header>
<div class="input-field">
<input type="text" class="input" id="email" required autocomplete="off">
<label for="email">Email</label>
</div>
<div class="input-field">
<input type="FullName" class="input" id="fullname" required>
<label for="FullName">Full Name</label>
</div>
<form action="upload.php" method="post" enctype="multipart/form-data">
<label for="fileToUpload">aadhaar Card(pdf less than 2mb):</label>
<input type="file" name="fileToUpload" id="fileToUpload">
</form>

<div class="input-field">
<input type="FullName" class="input" id="fullname" required>
<label for="FullName">Father's/Husband's Name</label>
</div>

<!-- <div class="input-field">
<input type="FullName" class="input" id="fullname" required>
<label for="FullName">Gender</label>
</div> -->

<div class="input-field">
<input type="FullName" class="input" id="fullname" required>
<label for="FullName">Permanent Address:</label>
</div>

<div class="input-field">
<input type="FullName" class="input" id="fullname" required>
<label for="FullName">Mobile Number</label>
</div>
<!-- <div class="input-field">
<input type="password" class="input" id="password" required>
<label for="password">State</label>
</div>
<div class="input-field">
<input type="password" class="input" id="password" required>
<label for="password">Block</label>
</div>
<div class="input-field">
<input type="password" class="input" id="password" required>
<label for="password">Pincode</label>
</div>-->

<div class="input-field">
<a href="scratchcard.html">
<input type="submit" class="submit" value="Register">
</a>
</div>

</div>
</div>
</div>
</div>
</div>
</body>
</html>
45 changes: 45 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

function check_login($con)
{

if(isset($_SESSION['user_id']))
{

$id = $_SESSION['user_id'];
$query = "select * from users where user_id = '$id' limit 1";

$result = mysqli_query($con,$query);
if($result && mysqli_num_rows($result) > 0)
{

$user_data = mysqli_fetch_assoc($result);
return $user_data;
}
}

//redirect to login
header("Location: login.php");
die;

}

function random_num($length)
{

$text = "";
if($length < 5)
{
$length = 5;
}

$len = rand(4,$length);

for ($i=0; $i < $len; $i++) {
# code...

$text .= rand(0,9);
}

return $text;
}
167 changes: 167 additions & 0 deletions homepage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
<title>IGNITE07</title>
</head>
<body>
<header class="text-gray-600 body-font">
<div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
<a class="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-10 h-10 text-white p-2 bg-indigo-500 rounded-full" viewBox="0 0 24 24">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
<span class="ml-3 text-xl">IGNITE07</span>
</a>
<nav class="md:ml-auto md:mr-auto flex flex-wrap items-center text-base justify-center">
<a class="mr-5 hover:text-gray-900"></a>
<a class="mr-5 hover:text-gray-900"></a>
<a class="mr-5 hover:text-gray-900"></a>
<a class="mr-5 hover:text-gray-900"></a>
</nav>
<button class="inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 md:mt-0">Logout
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-4 h-4 ml-1" viewBox="0 0 24 24">
<path d="M5 12h14M12 5l7 7-7 7"></path>
</svg>
</button>
</div>
</header>


<section class="text-gray-600 body-font">
<div class="container px-5 py-24 mx-auto">
<div class="flex flex-wrap -m-4">
<div class="p-4 lg:w-1/3">
<div class="h-full bg-gray-100 bg-opacity-75 px-8 pt-16 pb-24 rounded-lg overflow-hidden text-center relative">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-400 mb-1"></h2>
<h1 class="title-font sm:text-2xl text-xl font-medium text-gray-900 mb-3">Online Registration Form</h1>
<p class="leading-relaxed mb-3">Election commission of India offers online voter registration for Indian citizens who have attained the age of 18 on the qualifying date (1st of January of the year of revision of electoral roll). Citizen, can enroll himself/herself as General Voter and fill Form 6 online at National Voters' Service Portal.</p>
<a href="form.html" class="text-indigo-500 inline-flex items-center">Register Now
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<div class="text-center mt-2 leading-none flex justify-center absolute bottom-0 left-0 w-full py-4">
<span class="text-gray-400 mr-3 inline-flex items-center leading-none text-sm pr-3 py-1 border-r-2 border-gray-200">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</span>
<span class="text-gray-400 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>
</span>
</div>
</div>
</div>
<div class="p-4 lg:w-1/3">
<div class="h-full bg-gray-100 bg-opacity-75 px-8 pt-16 pb-24 rounded-lg overflow-hidden text-center relative">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-400 mb-1"></h2>
<h1 class="title-font sm:text-2xl text-xl font-medium text-gray-900 mb-3">Instructions</h1>
<p class="leading-relaxed mb-3">Requirements for registering to vote

You can enroll as a Voter if you:

are an Indian citizen.
have attained the age of 18 years on the qualifying date i.e. 1st of January of the year of revision of electoral roll.
are ordinarily resident of the part/polling area of the constituency where you want to be enrolled.
are not disqualified to be enrolled as an elector.
</p>
<a class="text-indigo-500 inline-flex items-center">Learn More
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<div class="text-center mt-2 leading-none flex justify-center absolute bottom-0 left-0 w-full py-4">
<span class="text-gray-400 mr-3 inline-flex items-center leading-none text-sm pr-3 py-1 border-r-2 border-gray-200">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</span>
<span class="text-gray-400 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>
</span>
</div>
</div>
</div>
<div class="p-4 lg:w-1/3">
<div class="h-full bg-gray-100 bg-opacity-75 px-8 pt-16 pb-24 rounded-lg overflow-hidden text-center relative">
<h2 class="tracking-widest text-xs title-font font-medium text-gray-400 mb-1"></h2>
<h1 class="title-font sm:text-2xl text-xl font-medium text-gray-900 mb-3">Download/Print Voter Id Card</h1>
<p class="leading-relaxed mb-3">Click Here to Download</p>
<a class="text-indigo-500 inline-flex items-center">
<svg class="w-4 h-4 ml-2" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"></path>
<path d="M12 5l7 7-7 7"></path>
</svg>
</a>
<div class="text-center mt-2 leading-none flex justify-center absolute bottom-0 left-0 w-full py-4">
<span class="text-gray-400 mr-3 inline-flex items-center leading-none text-sm pr-3 py-1 border-r-2 border-gray-200">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
</span>
<span class="text-gray-400 inline-flex items-center leading-none text-sm">
<svg class="w-4 h-4 mr-1" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24">
<path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
</svg>
</span>
</div>
</div>
</div>
</div>
</div>
</section>

<footer class="text-gray-600 body-font">
<div class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col">
<a class="flex title-font font-medium items-center md:justify-start justify-center text-gray-900">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-10 h-10 text-white p-2 bg-indigo-500 rounded-full" viewBox="0 0 24 24">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
<span class="ml-3 text-xl">IGNITE07</span>
</a>
<p class="text-sm text-gray-500 sm:ml-4 sm:pl-4 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:mt-0 mt-4">© 2023 Ignite07 —
<a href="" class="text-gray-600 ml-1" rel="noopener noreferrer" target="_blank">@ankitjagat</a>
</p>
<span class="inline-flex sm:ml-auto sm:mt-0 mt-4 justify-center sm:justify-start">
<a class="text-gray-500">
<svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path>
</svg>
</a>
<a class="ml-3 text-gray-500">
<svg fill="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path>
</svg>
</a>
<a class="ml-3 text-gray-500">
<svg fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
<rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect>
<path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zm1.5-4.87h.01"></path>
</svg>
</a>
<a class="ml-3 text-gray-500">
<svg fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="0" class="w-5 h-5" viewBox="0 0 24 24">
<path stroke="none" d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z"></path>
<circle cx="4" cy="4" r="2" stroke="none"></circle>
</svg>
</a>
</span>
</div>
</footer>


</body>
</html>
Loading