| " + customer.getName() + " | " + customer.getEmail() + " | " + customer.getPhoneNumber() + " | Edit |
";
+ listResult.add(result);
+ result = "";
+ }
+ }
+ return listResult;
+ }
+}
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/application.properties b/17020996_nguyen_trong_ruong/my-system/src/main/resources/application.properties
index 3bf1cbf..2cccfed 100644
--- a/17020996_nguyen_trong_ruong/my-system/src/main/resources/application.properties
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/application.properties
@@ -1,2 +1,15 @@
+server.port=8080
+
spring.mvc.view.prefix=/WEB-INF/jsp/
-spring.mvc.view.suffix=.jsp
\ No newline at end of file
+spring.mvc.view.suffix=.jsp
+
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.url = jdbc:mysql://localhost:3306/bankdata
+spring.datasource.username=root
+spring.datasource.password=ruong0302
+
+spring.jpa.show-sql=true
+spring.jpa.properties.hibernate.format_sql=true
+spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
+spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext
+spring.jpa.hibernate.ddl-auto=update
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Add.css b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Add.css
new file mode 100644
index 0000000..620c850
--- /dev/null
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Add.css
@@ -0,0 +1,59 @@
+.submit:hover {
+ background-color: #104f66;
+ color: white;
+}
+
+.submit {
+ width: 120px;
+ text-align: center;
+ background-color: #15ace6;
+ border: none;
+ border-radius: 3px;
+ color: white;
+ cursor: pointer;
+ outline: none;
+ font-size: 20px;
+ margin: auto;
+}
+
+input {
+ width: 320px;
+ height: 38px;
+ border-radius: 3px;
+ border: none;
+ margin-bottom: 30px;
+ text-indent: 10px;
+}
+
+input[type=number]::-webkit-inner-spin-button,
+input[type=number]::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+}
+
+fieldset {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ background-color: #4CAF50;
+ color: white;
+ text-align: center;
+ width: 480px;
+ margin: auto;
+}
+
+legend {
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: tomato;
+ color: white;
+ font-size: 25px;
+}
+
+label {
+ width: 130px;
+ text-align: left;
+ font-size: 20px;
+ float: left;
+}
+body{
+ background-color: aliceblue;
+}
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/CustomerList.css b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/CustomerList.css
index a3625d8..d98fedd 100644
--- a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/CustomerList.css
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/CustomerList.css
@@ -21,9 +21,24 @@
background-color: #4CAF50;
color: white;
}
-#customerTable td:last-child{
+
+#customerTable .tdButton{
text-align: center;
}
+
+.search{
+ float: right;
+}
+
+#searchInput{
+ width: 300px;
+ height: 25px;
+ font-size: 20px;
+ text-indent: 10px;
+}
+
+#searchResult tr:hover {background-color: #ddd;}
+
.button {
background-color: #8a948a;
border: none;
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Edit.css b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Edit.css
new file mode 100644
index 0000000..bca2e01
--- /dev/null
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Edit.css
@@ -0,0 +1,55 @@
+.submit:hover {
+ background-color: #104f66;
+ color: white;
+}
+
+.submit {
+ width: 120px;
+ text-align: center;
+ background-color: #15ace6;
+ border: none;
+ border-radius: 3px;
+ color: white;
+ cursor: pointer;
+ outline: none;
+ font-size: 20px;
+ margin: auto;
+}
+
+input {
+ width: 320px;
+ height: 38px;
+ border-radius: 3px;
+ border: none;
+ margin-bottom: 30px;
+ text-indent: 10px;
+}
+
+
+fieldset {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ background-color: #4CAF50;
+ color: white;
+ text-align: center;
+ width: 480px;
+ margin: auto;
+}
+
+legend {
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: tomato;
+ color: white;
+ font-size: 25px;
+}
+
+label {
+ width: 130px;
+ text-align: left;
+ font-size: 20px;
+ float: left;
+}
+body{
+ background-color: aliceblue;
+}
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Error.css b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Error.css
new file mode 100644
index 0000000..527fa00
--- /dev/null
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Error.css
@@ -0,0 +1,9 @@
+p{
+ text-align: left;
+ color: red;
+ font-size: 40px;
+ font-weight: bold;
+}
+a{
+ color: blue;
+}
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Login.css b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Login.css
new file mode 100644
index 0000000..2af7cc0
--- /dev/null
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Login.css
@@ -0,0 +1,58 @@
+fieldset {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ background-color: #4CAF50;
+ color: white;
+ text-align: center;
+ width: 480px;
+ height: 480px;
+ margin: auto;
+}
+
+label {
+ width: 130px;
+ text-align: left;
+ font-size: 20px;
+ float: left;
+}
+
+input {
+ width: 320px;
+ height: 38px;
+ border-radius: 3px;
+ border: none;
+ /* text-align: left; */
+ margin-bottom: 30px;
+ text-indent: 10px;
+}
+
+.submit:hover {
+ background-color: #104f66;
+ color: white;
+}
+
+.submit {
+ width: 120px;
+ text-align: center;
+ background-color: #15ace6;
+ border: none;
+ padding: 10px 36px;
+ border-radius: 3px;
+ color: white;
+ cursor: pointer;
+ outline: none;
+ font-size: 20px;
+ margin: auto;
+}
+
+legend {
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: tomato;
+ color: white;
+ font-size: 25px;
+}
+
+body{
+ background-color: aliceblue;
+}
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Transfer.css b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Transfer.css
new file mode 100644
index 0000000..cbfd6e4
--- /dev/null
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/resources/static/css/Transfer.css
@@ -0,0 +1,60 @@
+.submit:hover {
+ background-color: #104f66;
+ color: white;
+}
+
+.submit {
+ width: 120px;
+ text-align: center;
+ background-color: #15ace6;
+ border: none;
+ border-radius: 3px;
+ color: white;
+ cursor: pointer;
+ outline: none;
+ font-size: 20px;
+ margin: auto;
+ text-align: center;
+}
+
+input {
+ width: 320px;
+ height: 38px;
+ border-radius: 3px;
+ border: none;
+ margin-bottom: 30px;
+ text-indent: 10px;
+}
+
+input[type=number]::-webkit-inner-spin-button,
+input[type=number]::-webkit-outer-spin-button {
+ -webkit-appearance: none;
+}
+
+fieldset {
+ padding-top: 12px;
+ padding-bottom: 12px;
+ background-color: #4CAF50;
+ color: white;
+ text-align: center;
+ width: 480px;
+ margin: auto;
+}
+
+legend {
+ padding-left: 10px;
+ padding-right: 10px;
+ background-color: tomato;
+ color: white;
+ font-size: 25px;
+}
+
+label {
+ width: 130px;
+ text-align: left;
+ font-size: 20px;
+ float: left;
+}
+body{
+ background-color: aliceblue;
+}
\ No newline at end of file
diff --git a/17020996_nguyen_trong_ruong/my-system/src/main/webapp/WEB-INF/jsp/Add.jsp b/17020996_nguyen_trong_ruong/my-system/src/main/webapp/WEB-INF/jsp/Add.jsp
index 9f15aaf..843833a 100644
--- a/17020996_nguyen_trong_ruong/my-system/src/main/webapp/WEB-INF/jsp/Add.jsp
+++ b/17020996_nguyen_trong_ruong/my-system/src/main/webapp/WEB-INF/jsp/Add.jsp
@@ -1,25 +1,58 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
-<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
+<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
+
-
-