<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{/web/layout/homeLayout}">
<th:block layout:fragment="layout_css">
    <link rel="stylesheet" href="/css/web/app.css">
    <link rel="stylesheet" href="/css/web/grid.css?v1.1">
</th:block>
<th:block layout:fragment="layout_top_script">
    <script src="/js/web/common_option.js"></script>
    <script src="/js/web/jquery.twbsPagination.js" type="text/javascript"></script>
    <script>
        let menuClass     = "[[${param.menuClass}]]"==""?"":"[[${param.menuClass}]]";

        let selectUseYn   = "[[${selectUseYn}]]"==""?"N":"[[${selectUseYn}]]";
        let insertUseYn   = "[[${insertUseYn}]]"==""?"N":"[[${insertUseYn}]]";
        let updateUseYn   = "[[${updateUseYn}]]"==""?"N":"[[${updateUseYn}]]";
        let deleteUseYn   = "[[${deleteUseYn}]]"==""?"N":"[[${deleteUseYn}]]";
        let downloadUseYn = "[[${downloadUseYn}]]"==""?"N":"[[${downloadUseYn}]]";

        let muUserId = "[[${param.muUserId}]]";

        /* 검색 관련 변수 */
        let appUserSearchKeywordParam = "[[${param.appUserSearchKeywordParam}]]";
        let appUserSort               = "[[${param.appUserSort}]]";
        let appUserDir                = "[[${param.appUserDir}]]";
        let appUserStart              = "[[${param.appUserStart}]]"==""?0:"[[${param.appUserStart}]]";
        let appUserLimit              = "[[${param.appUserLimit}]]"==""?500:"[[${param.appUserLimit}]]";

        let appIntroType = "[[${param.appIntroType}]]"??"";
    </script>
</th:block>
<th:block layout:fragment="layout_content">
    <!-- 센터쪽 -->
    <div class="center_box">
        <p class="page_title">앱 회원</p>
        <p class="total" id="appUserTotalCount">-명</p>

        <div class="filter_box">
            <div class="form_box">
                <div class="select_box first dropdown">
                    <button class="label" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">회원내역 전체</button>
                    <input type="hidden" id="appIntroType"></input>
                    <ul class="select_option_list dropdown-menu">
                        <li class="option_list_item" value="All">회원내역 전체</li>
                        <li class="option_list_item" value="C">신규 가입회원</li>
                        <li class="option_list_item" value="U">기존 내원회원</li>
                    </ul>
                </div>

                <div class="search_list_box">
                    <div class="search_box">
                        <img src="/image/web/search_G.svg" alt="검색"/>
                        <input type="text" id="appUserSearchKeyword" placeholder="고객명, 연락처, 아이디">

                        <div class="search_list"></div><!-- 검색내역 나오는곳 -->
                    </div>
                    <button class="search_btn" id="btnSearchAppUser">조회</button>
                </div>
            </div>
        </div>

        <div id="appUserGrid" class="table_box ag-theme-balham"></div>

        <!-- 페이지게이션 -->
        <div class="page_box">
            <nav aria-label="Page navigation" class="navigation">
                <ul class="pagination" id="appUserPagination"></ul>
            </nav>
        </div>
    </div>
    <form id="appUserSelectListForm" method="POST" target="_blank"></form>
</th:block>
<th:block layout:fragment="layout_popup">
</th:block>
<th:block layout:fragment="layout_script">
    <script src="/js/web/ag-grid-community-29.3.5.min.js"></script>
    <script src="/js/web/appuser/appUserSelectList.js"></script>
</th:block>
</html>