<?php
/*
 * @Overview 공장/작업장 등록
 * @History 2024-03-08 / 최승연 / 최초작성
 */
$cate_id = "BASE_PARTNER";
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 flexcol gap06">
            <div class="input-box">
              <input type="text" id="BP_CD_P" name="BP_CD_P" placeholder="거래처코드">
            </div>
          </div>
            <div class="input-container flexcol gap06">
              <div class="input-box">
                <input type="text" id="BP_NM_P" name="BP_NM_P" placeholder="거래처명">
              </div>
            </div>
          <!-- <div class="input-container flexcol gap06">
            <label for="sales-type">영업구분</label>
            <div class="input-box">
              <select name="sales-type" id="sales_type">
                <?php //getSelectOptions( $GLOBALS['_SALES_GRP'], $emptv="- ".cUtil\Mlang::getText("선택")." -" ) ?>
              </select>
            </div>
          </div> -->

          <div class="input-container flexcol gap06">
            <div class="input-box">
              <select name="use_flag" id="use_flag">
              <option value="">- 전체 -</option>
              <option value="Y" selected>- 사용 -</option>
              <option value="N">- 미사용 -</option>
              </select>
            </div>
          </div>

          <div class="input-container flexrow checkbox-container">
            <label for="pur_flag">매입처</label>
            <div class="input-box">
              <input type="checkbox" id="pur_flag" checked="checked">
            </div>
          </div>

          <div class="input-container flexrow checkbox-container">
            <label for="sal_flag">매출처</label>
            <div class="input-box">
              <input type="checkbox" id="sal_flag" checked="checked">
            </div>
          </div>

        </div>
        <!-- 검색 조건 종료 // -->

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

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



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

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

          <div class="table-box flex-1" id="main_table">
            <!-- 테이블 헤더 (제목, 추가, 삭제, 저장) -->
            <div class="table-title">
              <p class="title">
                거래처 리스트
                <span> ※더블클릭하면 수정창이 열립니다.</span>
              </p>

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

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

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

          </div>
          <!-- 테이블 박스 종료 // -->

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

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

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


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