ÿØÿà 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/agent_reserve/ |
Upload File : |
<? include "../include/top_proc.html"; //공통파일 인클루드 include "_common.php"; $class_AccountCustomer = new AccountCustomer(); $code_pg = base_codec("PRD","INST");//입금방법 구분 코드 $code_bank = base_codec("PRD","INBK");//은행계좌 코드 $code_acnt = base_codec("ACC","MOCU");//입출금 코드 //데이터셋 $data = $class_AccountCustomer->res_account_info($res_no); $data_ioac = base_codec("PRD","IOAC","","N");// 계정 $code_pg = base_codec("PRD","INST","","N");//입금방법 구분 코드 $code_bank = base_codec("PRD","INBK","","N");//은행계좌 코드 ?> <!-- 폼 --> <form name="frm_reserv_account" id="frm_reserv_account" method="post"> <input type="hidden" name="res_no" value="<?=$res_no?>"> <input type="hidden" name="SqlType" value="res_account_ins"> <input type="hidden" name="nextloadwx" value="ajax_account"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write2" id="good_res_account"> <colgroup> <col style=" width:100px" /> <col style=" width:100px" /> <col style=" width:110px" /> <col style=" width:110px" /> <col style=" width:110px" /> <col style="" /> <col style="" /> <col /> <col style=" width:80px" /> <col style=" width:40px" /> </colgroup> <tbody> <tr> <th>일자</th> <th>계정</th> <th>판매금액</th> <th>입금</th> <th>출금</th> <th>결제방법</th> <th>계좌번호</th> <th>비고</th> <th>담당자</th> <th>-</th> </tr> <? if(count($data['acc'])!=0){ for($i=0,$j=1 ; $i<count($data['acc']) ; $i++,$j++){ $r = $data['acc'][$i]; $mode_edit=""; if($i==0)$mode_edit="mode_edit"; ?> <tr> <td><?=$r['acc_dt2']?></td> <td><?=$r['ioac_nm']?></td> <td class="txt_r"><?=number_format($r['input_will_plus'])?></td> <td class="txt_r"><?=number_format($r['bank_plus'])?></td><!-- 입금 --> <td class="txt_r"><?=number_format($r['bank_minus'])?></td><!-- 출금 --> <td><?=$r['pgcase_cd_nm']?></td><!-- 결제방법 --> <td class="txt_l pl10" title="<?=$r['banking_info']?>"><?=$r['banking_info']?><?=$r['ins_nm']?></td><!-- 통장 --> <td><?=nl2br($r['remarks'])?></td><!-- 입금자 --> <td><?=$r['admin_nm']?></td><!-- 담당자 --> <td></td> </tr> <? } }else{ ?> <tr> <td colspan="10"> :: 해당 자료가 없습니다. :: </td> </tr> <?}?> <!-- 합계 --> <tr> <th colspan="2">합계</th> <td class="txt_r pr15"><?=number_format($data['tot']['tot_input_will'])?></td><!-- 판매금액 계--> <td class="txt_r pr15"><?=number_format($data['tot']['tot_bank_plus'])?></td><!-- 입금 계--> <td class="txt_r pr15"><?=number_format($data['tot']['tot_bank_minus'])?></td><!-- 출금 계--> <td colspan="5" class="txt_r pr15" style="text-align:center;"> 미입금액 : <strong class="c_red"><?=number_format($data['tot']['pre_money'])?></strong>원</td> </tr> <!-- /합계 --> <!-- 입출금정보 쓰기폼 --> <tr> <td><input type="text" name="acc_dt" class="cal_input" style="width:80px;" onclick="AjaxCal(this,event);" value="<?=date("Y-m-d")?>" readonly hname="일자" required></td><!-- 일자 --> <td><select name="ioac_cd" class="w02" style="width:80px;"> <option value=""></option> <?php if(is_array($data_ioac)){foreach($data_ioac as $v){?> <option value="<?=$v['code']?>"><?=$v['cd_nm']?></option> <?php }}?> </select></td><!-- 계정 --> <td><input type="text" name="input_will_plus" class="input_text" value="0" style="text-align: right; ime-mode: disabled;width:80px;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="8" ></td><!-- 판매금액 --> <td><input type="text" name="bank_plus" class="input_text" value="0" style="text-align: right; ime-mode: disabled;width:80px;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="8" ></td><!-- 금액(+) --> <td><input type="text" name="bank_minus" class="input_text" value="0" style="text-align: right; ime-mode: disabled;width:80px;" onkeydown="ChkNum(this,event);" onblur="this.value=comma(this.value)" maxlength="8" ></td><!-- 금액(-) --> <td style="width:205px;"><select name="pgcase_cd" class="w02" style="width:185px;"> <option value=""></option> <?php if(is_array($code_pg)){foreach($code_pg as $v){?> <option value="<?=$v['code']?>"><?=$v['cd_nm']?></option> <?php }}?> </select></td><!-- 결제방법 --> <td style="width:205px;"><select name="bank_cd" class="w02" style="width:185px;"> <option value=""></option> <?php if(is_array($code_bank)){foreach($code_bank as $v){?> <option value="<?=$v['code']?>"><?=$v['cd_nm']?><?=$v['cd_memo']?><?=$v['cd_memo2']?></option> <?php }}?> </select></td><!-- 계좌 --> <td colspan="3"><input type="text" name="remarks" size="30" class="input_text" value="" style="width:100px !important;"> </td><!-- 비고 --> </tr> <!-- /입출금정보 쓰기폼 --> </table> </form> <!-- /폼 --> <script type="text/javascript"> function chk_cust_account() { var f = document.frm_reserv_account; var result = to_validation(f) if( result == false ) return false; var tot=0; var input_will_plus = parseInt($("#frm_reserv_account input[name='input_will_plus']").val().replace(/,/,'')); var bank_plus = parseInt($("#frm_reserv_account input[name='bank_plus']").val().replace(/,/,'')); var bank_minus = parseInt($("#frm_reserv_account input[name='bank_minus']").val().replace(/,/,'')); tot = input_will_plus+bank_plus+bank_minus; if (tot==0) { alert('금액란이 비어있습니다.'); return; } if(!confirm('저장하시겠습니까?')) return; ajax_post('ajax_proc','../res_good/good_res_account_proc.html','frm_reserv_account'); } </script>