<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ 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" %>

<div class="loginWrap">
    <div class="loginBox">
        <form method="POST">
            <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
            <input type=hidden name=login_error value="${login_error}"/>
            <p class="login_title text-white">모바일센터 관리시스템</p>
            <p class="login_text">
               <label>이름<input type="text" class="form-control" name="username" id="username" value="" placeholder="이름"/></label>
            </p>
            <p class="login_text">
                <label>email<input type="tel" class="form-control" name="phonenum" id="phonenum" value="" placeholder="연락처"/></label>
            </p>

            <div>
                <input class="btn" type="submit" value="check">
            </div>
<%--            이름번호 일치x --%>
            <c:if test="${check == 1}">
                <script>
                    opener.document._findForm.name.value = "";
                    opener.document._findForm.phonenum.value = "";
                </script>
            </c:if>
            <label>일치하는 정보가 없습니다.</label>
            <c:if test="${check == 0}">
                <label>찾으시는 아이디는 ${userid}입니다</label>
            </c:if>
            <input class="btn" type="submit"><a href="../login.jsp">로그인</a>



        </form>
    </div>
</div>
