ÿØÿà 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/cal_hotel/ |
Upload File : |
<? include "../include/top.html"; include "_common.html"; if(!$hotel_s) $hotel_s="hotel_nm"; if(!$sort_obj_s) $sort_obj_s="hotel_nm"; if(!$sort_s) $sort_s="asc"; //테이블명 $table = " TB_ACCOUNT_HOTEL "; //정산테이블 자동정산숙박비 계정생성 account_hotel_check($res_no,$hseq); //기초코드 $code_mony = base_codec("ACC","MONY");//입출금 $code_bank = base_codec("PRD","INBK");//통장 //데이터셋 $data = account_hotel($res_no,$hseq,""); ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="title">호텔정산</div> <div class="contents_detail"> <ul class="register_tab"> <li class="on"><a href="../calculate/hotel_calculate_list.html">예약별 정산</a></li> <li><a href="../calculate/agent_calculate_list.html">대리점별 정산현황</a></li> </ul> <div class="calculate_wrap"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_c_list2" summary="호텔별 정산현황을 확인하실 수 있습니다."> <caption>호텔별 입출금내역 기장</caption> <colgroup> <col style=" width:105px" /> <col /> <col style=" width:90px" /> <col style=" width:90px" /> <col style=" width:90px" /> <col style=" width:90px" /> <col style=" width:200px" /> <col style=" width:50px" /> <col style=" width:50px" /> </colgroup> <thead> <tr> <td colspan="9" class="t_top_line"></td> </tr> <tr> <td colspan="9" class="top_txt"> <span class="title_lo"><?=$data['item'][0]['hotel_nm']?> 객실매입대금 입력</span> <!-- <p class="lo_right pr5"><input type="image" src="../image/btn/btn_print.gif" align="top" alt="인쇄하기" onclick="window.location='hotel_voucher.html'" /></p> --> </td> </tr> <tr> <th scope="col">날짜</th> <th>내용</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['item']) ; $i++){ $row = $data['item'][$i]; $mode_edit=""; ?> <tr> <td><?=$row['acc_dt']?></td> <td class="t_contents"><?=$row['acnt_cd_nm']?></td> <td class="txt_price"><?=number_format($row['price_cost_plus'])?></td> <td class="txt_price"><?=number_format($row['price_cost_minus'])?></td> <td class="txt_price"><?=number_format($row['bank_plus'])?></td> <td class="txt_price"><?=number_format($row['bank_minus'])?></td> <td><?=$row['bank_str']?></td> <td><?if($i!=0){?><input type="image" src="../image/btn/btn_modify2.gif" align="top" alt="수정" onclick="to_dialog.ajax('hotel_calculate_ajax.html?res_no=<?=$res_no?>&hseq=<?=$hseq?>&acidx=<?=$row['acidx']?>&mode_edit=<?=$mode_edit?>','<?=$row['acnt_cd_nm']?> 수정','550','350',true,true);"/><?}?></td> <td><?if($i!=0){?><input type="image" src="../image/btn/btn_delete3.gif" align="top" alt="삭제" onclick="account_hotel_delete('<?=$row['acidx']?>');" style="cursor:pointer;" /><?}?></td> </tr> <? } ?> <tr> <td colspan="2" class="total c_red">합 계</td> <td colspan="2" class="total_detail">총계약금 : <?=number_format($data['total']['price_cost'])?></td> <td colspan="2" class="total_detail">총지출금 : <?=number_format($data['total']['pay_money'])?></td> <td colspan="3" class="total_detail">미지급액 : <?=number_format($data['total']['pre_money'])?></td> </tr> </tbody> </table> <!-- 폼 --> <form name="frm_account_hotel_ins" id="frm_account_hotel_ins" method="post"> <input type="hidden" name="SqlType" value="account_hotel_ins"> <input type="hidden" name="res_no" value="<?=$res_no?>"> <input type="hidden" name="hseq" value="<?=$hseq?>"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_c_register mt20" summary="호텔 입출금내역을 기장하실 수 있습니다."> <caption>호텔 입출금내역 기장</caption> <colgroup> <col style=" width:105px" /> <col /> <col style=" width:90px" /> <col style=" width:90px" /> <col style=" width:90px" /> <col style=" width:90px" /> <col style=" width:200px" /> <col style=" width:100px" /> </colgroup> <thead> <tr> <td colspan="8" class="t_top_line"></td> </tr> <tr> <td colspan="8" class="top_txt">입출금내역 기장</td> </tr> <tr> <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> <tr> <td><div class="calendar_wrap"> <label for="input" class="v_none2">입출금날짜</label> <input name="acc_dt" id="acc_dt" type="text" class="calendar_input" size="12" onclick="AjaxCal(this,event);" onkeyup="OnDateStyle(this)" value="<?=date("Y-m-d")?>" readonly /></td> <td> <select name="acnt_cd" id="acnt_cd" style="width:200px" hname="입출금내용" required> <option value="">======선택======</option> <? for($i=0 ; $i<count($code_mony) ; $i++){ $row = $code_mony[$i]; if($i!=0){ ?> <option value="<?=$row['code']?>"><?=$row['cd_nm']?></option> <?} } ?> </select> </td> <td><label for="price_cost_plus" class="v_none2">계약금액(+)</label><input name="price_cost_plus" id="price_cost_plus" type="text" size="12" class="input_text" style="text-align: right; ime-mode: disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxLength="10" /></td> <td><label for="price_cost_minus" class="v_none2">계약금액(-)</label><input name="price_cost_minus" id="price_cost_minus" type="text" size="12" class="input_text" style="text-align: right; ime-mode: disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxLength="10" /></td> <td><label for="bank_plus" class="v_none2">통장입금</label><input name="bank_plus" id="bank_plus" type="text" size="12" class="input_text" style="text-align: right; ime-mode: disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxLength="10" /></td> <td><label for="bank_minus" class="v_none2">통장출금</label><input name="bank_minus" id="bank_minus" type="text" size="12" class="input_text" style="text-align: right; ime-mode: disabled;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxLength="10" /></td> <td> <select name="bank_cd" id="bank_cd" class="w01" style="width:180px;"> <option value="">=====선택=====</option> <? for($i=0 ; $i<count($code_bank) ; $i++){ $row = $code_bank[$i]; ?> <option value="<?=$row['code']?>"><?=$row['cd_nm']?>[<?=$row['cd_memo']?>/<?=$row['cd_memo2']?>]</option> <?}?> </select></td> <td><img src="../image/btn/btn_write.gif" align="top" alt="기장하기" style="cursor:pointer;" onClick="account_hotel_ins();" /></td> </tr> </tbody> </table> </form> <!-- /폼 --> <ul class="btn_button"> <li class="btn_gray"><a href="hotel_calculate_list.html?<?=$_href?>">목록보기</a></li> </ul> </div> </div> </div> </div> <? include "../include/footer.html" ?> <script type="text/javascript"> function account_hotel_ins() { var f=document.frm_account_hotel_ins; var result=to_validation(f); if(result==false) return false; if(!confirm('저장하시겠습니까?')) return false; ajax_post("ajax_proc","account_proc.php","frm_account_hotel_ins"); } function account_hotel_delete(acidx) { if(!confirm('정말 삭제하시겠습니까?')) return false; ajax_loader("account_proc.php?SqlType=account_hotel_delete&acidx="+acidx); } </script>