-
BINcd_waste_docs/cdwaste_aadhar/1_adhaar.jpg
-
BINcd_waste_docs/cdwaste_aadhar/2_aadhaar card.jpg
-
BINcd_waste_docs/cdwaste_aadhar/3_adhaar.jpg
-
BINcd_waste_docs/cdwaste_aadhar/4_adhaar.jpg
-
BINcd_waste_docs/cdwaste_aadhar/5_adhaar.jpg
-
BINcd_waste_docs/cdwaste_aadhar/6_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_aadhar/6_adhaar.jpg
-
BINcd_waste_docs/cdwaste_aadhar/7_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_aadhar/7_adhaar.jpg
-
BINcd_waste_docs/cdwaste_aadhar/8_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_aadhar/8_adhaar.jpg
-
BINcd_waste_docs/cdwaste_leasedoc/3_vehicle rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/1_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/2_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/3_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/4_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/5_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/6_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/6_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/7_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/7_rc book.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/8_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_rcbookdoc/8_rc book.jpg
-
BINcd_waste_docs/cdwaste_userphoto/1_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/2_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/3_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/4_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/5_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/6_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_userphoto/6_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/7_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_userphoto/7_baby.jpg
-
BINcd_waste_docs/cdwaste_userphoto/8_IMG_20250212_151602.jpg
-
BINcd_waste_docs/cdwaste_userphoto/8_bby.jpg
-
2pom.xml
-
8src/main/java/com/volunteersregistration/config/AppConstants.java
-
16src/main/java/com/volunteersregistration/controller/ApiController.java
-
6src/main/java/com/volunteersregistration/controller/VolunteerController.java
-
6src/main/java/com/volunteersregistration/repository/VolunteerRegistrationRepo.java
-
6src/main/java/com/volunteersregistration/service/VolunteerRegistrationService.java
-
52src/main/java/com/volunteersregistration/wasteCollector/controller/ApiController.java
-
1src/main/java/com/volunteersregistration/wasteCollector/controller/MainController.java
-
10src/main/java/com/volunteersregistration/wasteCollector/repository/CdlicenseRepository.java
-
16src/main/java/com/volunteersregistration/wasteCollector/repository/WasteRegistrationRepo.java
-
8src/main/resources/application-dev.properties
-
9src/main/resources/application-prod.properties
-
2src/main/resources/application.properties
-
BINsrc/main/resources/static/images/full_ripon.png
-
BINsrc/main/resources/static/images/gcc_logo.png
-
BINsrc/main/resources/static/images/sample1.jpg
-
72src/main/resources/templates/allreports.html
-
170src/main/resources/templates/index.html
-
615src/main/resources/templates/kynreportlogin.html
-
2src/main/resources/templates/modules/wastecollectors/index.html
-
9src/main/resources/templates/modules/wastecollectors/noidcard.html
-
3src/main/resources/templates/modules/wastecollectors/otp.html
-
6src/main/resources/templates/modules/wastecollectors/register.html
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 259 | Height: 194 | Size: 5.4 KiB |
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 288 | Height: 175 | Size: 12 KiB |
|
After Width: 1200 | Height: 630 | Size: 90 KiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 301 | Height: 167 | Size: 14 KiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 360 | Height: 360 | Size: 48 KiB |
|
After Width: 4000 | Height: 3000 | Size: 4.3 MiB |
|
After Width: 225 | Height: 225 | Size: 8.6 KiB |
@ -1,11 +1,11 @@ |
|||||
package com.volunteersregistration.config; |
package com.volunteersregistration.config; |
||||
|
|
||||
public final class AppConstants { |
public final class AppConstants { |
||||
// public static String key_id="rzp_live_ySI5Ns54Y7qOcJ"; |
|
||||
// public static String key_secret="Nwf1TjhUtaskof8vePkRR8Sb"; |
|
||||
|
public static String key_id="rzp_live_ySI5Ns54Y7qOcJ"; |
||||
|
public static String key_secret="Nwf1TjhUtaskof8vePkRR8Sb"; |
||||
|
|
||||
|
|
||||
//uncomment for testing payment |
//uncomment for testing payment |
||||
public static String key_id="rzp_test_tDkHFEqWXmuEi8"; |
|
||||
public static String key_secret="cBQUjMcKZ4J6vmOKSyNZ92py"; |
|
||||
|
// public static String key_id="rzp_test_tDkHFEqWXmuEi8"; |
||||
|
// public static String key_secret="cBQUjMcKZ4J6vmOKSyNZ92py"; |
||||
} |
} |
||||
@ -1 +1 @@ |
|||||
spring.profiles.active=dev |
|
||||
|
spring.profiles.active=dev |
||||
|
After Width: 512 | Height: 342 | Size: 277 KiB |
|
After Width: 300 | Height: 401 | Size: 159 KiB |
|
After Width: 1181 | Height: 781 | Size: 278 KiB |
@ -1,448 +1,199 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html xmlns:th="http://www.thymeleaf.org"> |
<html xmlns:th="http://www.thymeleaf.org"> |
||||
|
|
||||
<head> |
<head> |
||||
<meta charset="UTF-8"> |
|
||||
<title>GCC - Volunteers</title> |
|
||||
<!-- Bootstrap CSS --> |
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"> |
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> |
|
||||
<!-- SweetAlert CSS --> |
|
||||
|
|
||||
|
<meta charset="UTF-8" /> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
||||
|
<title>GCC - Volunteers</title> |
||||
|
<link |
||||
|
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" |
||||
|
rel="stylesheet"> |
||||
|
<script |
||||
|
src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> |
||||
<!-- SweetAlert2 CSS --> |
<!-- SweetAlert2 CSS --> |
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css"> |
|
||||
<!-- SweetAlert2 JavaScript --> |
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> |
|
||||
|
|
||||
<!-- Bootstrap JS --> |
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css"> |
|
||||
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/2.3.5/css/buttons.dataTables.min.css"> |
|
||||
|
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
|
||||
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script> |
|
||||
<script src="https://cdn.datatables.net/buttons/2.3.5/js/dataTables.buttons.min.js"></script> |
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> |
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script> |
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script> |
|
||||
<script src="https://cdn.datatables.net/buttons/2.3.5/js/buttons.html5.min.js"></script> |
|
||||
<style> |
|
||||
/* Header Styling */ |
|
||||
.header { |
|
||||
background-color: #1d495a; |
|
||||
padding: 10px 20px; |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
justify-content: space-between; |
|
||||
color: white; |
|
||||
font-family: Arial, sans-serif; |
|
||||
} |
|
||||
|
|
||||
.header .logo { |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
} |
|
||||
|
|
||||
.header .logo img { |
|
||||
height: 60px; |
|
||||
} |
|
||||
|
|
||||
.header .menu { |
|
||||
display: flex; |
|
||||
justify-content: center; |
|
||||
align-items: center; |
|
||||
flex-grow: 1; |
|
||||
margin-left: 20px; |
|
||||
} |
|
||||
|
|
||||
.header .menu a { |
|
||||
color: white; |
|
||||
margin: 0 15px; |
|
||||
text-decoration: none; |
|
||||
|
|
||||
} |
|
||||
|
|
||||
.header .menu a:hover { |
|
||||
text-decoration: underline; |
|
||||
} |
|
||||
|
|
||||
.footer { |
|
||||
background-color: #1d4859; |
|
||||
color: white; |
|
||||
position: fixed; |
|
||||
bottom: 0; |
|
||||
width: 100%; |
|
||||
padding: 20px; |
|
||||
} |
|
||||
|
|
||||
.footer-content { |
|
||||
position: relative; |
|
||||
text-align: center; |
|
||||
font-size: 14px; |
|
||||
} |
|
||||
|
|
||||
.footer-image { |
|
||||
position: absolute; |
|
||||
top: 50%; |
|
||||
transform: translateY(-50%); |
|
||||
opacity: 0.2; |
|
||||
/* Light opacity */ |
|
||||
} |
|
||||
|
|
||||
.left-image { |
|
||||
left: 10px; |
|
||||
} |
|
||||
|
|
||||
.right-image { |
|
||||
right: 10px; |
|
||||
} |
|
||||
|
|
||||
/* login CSS */ |
|
||||
@import url('https://fonts.googleapis.com/css?family=Raleway:400,700'); |
|
||||
|
|
||||
* { |
|
||||
box-sizing: border-box; |
|
||||
margin: 0; |
|
||||
padding: 0; |
|
||||
font-family: Raleway, sans-serif; |
|
||||
} |
|
||||
|
|
||||
body { |
|
||||
background: linear-gradient(90deg, #C7C5F4, #776BCC); |
|
||||
} |
|
||||
|
|
||||
.container { |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
justify-content: center; |
|
||||
min-height: 100vh; |
|
||||
} |
|
||||
|
|
||||
.screen { |
|
||||
background: linear-gradient(90deg, #5D54A4, #7C78B8); |
|
||||
position: relative; |
|
||||
height: 600px; |
|
||||
width: 360px; |
|
||||
box-shadow: 0px 0px 24px #5C5696; |
|
||||
} |
|
||||
|
|
||||
.screen__content { |
|
||||
z-index: 1; |
|
||||
position: relative; |
|
||||
height: 100%; |
|
||||
} |
|
||||
|
|
||||
.screen__background { |
|
||||
position: absolute; |
|
||||
top: 0; |
|
||||
left: 0; |
|
||||
right: 0; |
|
||||
bottom: 0; |
|
||||
z-index: 0; |
|
||||
-webkit-clip-path: inset(0 0 0 0); |
|
||||
clip-path: inset(0 0 0 0); |
|
||||
} |
|
||||
|
|
||||
.screen__background__shape { |
|
||||
transform: rotate(45deg); |
|
||||
position: absolute; |
|
||||
} |
|
||||
|
|
||||
.screen__background__shape1 { |
|
||||
height: 520px; |
|
||||
width: 520px; |
|
||||
background: #FFF; |
|
||||
top: -50px; |
|
||||
right: 120px; |
|
||||
border-radius: 0 72px 0 0; |
|
||||
} |
|
||||
|
|
||||
.screen__background__shape2 { |
|
||||
height: 220px; |
|
||||
width: 220px; |
|
||||
background: #6C63AC; |
|
||||
top: -172px; |
|
||||
right: 0; |
|
||||
border-radius: 32px; |
|
||||
} |
|
||||
|
|
||||
.screen__background__shape3 { |
|
||||
height: 540px; |
|
||||
width: 190px; |
|
||||
background: linear-gradient(270deg, #5D54A4, #6A679E); |
|
||||
top: -24px; |
|
||||
right: 0; |
|
||||
border-radius: 32px; |
|
||||
} |
|
||||
|
|
||||
.screen__background__shape4 { |
|
||||
height: 400px; |
|
||||
width: 200px; |
|
||||
background: #7E7BB9; |
|
||||
top: 420px; |
|
||||
right: 50px; |
|
||||
border-radius: 60px; |
|
||||
} |
|
||||
|
|
||||
.login { |
|
||||
width: 320px; |
|
||||
padding: 30px; |
|
||||
padding-top: 156px; |
|
||||
} |
|
||||
|
|
||||
.login__field { |
|
||||
padding: 20px 0px; |
|
||||
position: relative; |
|
||||
} |
|
||||
|
|
||||
.login__icon { |
|
||||
position: absolute; |
|
||||
top: 30px; |
|
||||
color: #7875B5; |
|
||||
} |
|
||||
|
|
||||
.login__input { |
|
||||
border: none; |
|
||||
border-bottom: 2px solid #D1D1D4; |
|
||||
background: none; |
|
||||
padding: 10px; |
|
||||
padding-left: 24px; |
|
||||
font-weight: 700; |
|
||||
width: 75%; |
|
||||
transition: .2s; |
|
||||
} |
|
||||
|
|
||||
.login__input:active, |
|
||||
.login__input:focus, |
|
||||
.login__input:hover { |
|
||||
outline: none; |
|
||||
border-bottom-color: #6A679E; |
|
||||
} |
|
||||
|
|
||||
.login__submit { |
|
||||
background: #fff; |
|
||||
font-size: 14px; |
|
||||
margin-top: 30px; |
|
||||
padding: 16px 20px; |
|
||||
border-radius: 26px; |
|
||||
border: 1px solid #D4D3E8; |
|
||||
text-transform: uppercase; |
|
||||
font-weight: 700; |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
width: 100%; |
|
||||
color: #4C489D; |
|
||||
box-shadow: 0px 2px 2px #5C5696; |
|
||||
cursor: pointer; |
|
||||
transition: .2s; |
|
||||
} |
|
||||
|
|
||||
.login__submit:active, |
|
||||
.login__submit:focus, |
|
||||
.login__submit:hover { |
|
||||
border-color: #6A679E; |
|
||||
outline: none; |
|
||||
} |
|
||||
|
|
||||
.button__icon { |
|
||||
font-size: 24px; |
|
||||
margin-left: auto; |
|
||||
color: #7875B5; |
|
||||
} |
|
||||
|
|
||||
.social-login { |
|
||||
position: absolute; |
|
||||
height: 140px; |
|
||||
width: 160px; |
|
||||
text-align: center; |
|
||||
bottom: 0px; |
|
||||
right: 0px; |
|
||||
color: #fff; |
|
||||
} |
|
||||
|
|
||||
.social-icons { |
|
||||
display: flex; |
|
||||
align-items: center; |
|
||||
justify-content: center; |
|
||||
} |
|
||||
|
|
||||
.social-login__icon { |
|
||||
padding: 20px 10px; |
|
||||
color: #fff; |
|
||||
text-decoration: none; |
|
||||
text-shadow: 0px 0px 8px #7875B5; |
|
||||
} |
|
||||
|
|
||||
.social-login__icon:hover { |
|
||||
transform: scale(1.5); |
|
||||
} |
|
||||
</style> |
|
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css"> |
||||
|
<!-- SweetAlert2 JavaScript --> |
||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> |
||||
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
||||
|
<script |
||||
|
src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script> |
||||
|
<script |
||||
|
src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script> |
||||
|
<script |
||||
|
src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script> |
||||
</head> |
</head> |
||||
|
|
||||
<body style="background-color: #ebf1fa;"> |
|
||||
|
|
||||
|
|
||||
|
|
||||
<!-- Header Section --> |
|
||||
<!-- <div class="header"> |
|
||||
Left Logo |
|
||||
<div class="logo"> |
|
||||
<img src="https://gccservices.in/gcc/assets/images/logo.png" alt="Greater Chennai Corporation Logo"> |
|
||||
<span class="ml-2">GREATER CHENNAI CORPORATION</span> |
|
||||
</div> |
|
||||
|
|
||||
Center Menu |
|
||||
<div class="menu"> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/">Home</a> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/about-GCC/">About GCC</a> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/who-is-who/index_data.jsp">Who'sWho</a> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/council/about-council/">Council</a> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/tender/">Tender</a> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/department/">Departments</a> |
|
||||
<a href="https://chennaicorporation.gov.in/gcc/online-services/">Online Services</a> |
|
||||
</div> |
|
||||
</div>--> |
|
||||
|
|
||||
<div class="container"> |
|
||||
<div class="screen"> |
|
||||
<div class="screen__content"> |
|
||||
<form class="login" action="/login" method="post" onsubmit="return login();"> |
|
||||
<div class="login__field"> |
|
||||
<i class="login__icon fas fa-user"></i> |
|
||||
<input type="text" class="login__input" placeholder="Mobile Number" id="login-username" |
|
||||
name="login-username" maxlength="10" required> |
|
||||
|
|
||||
</div> |
|
||||
<div class="login__field"> |
|
||||
<i class="login__icon fas fa-lock"></i> |
|
||||
<input type="password" class="login__input" placeholder="Password" maxlength="4" |
|
||||
|
<style> |
||||
|
|
||||
|
* { |
||||
|
margin: 0; |
||||
|
padding: 0; |
||||
|
box-sizing: border-box; |
||||
|
} |
||||
|
|
||||
|
body { |
||||
|
font-family: 'Inter', sans-serif; |
||||
|
background: url('https://gccservices.in/volunteer/cd_waste_docs/images/web_bg1.jpeg') no-repeat center center/cover; |
||||
|
min-height: 100vh; |
||||
|
} |
||||
|
|
||||
|
.login-container { |
||||
|
position: relative; |
||||
|
width: 100%; |
||||
|
height: 100vh; |
||||
|
background: rgba(0, 72, 102, 0.65); /* Overlay blue tint */ |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.login-box { |
||||
|
background: rgba(255, 255, 255, 0.1); |
||||
|
backdrop-filter: blur(10px); |
||||
|
/* padding: 3.5rem; */ |
||||
|
padding-bottom:3.5rem; |
||||
|
padding-left:3.5rem; |
||||
|
padding-right:3.5rem; |
||||
|
padding-top:2rem; |
||||
|
border-radius: 16px; |
||||
|
/* width: 90%; */ |
||||
|
max-width: 600px; |
||||
|
box-shadow: 0 8px 24px rgba(0,0,0,0.2); |
||||
|
text-align: center; |
||||
|
color: #fff; |
||||
|
} |
||||
|
|
||||
|
.login-box h2 { |
||||
|
margin-bottom: 1.5rem; |
||||
|
color: #000; |
||||
|
} |
||||
|
|
||||
|
.login-box form input[type="text"], |
||||
|
.login-box form input[type="password"] { |
||||
|
width: 100%; |
||||
|
padding: 0.8rem; |
||||
|
margin-bottom: 1rem; |
||||
|
border: none; |
||||
|
border-radius: 8px; |
||||
|
font-size: 1rem; |
||||
|
} |
||||
|
|
||||
|
.password-field { |
||||
|
position: relative; |
||||
|
} |
||||
|
|
||||
|
.password-field .toggle-password { |
||||
|
position: absolute; |
||||
|
right: 10px; |
||||
|
top: 50%; |
||||
|
transform: translateY(-50%); |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
|
||||
|
.forgot { |
||||
|
display: block; |
||||
|
margin-bottom: 1rem; |
||||
|
font-size: 0.9rem; |
||||
|
color: #f0f0f0; |
||||
|
text-decoration: none; |
||||
|
} |
||||
|
|
||||
|
button[type="submit"] { |
||||
|
background-color: #007bff; |
||||
|
color: white; |
||||
|
padding: 0.8rem; |
||||
|
width: 100%; |
||||
|
border: none; |
||||
|
border-radius: 8px; |
||||
|
font-weight: bold; |
||||
|
cursor: pointer; |
||||
|
transition: background-color 0.3s ease; |
||||
|
} |
||||
|
|
||||
|
button[type="submit"]:hover { |
||||
|
background-color: #0056b3; |
||||
|
} |
||||
|
|
||||
|
/* Responsive */ |
||||
|
@media (max-width: 600px) { |
||||
|
.login-box { |
||||
|
padding: 1.5rem; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
</style> |
||||
|
|
||||
|
<body> |
||||
|
<div class="login-container"> |
||||
|
<div class="overlay"> |
||||
|
<div class="login-box"> |
||||
|
<img alt="No image" src="https://gccservices.in/gcc/assets/images/logo.png" style="height: 20%; width: 20%;margin-bottom: 5%;" class="mr-2"> |
||||
|
<h2 style="color: white;font-weight: bold;">Volunteer Admin Portal</h2> |
||||
|
<form class="login" action="/login" method="post" onsubmit="return login();"> |
||||
|
<input type="text" |
||||
|
class="login__input" placeholder="Mobile Number" |
||||
|
id="login-username" name="login-username" maxlength="10" required> |
||||
|
<div class="password-field"> |
||||
|
<input type="password" |
||||
|
class="login__input" placeholder="Password" maxlength="4" |
||||
id="login-password" name="login-password" value="" required> |
id="login-password" name="login-password" value="" required> |
||||
|
|
||||
</div> |
|
||||
<button class="button login__submit" type="submit"> |
|
||||
<span class="button__text">Log In Now</span> |
|
||||
<i class="button__icon fas fa-chevron-right"></i> |
|
||||
</button> |
|
||||
</form> |
|
||||
|
|
||||
<div th:if="${error}" class="error"> |
|
||||
|
<!-- <span class="toggle-password">👁️</span> --> |
||||
|
</div> |
||||
|
<!-- <a href="#" class="forgot">Forgot Password?</a> --> |
||||
|
<button type="submit">Login</button> |
||||
|
</form> |
||||
|
<div th:if="${error}" class="error"> |
||||
<p th:text="${error}"></p> |
<p th:text="${error}"></p> |
||||
</div> |
</div> |
||||
|
|
||||
</div> |
|
||||
<div class="screen__background"> |
|
||||
<span class="screen__background__shape screen__background__shape4"></span> |
|
||||
<span class="screen__background__shape screen__background__shape3"></span> |
|
||||
<span class="screen__background__shape screen__background__shape2"></span> |
|
||||
<span class="screen__background__shape screen__background__shape1"></span> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<!--<div class="container"> |
|
||||
<section id="content" style="margin-top: 20%;"> |
|
||||
<form action="/login" method="post" onsubmit="return login();"> |
|
||||
<div> |
|
||||
|
|
||||
<input type="number" maxlength="10" class="form-control" id="login-username" name="login-username" |
|
||||
placeholder="Mobile Number" value="" required> |
|
||||
</div> |
|
||||
<div> |
|
||||
|
|
||||
<input type="password" maxlength="4" class="form-control" id="login-password" name="login-password" |
|
||||
placeholder="PIN Number" value="" required> |
|
||||
</div> |
|
||||
<div> |
|
||||
<button type="submit">Login</button> |
|
||||
</div> |
|
||||
</form> |
|
||||
|
|
||||
|
|
||||
Display error if login fails |
|
||||
<div th:if="${error}" class="error"> |
|
||||
<p th:text="${error}"></p> |
|
||||
</div> |
|
||||
</section> |
|
||||
</div>--> |
|
||||
|
|
||||
|
|
||||
<!--<div class="footer"> |
|
||||
<div class="footer-content"> |
|
||||
<img src="/images/ripon.jpg" style="height: 51px; width: 155px;margin-top: 10px;" alt="Left Image" |
|
||||
class="footer-image left-image"> |
|
||||
<p>Volunteer Registration System provided to Greater Chennai Corporation by Bonton Software Private Limited. |
|
||||
</p> |
|
||||
<img src="/images/ripon.jpg" style="height: 51px; width: 155px;margin-top: 10px;" alt="Right Image" |
|
||||
class="footer-image right-image"> |
|
||||
</div> |
|
||||
</div>--> |
|
||||
|
|
||||
<script> |
|
||||
/*function handleLogin(event) { |
|
||||
event.preventDefault(); // Prevent the default form submission |
|
||||
|
|
||||
// Get username and password values |
|
||||
const username = document.getElementById('username').value; |
|
||||
const password = document.getElementById('password').value; |
|
||||
|
|
||||
// Check credentials for different users |
|
||||
if (username === 'kynreport' && password === '1234') { |
|
||||
// Successful login for kynreport |
|
||||
Swal.fire({ |
|
||||
title: 'Success!', |
|
||||
text: 'You have successfully logged in.', |
|
||||
icon: 'success', |
|
||||
}).then(() => { |
|
||||
window.location.href = 'kynreport'; // Redirect to kynreport page |
|
||||
}); |
|
||||
} else if (username === 'admin' && password === '1234') { |
|
||||
// Successful login for admin |
|
||||
Swal.fire({ |
|
||||
title: 'Success!', |
|
||||
text: 'You have successfully logged in.', |
|
||||
icon: 'success', |
|
||||
}).then(() => { |
|
||||
window.location.href = 'allreports'; // Redirect to allreports page |
|
||||
}); |
|
||||
} else { |
|
||||
// Failed login |
|
||||
Swal.fire({ |
|
||||
title: 'Error!', |
|
||||
text: 'Incorrect username or password.', |
|
||||
icon: 'error', |
|
||||
}); |
|
||||
} |
|
||||
}*/ |
|
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<script> |
||||
function login() { |
function login() { |
||||
var uname = $("#login-username").val(); |
var uname = $("#login-username").val(); |
||||
var upass = $("#login-password").val(); |
var upass = $("#login-password").val(); |
||||
$.ajax({ |
|
||||
type: "GET", |
|
||||
url: '/volunteer/api/registration/login', |
|
||||
data: { |
|
||||
'uname': uname, |
|
||||
'upass': upass |
|
||||
}, |
|
||||
}).done(function (response) { |
|
||||
// Handle the response here |
|
||||
if (response == "Error") { |
|
||||
console.error("Error:" + response); |
|
||||
$("#error").html("<p class='text-danger'>Invalid PIN or Mobile Number!<br>If you are a new user, please register as a new user.</p>"); |
|
||||
} |
|
||||
else { |
|
||||
if (response == "kyn") {window.location.href = "kynreport";} |
|
||||
else if (response == "admin") {window.location.href = "allreports";} |
|
||||
|
|
||||
|
|
||||
} |
|
||||
}).fail(function (jqXHR, textStatus, errorThrown) { |
|
||||
// Log the error and any relevant information |
|
||||
|
|
||||
}); |
|
||||
|
$ |
||||
|
.ajax({ |
||||
|
type : "GET", |
||||
|
url : '/volunteer/api/registration/login', |
||||
|
data : { |
||||
|
'uname' : uname, |
||||
|
'upass' : upass |
||||
|
}, |
||||
|
}) |
||||
|
.done( |
||||
|
function(response) { |
||||
|
// Handle the response here |
||||
|
if (response == "Error") { |
||||
|
console.error("Error:" + response); |
||||
|
/* $("#error") |
||||
|
.html( |
||||
|
"<p class='text-danger'>Invalid PIN or Mobile Number!<br>If you are a new user, please register as a new user.</p>"); */ |
||||
|
Swal.fire({ |
||||
|
icon: 'warning', |
||||
|
title: 'Invalid PIN or Mobile Number!', |
||||
|
text: 'If you are a new user, please register as a new user.' |
||||
|
}); |
||||
|
} else { |
||||
|
if (response == "kyn") { |
||||
|
window.location.href = "kynreport"; |
||||
|
} else if (response == "admin") { |
||||
|
window.location.href = "allreports"; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
}).fail(function(jqXHR, textStatus, errorThrown) { |
||||
|
// Log the error and any relevant information |
||||
|
|
||||
|
}); |
||||
return false; |
return false; |
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
|
|
||||
</body> |
</body> |
||||
|
</html> |
||||
|
|
||||
</html> |
|
||||