# Conflicts:
#	src/main/webapp/css/style.css
master
강석 최 2022-03-11 16:56:20 +09:00
commit 74263cf57d
5 changed files with 560 additions and 451 deletions

View File

@ -110,7 +110,7 @@ public class CommonController {
*/
@RequestMapping(value="/userIdCheck")
@ResponseBody
public String checkId(@RequestParam("checkId")String checkId) throws Exception {
public String userIdCheck(@RequestParam("checkId")String checkId) throws Exception {
try {
int cnt = userService.selectUserIdCheck(checkId);
if(cnt > 0) {
@ -177,24 +177,19 @@ public class CommonController {
}
// 아이디 찾기 페이지 이동
@RequestMapping(value = "findId")
public String findIdView(){
return "anonymous/html/findId";
}
public String findIdView(){ return "anonymous/html/findId"; }
// 아이디 찾기 실행
@RequestMapping(value = "findId", method = RequestMethod.POST)
public String findIdAction(UserVO userVO, Model model) {
UserVO user = userService.findId(userVO);
@RequestMapping(value = "searchUserInfo")
@ResponseBody
public String searchUserInfo(UserVO userVO) {
userVO = userService.findId(userVO);
if (user == null) {
model.addAttribute("check", 1);
} else {
model.addAttribute("check", 2);
model.addAttribute("id", user.getUserid());
if (userVO == null ) {
return "userNull";
}
return "anonymous/html/findId";
return userVO.getUserid();
}
//pw찾기 페이지 이동

View File

@ -142,7 +142,10 @@
<!--아이디 비밀번호 찾기-->
<select id="findId" resultType="userVO">
select * from t_user where name=#{name} and phonenum=#{phonenum}
select userid
from t_user
where
name=#{name} and company=#{company} and email=#{email}
</select>
<select id="findPwd" resultType="userVO">

View File

@ -42,7 +42,6 @@
</tr>
</tbody>
</table>
<table class="detail_table">
<tbody>
<tr>
@ -140,6 +139,7 @@
</tbody>
</table>
</div>
<c:choose>
<c:when test="${useRequestVO.status eq '99'}">
<table class="detail_table" style="margin-right: 1em">

View File

@ -3,3 +3,83 @@
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<script type="text/javascript">
$(document).on('click', '#checkId', function (){
checkId();
})
function checkId(){
if(inputCheck()){
$.ajax({
url: "/searchUserInfo",
type: "GET",
data: {
name: $("#username").val(),
company: $("#company").val(),
email: $("#email").val()
},
success: function (result) {
checkIdAfter(result)
},
error: function (request, status, error) {
alert("가입정보가 일치 하지 않습니다.\n 관리자에게 문의해주세요.");
}
});
}
}
function inputCheck(){
if(!$("#username").val()){
alert("이름을 입력해주세요.")
return false;
}
if(!$("#company").val()){
alert("회사명을 입력해주세요.")
return false;
}
if(!$("#email").val()){
alert("이메일을 입력해주세요.")
return false;
}
return true;
}
function checkIdAfter(result) {
if(result==="userNull"){
alert("입력된 가입 정보가 없습니다.")
}else{
alert("해당 정보로 가입된 ID는 "+result+" 입니다.")
}
}
</script>
<div class="row justify-content-end">
<div class="col-12 row m-1">
<label for="username" class="col-4 text-end">이름</label>
<div class="col-8">
<input type="text" class="form-control" id="username">
</div>
</div>
<div class="col-12 row m-1">
<label for="username" class="col-4 text-end">회사명</label>
<div class="col-8">
<input type="text" class="form-control" id="company">
</div>
</div>
<div class="col-12 row m-1">
<label for="username" class="col-4 text-end">email</label>
<div class="col-8">
<input type="email" class="form-control" id="email">
</div>
</div>
<div class="col-8">
<button type="button" id="checkId" class="btn btn-primary m-3">가입정보 확인</button>
</div>
</div>

View File

@ -10,6 +10,10 @@ a {
color: #000;
}
.bg-white {
border-radius: 10px;
}
.text-page {
text-align: center;
padding-top: 10px;
@ -18,6 +22,7 @@ a {
.text-center {
text-align: center;
}
.point-cursor {
cursor: pointer;
}
@ -69,13 +74,16 @@ a {
color: #fff;
font-size: 17px;
}
.htmlBody {
background-color: rgb(247, 247, 247);
}
.section {
margin-top: 70px;
margin-left: 200px;
}
@media (max-width: 576px) {
.section {
margin-left: 0;
@ -84,17 +92,14 @@ a {
.loginWrap {
width: 400px;
height: 100%;
margin: 0 auto;
height: 100%;
position: absolute;
left: 50%;
transform: translate(-50%);
background-color: rgba(55, 55, 55, 1);
border: 1px solid #ccc;
border-top: none;
border-bottom: none;
box-shadow: 5px 5px 20px grey;
/*background-color: rgba(55, 55, 55, 1);*/
}
.login_title {
float: left;
font-size: 24px;
@ -102,6 +107,7 @@ a {
padding-left: 20px;
box-sizing: border-box;
}
.login_text {
margin: 2% 5%;
text-align: center;
@ -109,7 +115,10 @@ a {
.loginBox {
overflow: hidden;
padding: 75% 0;
background-color: rgba(55, 55, 55, 1);
margin-top: 60%;
padding: 30px;
border-radius: 20px;
}
.login_text input {
@ -180,7 +189,6 @@ a {
}
.fieldDataTable {
width: 100%;
box-sizing: border-box;
@ -222,6 +230,7 @@ a {
padding-top: 20px;
text-align: center;
}
.fieldDataPaging > li {
display: inline-block;
border: 1px solid #ccc;
@ -234,7 +243,6 @@ a {
}
.setting_wrap {
margin-top: 50px;
padding-bottom: 20px;
@ -308,6 +316,7 @@ a {
.field_table {
border: 1px solid #ccc;
}
.field_table {
width: 100%;
}
@ -327,6 +336,7 @@ a {
height: 27px;
line-height: 27px;
}
.field_table > tbody > tr > td > select {
width: 100%;
height: 30px;
@ -338,8 +348,6 @@ a {
}
.fieldBtn {
width: 140px;
padding: 5px 0px;
@ -369,7 +377,6 @@ a {
}
/*회원가입 */
.join_section {
margin-top: 90px;
@ -377,16 +384,19 @@ a {
min-height: 100px;
overflow: hidden;
}
.join_top {
padding: 0 0 10px;
line-height: 30px;
margin: 0 auto 15px;
}
.join_table {
border-collapse: collapse;
border-top: 2px solid #d9d9d9;
margin: 0 auto;
}
.join_bottom {
padding: 0 0 10px;
line-height: 30px;
@ -401,10 +411,12 @@ a {
color: #222;
}
.join_top > h2 > img {
vertical-align: middle;
padding-right: 10px;
}
.join_table > tbody > tr > th {
width: 20px;
height: 35px;
@ -430,6 +442,7 @@ a {
vertical-align: middle;
line-height: 35px;
}
.txtinput.half {
width: 26%;
}
@ -444,6 +457,7 @@ a {
font-size: 20px;
padding: 12px 60px;
}
.btn_join.big.on {
color: #FFF;
background: #042f6c;
@ -458,6 +472,7 @@ a {
line-height: 23px;
display: inline-block;
}
.join_bottom_p {
text-align: center;
}
@ -470,6 +485,7 @@ a {
padding: 12px 10px;
float: right;
}
.btn_write {
font-size: 15px;
padding: 6px 20px;
@ -479,6 +495,7 @@ a {
line-height: 23px;
display: inline-block;
}
.btn_write.on {
color: #FFF;
background: #042f6c;
@ -502,6 +519,7 @@ a {
list-style: none;
clear: both;
}
.fieldDataDiv {
float: left;
width: 50%;
@ -512,8 +530,6 @@ a {
}
/* 지도권한관리 */
.tabmenu-box ul li {
float: left;
@ -521,6 +537,7 @@ a {
width: 162.5px;
font-size: 105%;
}
.tabmenu-box ul li.on a {
border: 1px solid #337ab7;
color: #fff;
@ -536,26 +553,26 @@ a {
}
.search_div {
width: 100%;
overflow: hidden;
}
.search_menu {
width: 50%;
float: left;
}
.search_keyword {
width: 50%;
float: left;
text-align: right;
}
.search_ul {
padding: 0;
}
.search_ul > li {
display: inline;
}
@ -581,18 +598,22 @@ a {
width: 110px;
float: left;
}
.search_inputbox {
width: 330px;
margin-left: 5px;
float: left;
}
.td_center {
text-align: center;
}
.td_title {
text-align: left;
width: 50%;
}
.td_date {
text-align: center;
}
@ -600,12 +621,15 @@ a {
.td_name {
text-align: center;
}
.td_company {
text-align: center;
}
.td_status {
text-align: center;
}
.td_area {
text-align: center;
}
@ -653,10 +677,14 @@ a {
background-color: #f8f8f8;
padding: 10px 5px;
text-align: center;
}
.detail_table > tbody > tr > td {
border: 1px solid #ccc;
padding: 10px;
}
.title-td {
@ -670,6 +698,7 @@ a {
background-color: #fff !important;
text-align: center;
}
.input-area-select {
width: 155px;
display: inline;
@ -685,15 +714,18 @@ a {
line-height: 50px;
margin-left: 20px;
}
.auth-label {
width: 75px;
}
.mapWrap {
width: 48%;
float: left;
}
.map-title {
border-bottom: 1px solid #ccc;
background-color: #ccc;
@ -748,7 +780,6 @@ input[type=checkbox]:disabled:checked {
border: 1px solid rgba(0, 0, 0, 0.125);
border-radius: 0.25rem;
margin: 0.375rem 0.75rem;
}
.card-default {