ÿØÿà JFIF ` ` ÿþ
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/toadmin/hotel_room/ |
Upload File : |
<? include "../include/top_hotel.html"; include "_common.php"; // 테이블명 $table = " TB_HOTEL "; // 호텔회원과 해당호텔을 Match해줌 $data_hotel = hotel_fetch(" and seller_id='$TO_MB[mb_id]' "); // 검색 설정 $sql_where = " "; if($city_cd_s) $sql_where .= " and city_cd = '{$city_cd_s}' ";//도시 if($area_cd_s) $sql_where .= " and area_cd = '{$area_cd_s}' ";//지역 if($hotel_nm_s) $sql_where .= " and hotel_nm like '%{$hotel_nm_s}%' ";//관광지명 $hseq_str = ""; for( $i=0,$j=count($data_hotel)-1 ; $i<count($data_hotel) ; $i++){ $hseq_str .= " '".$data_hotel[$i]['hseq']."' "; if( $i < $j){ $hseq_str .= ","; } } if( count($data_hotel) > 0 ) $sql_where .= " and hseq in (".$hseq_str.") "; // 리스트 수 가져옴 $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=""; //배열에 저장 $data = array(); $data = hotel_fetch($sql_where,$sql_order,$olds,$line); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">호텔현황</div> <div class="contents_detail"> <div class="hotel_wrap"> <!-- 폼 --> <form name="frm_list" id="frm_list" method="post" style="margin:0px;padding:0px;"> <input type="hidden" name="SqlType" value="" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list" summary="등록된 호텔 수정 및 관리를 할수 있습니다."> <caption>호텔 수정 및 관리</caption> <colgroup> <col style=" width:45px" /> <col style=" width:95px" /> <col /> <col style=" width:110px" /> <!-- <col style=" width:80px" /> <col style=" width:80px" /> <col style=" width:80px" /> --> <col style=" width:80px" /> <col style=" width:80px" /> <col style=" width:60px" /> </colgroup> <thead> <tr> <td colspan="11" class="t_top_line"></td> </tr> <tr> <th scope="col">No.</th> <th scope="col">이미지</th> <th scope="col">호텔명/호텔코드</th> <th scope="col">지역</th> <!-- <th scope="col">지도좌표</th> <th scope="col">갤러리</th> <th scope="col">주변관광지</th> --> <th scope="col">객실/요금</th> <th scope="col">등록일</th> <th scope="col">조회</th> </tr> </thead> <tbody> <? for($i=0 ; $i < count($data) ; $i++){ $row = $data[$i]; $num = $total - ($page - 1) * $line - $i; ?> <tr> <td><?=$num?></td> <td><img src="<?=$row['img1_path']?>" alt="지역이미지" width="88" height="57" style="cursor:pointer;" onClick="to_dialog.image('<?=$row['img1_path']?>','<?=$row['hotel_nm']?>')" /></td><!-- 이미지 --> <td class="t_hotel_name"><?=$row['hotel_nm']?><!-- 호텔명 --> <p class="hotel_code"><?=$row['hotel_code']?></p></td> <td><?=$row['city_area']?></td> <td><a href="roomtype_list.html?<?=$_href?>&hseq=<?=$row['hseq']?>"><img src="../image/btn/btn_room.gif" alt="객실/요금 가기" /></a></td> <td><?=$row['ins_dt2']?></td> <td><?=$row['read_cnt']?></td> </tr> <?}?> </tbody> </table> </form> <!-- /폼 --> </div> <?=adm_get_paging($total_page, $page, $list, "?$href&page=", "")?> </div> </div> </div> <script type="text/javascript"> //순서조정 $("#change_ordernum").click(function(){ alert('수정'); var f = document.frm_list; f.SqlType.value='change_ordernum'; ajax_post('ajax_proc','hotel_proc.php','frm_list'); }) </script> <? include "../include/footer.html" ?>