commit c5913ca49f06f911f2f48de7b0d75a9396b6b225 Author: bimalkalsa Date: Thu Dec 8 17:57:06 2022 +0530 initial commit diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..37c1aea --- /dev/null +++ b/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..b1814ae --- /dev/null +++ b/.project @@ -0,0 +1,31 @@ + + + Official + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 0000000..81672d4 --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..d4540a5 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,10 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=17 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..2db1077 --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..8c3b607 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/src/main/webapp/META-INF/MANIFEST.MF b/src/main/webapp/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/src/main/webapp/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/src/main/webapp/WEB-INF/appointment_detail.html b/src/main/webapp/WEB-INF/appointment_detail.html new file mode 100644 index 0000000..0588a1f --- /dev/null +++ b/src/main/webapp/WEB-INF/appointment_detail.html @@ -0,0 +1,16 @@ + + + + + + + + Welcome to Greater Chennai Corporation + + + + +

Property Tax Appointment

+ + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..493a4a6 --- /dev/null +++ b/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,12 @@ + + + Official + + index.html + index.jsp + index.htm + default.html + default.jsp + default.htm + + \ No newline at end of file diff --git a/src/main/webapp/appointment_list.html b/src/main/webapp/appointment_list.html new file mode 100644 index 0000000..d7e6190 --- /dev/null +++ b/src/main/webapp/appointment_list.html @@ -0,0 +1,216 @@ + + + + + + + Welcome to Greater Chennai Corporation + + + + + + + +
+

Reschedule Appointment

+

+

+

+

+
+ +
+
+
+

Property Tax Appointment details

+
+
PROPERTYID
+
ASSESSE NAME
+
CONTACT ADDRESS
+
CONTACT NO
+
DATE
+
TIME
+
STATUS UPDATE
+
+ + + + + + + + diff --git a/src/main/webapp/bg.jpg b/src/main/webapp/bg.jpg new file mode 100644 index 0000000..aac6d9d Binary files /dev/null and b/src/main/webapp/bg.jpg differ diff --git a/src/main/webapp/dashboard.html b/src/main/webapp/dashboard.html new file mode 100644 index 0000000..ffab474 --- /dev/null +++ b/src/main/webapp/dashboard.html @@ -0,0 +1,108 @@ + + + + + + + Welcome to Greater Chennai Corporation + + + + +

Appointment Status

+
+
+ + + + +
+
+
+ +
+
ZONE
+
DIVISION
+
TOTAL REQUESTS
+
COMPLETED
+
PENDING
+
+ + + + + diff --git a/src/main/webapp/getAbstractReport.html b/src/main/webapp/getAbstractReport.html new file mode 100644 index 0000000..564002d --- /dev/null +++ b/src/main/webapp/getAbstractReport.html @@ -0,0 +1,122 @@ + + + + + + + +Welcome to Greater Chennai Corporation + + + + +
+

Property Tax Appointment Report

+
+
+   +   +       + +
+
+
+
DIVISION
+
COMPLETED
+
PENDING
+ +
+ +
+ + +   + + \ No newline at end of file diff --git a/src/main/webapp/getAbstractReport.jsp b/src/main/webapp/getAbstractReport.jsp new file mode 100644 index 0000000..09bf430 --- /dev/null +++ b/src/main/webapp/getAbstractReport.jsp @@ -0,0 +1,46 @@ +<%@page import="java.sql.*"%> +<% + +try{ + + //out.println("if"); + String sql; + + String zone = request.getParameter("zone"); + + sql = "select * from APPOINTMENT_DTL where app_property_id like '"+zone+"-%'"; + //out.println(sql); + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.1.0.14:1521:chncorp","erp","erp"); + Statement stmt = conn.createStatement(); + ResultSet rs = stmt.executeQuery(sql); + + int appointments[]; + appointments = new int[100]; + + String salary[]; + %>[<% + while(rs.next()){ + String app_property_id = rs.getString("app_property_id"); + String a[] = app_property_id.split("-"); + // out.println(a[1]); + String key = a[0]+"tt"+a[1]; + //out.println(key); + %> + {"app_property_id" :"<%= app_property_id %>", "pending":"<%= rs.getString("pending") %>" }, + <% + + } + + + %>{"error":1}]<% + + + + + + response.setContentType("application/json"); +}catch(SQLException e){ + out.println(e); +} + +%> diff --git a/src/main/webapp/getAppointmentCount.jsp b/src/main/webapp/getAppointmentCount.jsp new file mode 100644 index 0000000..428b1ad --- /dev/null +++ b/src/main/webapp/getAppointmentCount.jsp @@ -0,0 +1,50 @@ +<%@page import="java.sql.*"%> +<% + +try{ + String action = request.getParameter("action"); + String from_date = request.getParameter("from_date"); + String to_date = request.getParameter("to_date"); + String action1 = "getCount"; + + //out.println("if"); + String sql; + + String zone = (String)session.getAttribute("zone"); + + sql = "select * from APPOINTMENT_DTL where app_date >= TO_DATE('"+from_date+"','YYYY-MM-DD') and app_date <= TO_DATE('"+to_date+"', 'YYYY-MM-DD') and app_property_id like '"+zone+"-%'"; + //out.println(sql); + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.1.0.14:1521:chncorp","erp","erp"); + Statement stmt = conn.createStatement(); + ResultSet rs = stmt.executeQuery(sql); + + int appointments[]; + appointments = new int[100]; + + String salary[]; + %>[<% + while(rs.next()){ + String app_property_id = rs.getString("app_property_id"); + String a[] = app_property_id.split("-"); + // out.println(a[1]); + String key = a[0]+"tt"+a[1]; + //out.println(key); + %> + {"app_property_id" :"<%= app_property_id %>", "pending":"<%= rs.getString("pending") %>" }, + <% + + } + + + %>{}]<% + + + + + + response.setContentType("application/json"); +}catch(SQLException e){ + out.println(e); +} + +%> diff --git a/src/main/webapp/getAppointmentDetails.jsp b/src/main/webapp/getAppointmentDetails.jsp new file mode 100644 index 0000000..5bee546 --- /dev/null +++ b/src/main/webapp/getAppointmentDetails.jsp @@ -0,0 +1,47 @@ +<%@page import="java.sql.*"%> +<% + +try{ + String action = request.getParameter("action"); + String division = request.getParameter("division"); + String action1 = "getCount"; + String from_date = request.getParameter("start_date"); + String to_date = request.getParameter("end_date"); + + //out.println("if"); + String sql; + + String zone = (String)session.getAttribute("zone"); + + sql = "select a.app_property_id,a.contact_addr,a.mobile_num,to_char(a.app_date, 'DD/MM/YYYY') as app_date,to_char(to_date(app_time, 'HH24:MI'),'HH:MI AM') as app_time,ta.ownersname from APPOINTMENT_DTL a join mv1@erp ta on a.APP_PROPERTY_ID=ta.UPICNO where app_property_id like '"+zone+"-"+division+"%' AND pending != 'N' and app_date >= TO_DATE('"+from_date+"','YYYY-MM-DD') and app_date <= TO_DATE('"+to_date+"', 'YYYY-MM-DD')"; + //out.println(sql); + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.1.0.14:1521:chncorp","erp","erp"); + Statement stmt = conn.createStatement(); + ResultSet rs = stmt.executeQuery(sql); + + int appointments[]; + appointments = new int[100]; + + String salary[]; + %>[<% + while(rs.next()){ %> + { + "property_id" : "<%= rs.getString("app_property_id") %>", + "contact_address": "<%= rs.getString("contact_addr") %>", + "contact_no": "<%= rs.getString("mobile_num") %>", + "date": "<%= rs.getString("app_date") %>", + "time": "<%= rs.getString("app_time") %>", + "owners_name": "<%= rs.getString("ownersname") %>" + }, + <% } + %>{ + "property_id" :0, + "contact_address": ""}]<% + + + response.setContentType("application/json"); +}catch(SQLException e){ + out.println(e); +} + +%> diff --git a/src/main/webapp/getAppointmentDetailsByZone.jsp b/src/main/webapp/getAppointmentDetailsByZone.jsp new file mode 100644 index 0000000..8c2901e --- /dev/null +++ b/src/main/webapp/getAppointmentDetailsByZone.jsp @@ -0,0 +1,43 @@ +<%@page import="java.sql.*"%> +<% + +try{ + String zone = request.getParameter("zone"); + + //out.println("if"); + String sql; + + + sql = "select a.app_property_id,a.contact_addr,a.mobile_num,to_date(a.app_date, 'DD/MM/YYYY') as app_date,a.pending,a.app_time,ta.ownersname from APPOINTMENT_DTL a join mv1@erp ta on a.APP_PROPERTY_ID=ta.UPICNO where app_property_id like '"+zone+"-%'"; + //out.println(sql); + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.1.0.14:1521:chncorp","erp","erp"); + Statement stmt = conn.createStatement(); + ResultSet rs = stmt.executeQuery(sql); + + int appointments[]; + appointments = new int[100]; + + String salary[]; + %>[<% + while(rs.next()){ %> + { + "property_id" : "<%= rs.getString("app_property_id") %>", + "contact_address": "<%= rs.getString("contact_addr") %>", + "contact_no": "<%= rs.getString("mobile_num") %>", + "date": "<%= rs.getString("app_date") %>", + "time": "<%= rs.getString("app_time") %>", + "owners_name": "<%= rs.getString("ownersname") %>", + "pending": "<%= rs.getString("pending") %>" + }, + <% } + %>{ + "property_id" :0, + "contact_address": ""}]<% + + + response.setContentType("application/json"); +}catch(SQLException e){ + out.println(e); +} + +%> diff --git a/src/main/webapp/getDetailReport.html b/src/main/webapp/getDetailReport.html new file mode 100644 index 0000000..6beac17 --- /dev/null +++ b/src/main/webapp/getDetailReport.html @@ -0,0 +1,97 @@ + + + + + + + +Welcome to Greater Chennai Corporation + + + + +
+

Property Tax Appointment Report

+
+
+   +   +       + +
+
+
+
PROPERTYID
+
ASSESSE NAME
+
CONTACT ADDRESS
+
CONTACT NO
+
DATE
+
TIME
+
STATUS UPDATE
+
+ + +
+ + +   + + \ No newline at end of file diff --git a/src/main/webapp/login.html b/src/main/webapp/login.html new file mode 100644 index 0000000..1be02cb --- /dev/null +++ b/src/main/webapp/login.html @@ -0,0 +1,73 @@ + + + + + + + Welcome to Greater Chennai Corporation + + + +
+
+
+
+

Property Tax Appointment

+
+
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/src/main/webapp/login.jsp b/src/main/webapp/login.jsp new file mode 100644 index 0000000..c135bfa --- /dev/null +++ b/src/main/webapp/login.jsp @@ -0,0 +1,39 @@ +<%@page import="java.sql.*"%> +<% +boolean status = false; +try{ + String username = request.getParameter("USER_ID"); + String password = request.getParameter("USER_PWD"); + + + String sql; + + sql = "select * from mis_user_mast where USER_ID='"+username+"' and USER_PWD = '"+password+"'"; + + + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","admin1","admin1"); + Statement stmt = conn.createStatement(); + ResultSet rs = stmt.executeQuery(sql); + //out.println(sql); + + status = rs.next(); + + if(status){ + //status = true; + //session.setAttribute("user_id", rs.getString("id")); + session.setAttribute("zone", rs.getString("zone")); + session.setAttribute("level",rs.getString("user_level")); + //out.println("level: "+session.getAttribute("user_level")); + } + + + +}catch(SQLException e){ + out.println(e); +} +%> +{"status": <%= status %>, "level": <%= session.getAttribute("level") %>} +<% +response.setContentType("application/json"); + +%> \ No newline at end of file diff --git a/src/main/webapp/report_list.html b/src/main/webapp/report_list.html new file mode 100644 index 0000000..10c1109 --- /dev/null +++ b/src/main/webapp/report_list.html @@ -0,0 +1,32 @@ + + + + + + + Welcome to Greater Chennai Corporation + + + +
+Abstract Report | Detail Report +
+ + \ No newline at end of file diff --git a/src/main/webapp/rescheduledAppointment.jsp b/src/main/webapp/rescheduledAppointment.jsp new file mode 100644 index 0000000..0cd0fe9 --- /dev/null +++ b/src/main/webapp/rescheduledAppointment.jsp @@ -0,0 +1,17 @@ +<%@page import="java.sql.*"%> +<% +try{ + String property_id = request.getParameter("property_id"); + String date = request.getParameter("date"); + String time = request.getParameter("time"); + //out.println("if"); + String sql; + sql = "update APPOINTMENT_DTL set app_date = To_date('"+date+"', 'YYYY-MM-DD'), app_time='"+time+"' where app_property_id = '"+property_id+"'"; +// out.println(sql); + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.1.0.14:1521:chncorp","erp","erp"); + Statement stmt = conn.createStatement(); + stmt.execute(sql); +}catch(SQLException e){ + out.println(e); +} +%> diff --git a/src/main/webapp/style.css b/src/main/webapp/style.css new file mode 100644 index 0000000..3e48ee5 --- /dev/null +++ b/src/main/webapp/style.css @@ -0,0 +1,231 @@ +:root { + --color-white: #ffffff; + --color-light: #f1f5f9; + --color-black: #121212; + --color-night: #001632; + --color-red: #f44336; + --color-blue: #1a73e8; + --color-gray: #80868b; + --color-grayish: #dadce0; + --shadow-normal: 0 1px 3px 0 rgba(0, 0, 0, 0.1), + 0 1px 2px 0 rgba(0, 0, 0, 0.06); + --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), + 0 2px 4px -1px rgba(0, 0, 0, 0.06); + --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), + 0 4px 6px -2px rgba(0, 0, 0, 0.05); +} + +html { + font-size: 100%; + font-size-adjust: 100%; + box-sizing: border-box; + scroll-behavior: smooth; +} + +*, +*::before, +*::after { + padding: 0; + margin: 0; + box-sizing: inherit; + list-style: none; + list-style-type: none; + text-decoration: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; +} + +body { + font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; + font-size: 1rem; + font-weight: normal; + line-height: 1.5; + color: var(--color-black); + background: var(--color-light); +} + +a, +button { + font-family: inherit; + font-size: inherit; + line-height: inherit; + cursor: pointer; + border: none; + outline: none; + background: none; + text-decoration: none; +} + +img { + display: block; + width: 100%; + height: auto; + -o-object-fit: cover; + object-fit: cover; +} + +.container { + display: flex; + justify-content: center; + align-items: center; + max-width: 100rem; + min-height: 100vh; + width: 100%; + padding: 0 2rem; + margin: 0 auto; +} + +.ion-logo-apple { + font-size: 1.65rem; + line-height: inherit; + margin-right: 0.5rem; + color: var(--color-black); +} +.ion-logo-google { + font-size: 1.65rem; + line-height: inherit; + margin-right: 0.5rem; + color: var(--color-red); +} +.ion-logo-facebook { + font-size: 1.65rem; + line-height: inherit; + margin-right: 0.5rem; + color: var(--color-blue); +} + +.text { + font-family: inherit; + line-height: inherit; + text-transform: unset; + text-transform: uppercase; + text-align: center; + font-size: 23px; + text-rendering: optimizeLegibility; +} +.text-large { + font-size: 2rem; + font-weight: 600; + color: var(--color-black); +} +.text-normal { + font-size: 1rem; + font-weight: 400; + color: var(--color-black); +} +.text-links { + font-size: 1rem; + font-weight: 400; + color: var(--color-blue); +} +.text-links:hover { + text-decoration: underline; +} + +.main .wrapper { + max-width: 28rem; + width: 100%; + margin: 2rem auto; + padding: 2rem 2.5rem; + border: none; + outline: none; + border-radius: 0.25rem; + color: var(--color-black); + background: var(--color-white); + box-shadow: var(--shadow-large); +} +.main .wrapper .form { + width: 100%; + height: auto; + margin-top: 2rem; +} +.main .wrapper .form .input-control { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 1.25rem; +} +.main .wrapper .form .input-field { + font-family: inherit; + font-size: 1rem; + font-weight: 400; + line-height: inherit; + width: 100%; + height: auto; + padding: 0.75rem 1.25rem; + border: none; + outline: none; + border-radius: 2rem; + color: var(--color-black); + background: var(--color-light); + text-transform: unset; + text-rendering: optimizeLegibility; +} +.main .wrapper .form .input-submit { + font-family: inherit; + font-size: 1rem; + font-weight: 500; + line-height: inherit; + cursor: pointer; + min-width: 40%; + height: auto; + padding: 0.65rem 1.25rem; + border: none; + outline: none; + border-radius: 2rem; + color: var(--color-white); + background: var(--color-blue); + box-shadow: var(--shadow-medium); + text-transform: capitalize; + text-rendering: optimizeLegibility; +} +.main .wrapper .striped { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + margin: 1rem 0; +} +.main .wrapper .striped-line { + flex: auto; + flex-basis: auto; + border: none; + outline: none; + height: 2px; + background: var(--color-grayish); +} +.main .wrapper .striped-text { + font-family: inherit; + font-size: 1rem; + font-weight: 500; + line-height: inherit; + color: var(--color-black); + margin: 0 1rem; +} +.main .wrapper .method-control { + margin-bottom: 1rem; +} +.main .wrapper .method-action { + font-family: inherit; + font-size: 0.95rem; + font-weight: 500; + line-height: inherit; + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: auto; + padding: 0.35rem 1.25rem; + outline: none; + border: 2px solid var(--color-grayish); + border-radius: 2rem; + color: var(--color-black); + background: var(--color-white); + text-transform: capitalize; + text-rendering: optimizeLegibility; + transition: all 0.35s ease; +} +.main .wrapper .method-action:hover { + background: var(--color-light); +} \ No newline at end of file diff --git a/src/main/webapp/styles.css b/src/main/webapp/styles.css new file mode 100644 index 0000000..11036ab --- /dev/null +++ b/src/main/webapp/styles.css @@ -0,0 +1,218 @@ +.heading1 { + font-size: 24px; + line-height: 32px; + font-weight: 800; + text-align: center; + text-transform: uppercase; + margin: 30px 0; +} + +.container11 { + font-size: 18px; + line-height: 32px; + font-weight: 800; + text-align: center; + text-transform: uppercase; + margin: 20px 0; + display:grid; + grid-template-columns: 1fr 1fr 1fr 1fr 1fr ; + grid-template-areas: + "h h h" + +} +.container11 div { + display:grid; + justify-content:center; + align-items:center; + border:2px solid black; + background-color:rgb(0,150,255); + font-family:sans-serif; +} +.container12 { + font-size: 20px; + line-height: 32px; + font-weight: 700; + text-align: center; + align-items: center; + text-transform: uppercase; + margin: 20px 0; + display:grid; + grid-template-columns: 100px 250px 400px 150px 150px 100px 200px; + grid-template-areas: + "h h h h h h h h h h" + +} + + +.container13 { + font-size: 18px; + line-height: 32px; + font-weight: 700; + text-align: center; + margin: 20px 0; + display:grid; + grid-template-columns: 250px 250px 400px 150px 150px 100px 200px; + grid-template-areas: + "h h h h h h h h h h" + +} + +.container14 { + font-size: 20px; + line-height: 32px; + font-weight: 700; + text-align: center; + align-items: center; + text-transform: uppercase; + margin: 20px 0; + display:grid; + grid-template-columns: 250px 250px 400px 150px 150px 100px 200px; + grid-template-areas: + "h h h h h h h h h h" + +} + +.container12 div { + display:grid; + justify-content:center; + align-items:center; + border:2px solid black; + background-color:rgb(0,150,255); + font-family:sans-serif; +} + +.container13 div { + display:grid; + justify-content:center; + align-items:center; + border:2px solid black; + background-color:rgb(0,150,255); + font-family:sans-serif; +} + +.container14 div { + display:grid; + justify-content:center; + align-items:center; + border:2px solid black; + background-color:rgb(0,150,255); + font-family:sans-serif; +} + + +* { + margin: 0; + padding: 0; + font-family: sans-serif; +} + +.form { + width: 60%; + margin: 0 auto; + max-width: 42 rem; +} + +.heading { + font-size: 20px; + line-height: 32px; + font-weight: 800; + text-align: center; + text-transform: uppercase; + margin: 20px 0; +} + +.heading2 { + text-align: left !important; +} +.label { + + text-transform: uppercase; + letter-spacing: 0.025em; + --tw-text-opacity: 1; + color: rgb(55 65 81 / var(--tw-text-opacity)); + font-size: 18px; + line-height: 16px; + font-weight: 800; + margin-bottom: 8px; +} + +.blockinput { + width: 10; + padding: 12px 20px; + margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 10px; + box-sizing: border-box; +} + +.inputcontainer2 { + align-items: center; + width: 100%; + padding-left: 12px; + padding-right: 12px; + margin-bottom: 12px; + font-weight:bold; +} + +.input { + width: 50%; + padding: 12px 20px; + margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} + +.button { + --tw-bg-opacity: 1; + background-color: rgb(59 130 246 / var(--tw-bg-opacity)); + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + font-weight: 700; + padding: 8px 16px; + border: 1px; + border-radius: 4px; + margin-left: 8px; +} + +.button:hover { + --tw-bg-opacity: 1; + background-color: rgb(29 78 216 / var(--tw-bg-opacity)); +} + + +.buttonbox { + justify-content: space-between; + padding-top: 32px; + padding-bottom: 32px; + width: 33.333333%; + margin: auto; +} + +.modal-backdrop fade hide { + opacity: .5; + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 1040; + display: none; + background-color: #000; +} +.dialog { + position: fixed; + top: 50%; + left: 0px; + right: 0px; + width: 35%; + margin: auto; + border-radius: 0px; + opacity: 1; + z-index: 999999; +} + + + diff --git a/src/main/webapp/updateStatus.jsp b/src/main/webapp/updateStatus.jsp new file mode 100644 index 0000000..a5f4d90 --- /dev/null +++ b/src/main/webapp/updateStatus.jsp @@ -0,0 +1,21 @@ +<%@page import="java.sql.*"%> +<% + +try{ + String property_id = request.getParameter("property_id"); + + + //out.println("if"); + String sql; + + + sql = "update APPOINTMENT_DTL set pending = 'N' where app_property_id = '"+property_id+"'"; + out.println(sql); + Connection conn=DriverManager.getConnection("jdbc:oracle:thin:@10.1.0.14:1521:chncorp","erp","erp"); + Statement stmt = conn.createStatement(); + stmt.execute(sql); +}catch(SQLException e){ + out.println(e); +} + +%>