ÿØÿà 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/good/ |
Upload File : |
<? include "../include/top_proc.html"; include "_common.php"; if (!$g_uid) exit; // 호텔 선택 정보 $selhotel_arr = TO_get_hotel($g_uid); //print_r2($selhotel_arr); ?> <!-- 폼 --> <form name="selhotel_frm" id="selhotel_frm" method="post"> <input type="hidden" name="SqlType" value=""> <input type="hidden" name="g_uid" value="<?=$g_uid?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_list"> <colgroup> <col style=" width:35px" /> <col style=" width:60px" /> <col style=" width:170px" /> <col /> </colgroup> <tr> <th><input type="checkbox" onclick="checkbox_sel_all(this);"></th> <th><a href="javascript:;" onclick="selhotel_orderchange();">순서</a></th> <th>지역</th> <th>호텔명</th> </tr> <? for($i=0 ; $i<count($selhotel_arr) ; $i++){ $arr = $selhotel_arr[$i]; ?> <tr> <td><input type="checkbox" name="chkSel[]" id="chkSel_<?=$arr['Sidx']?>" value="<?=$arr['Sidx']?>"></td> <td><input type="text" class="input_text" name="OrderNum_arr[]" value="<?=$arr['OrderNum']?>" size="3" maxlength="3" style="width:30px; text-align:center;"><input type="hidden" name="Sidx_arr[]" value="<?=$arr['Sidx']?>"></td> <td><?=$arr['areab_cd_nm']?>><?=$arr['areac_cd_nm']?></td> <td class="txt_l pl10"><?=$arr['hotel_nm']?><img src="<?=$arr['HG_Img_Src']?>" class="pl10" /></td> </tr> <? } ?> </table> </form> <!-- /폼 --> <div class="btn_wrap_C mt30"> <a class="Bbtn red" href="javascript:;" onClick="selhotel_delete();">삭제</a> </div> <script type="text/javascript"> function checkbox_sel_all(o) { var ck=o.checked; $("input[name='chkSel[]'").each(function(){ this.checked = ck; }); } function selhotel_delete() { var ck = false; $("input[name='chkSel[]'").each(function(){ if( $(this).is(":checked")==true ) ck = true; }); if(ck==false) { alert('적어도 한개 항목을 선택하세요.'); return; } if(!confirm('정말 삭제하시겠습니까?')) return; $("#selhotel_frm").find("input[name='SqlType']").val('selhotel_delete'); ajax_post("ajax_proc","good_hotel_proc.php","selhotel_frm"); } function selhotel_orderchange() { if(!confirm('순서변경 하시겠습니까?')) return; $("#selhotel_frm").find("input[name='SqlType']").val('selhotel_order'); ajax_post("ajax_proc","good_hotel_proc.php","selhotel_frm"); } </script>