<?php
$cate_id = "mnu_lang_manage"; //현재 메뉴 ID 필수!!!

include_once "{$_SERVER['DOCUMENT_ROOT']}/common.inc.php";
include_once _ADM_INC_PATH_ ."/auth_check.php";

include _ADM_INC_PATH_ ."/header.html";

$qryobj = new cUtil\Mlang();
$langrow = $qryobj->getLang();
?>

        <div id="cmd_bar" class="mb-2">
          <div class="h4"><i class="bi bi-files-alt"></i> 사용 언어선택</div>
          <div class="text-right">
          </div>
        </div>

        <form method="post" enctype="multipart/form-data" id="aform" class="fadmin" action="./message.ajax.php">
          <div class="fld-block">
            <label>사용 언어 </label>
            <div class="w-100">
              <?php foreach($langrow as $lang){?>
              <label style="text-align: left; min-width: 179px;">
                <input type="checkbox" name="LANGS[]" value="<?=$lang['Code_Uid']?>" <?=($lang['USE_FLG'] == 'Y')?"checked":""?>> <?=$lang['Code_Val']?>
              </label>
              <?php }?>
            </div>
          </div>
          <div class="text-center mt-4">
            <button type="submit" class="btn btn-primary px-5">등 록</button>
          </div>
          <?=hidden_input('mode', 'setLang')?>
        </form>
<?php

include _ADM_INC_PATH_ ."/footer.html";