<?php
/*
 * @Overview 작업자 등록
 * @History 2024-02-29 / 최승연 / 최초작성
 */

$cate_id = "BASE_EMPLOYEE"; //현재 메뉴 ID 필수!!!
include_once "{$_SERVER['DOCUMENT_ROOT']}/common.inc.php";
include_once _SVC_INC_PATH_ . "/header.php";
?>

<div class="container">
  <!-- 사이드바 불러오기 -->
  <?php include_once _SVC_INC_PATH_ . "/sidebar.php"; ?>
  <!-- 사이드바 불러오기 종료 // -->

    <!-- 검색 조회 및 저장 -->
    <div class="table-header worker-header">
      <div class="inner-container">

        <!-- 검색 조건 (인풋) -->
        <div class="search-container">

          <div class="input-container flexrow">
            <div class="input-box">
              <input type="text" id="DEPT_CD"  placeholder="부서코드">
              <span onclick="popDept({DEPT_CD:'DEPT_CD',DEPT_NM:'DEPT_NM'});"><?php include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>

            <div class="input-box">
              <input type="text" id="DEPT_NM"  placeholder="부서명">
            </div>
          </div>

          <div class="input-container flexrow">
            <div class="input-box">
              <label for="EMP_NO"></label>
              <input type="text" id="EMP_NO" placeholder="사번">
              <span onclick="popWorker({EMP_NO:'EMP_NO',EMP_NM:'EMP_NM'});"><?php include _SVC_INC_PATH_ . '/img/popupIcon.php' ?></span>
            </div>
            <div class="input-box">
              <label for="EMP_NM"></label>
              <input type="text" id="EMP_NM" placeholder="사원명">
            </div>
          </div>

          <div class="input-container flexcol gap06">
            <div class="input-box">
              <select name="RET_FLG" id="RET_FLG">
              <option value="">- 전체 -</option>
              <option value="N" selected>- 현직자 -</option>
              <option value="Y">- 퇴사자 -</option>
              </select>
            </div>
          </div>
          
        </div>
        <!-- 검색 조건 종료 // -->

        <!-- 조회 및 저장 버튼 -->
        <div class="button-container">
          <div class="button-box">
            <button class="point-btn" id="filter_btn">조회</button>
            <button class="point-btn" id="put_btn">저장</button>
          </div>
        </div>
        <!-- 조회 및 저장 버튼 종료 // -->

      </div>
    </div>
    <!-- 검색 조회 및 저장 종료 // -->



    <!-- 컨텐츠 컨테이너 -->
    <div class="contents-container">

      <!-- 테이블 컨테이너 -->
      <div class="table-container" id="item_container">
        <div class="inner-container">

        <div class="table-box" id="worker_table">
          <!-- 테이블 헤더 (제목, 추가, 삭제, 저장) -->
          <div class="table-title">
            <p class="title">작업자 관리</p>

            <!-- 버튼 -->
            <div class="button-box">
              <button class="add-btn reverse-btn" id="add_worker">
                <?php include _SVC_INC_PATH_ . '/img/add.php' ?>
                추가
              </button>
              <button class="remove-btn reverse-btn" id="remove_worker">
                <?php include _SVC_INC_PATH_ . '/img/delete.php' ?>
                삭제
              </button>
            </div>
            <!-- 버튼 종료 // -->

          </div>
          <!-- 테이블 헤더 종료 // -->

          <!-- 테이블 -->
          <div class="tb-height-full">
              <div class="hy-table" ></div>
          </div>
        </div>
          <!-- 테이블 종료 // -->

        </div>
      </div>
      <!-- 테이블 컨테이너 종료 // -->

    </div>
    <!-- 컨텐츠 컨테이너 종료 // -->

  </div>
  <!-- 메인 섹션 종료 // -->
</div>


<?php include_once _SVC_INC_PATH_ . "/footer_common.php"; ?>
<script src="./worker.js"></script>
<?php
include_once _SVC_INC_PATH_ . "/footer.php";
include_once _SVC_INC_PATH_ . "/menualBtn.php";