ÿØÿà 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/admin/account_inout/ |
Upload File : |
<? include "../include/top_iframe.html"; include "_common.php"; if (!$no) { error_msg("필수값이 없습니다."); } $sql = "SELECT * FROM TB_ACCOUNT_INOUT_BREAKDOWN WHERE no = '{$no}' and flag_approval = 1 and inout_amount - process_amount > 0"; $row = db_fetch($sql); //미처리금액 $unattended_amount = (int)$row['inout_amount'] - (int)$row['process_amount']; ?> <div class="contents_wrap"> <div class="contents_wrap_in"> <div class="top_bar"> <h4>입금 수기 처리</h4> </div> <form name="frm_edit" id="frm_edit" method="post"> <input type="hidden" name="SqlType" value="ma_link_note"> <input type="hidden" name="no" value="<?=$row['no']?>"> <input type="hidden" name="tmp_layer_id" value="<?=$tmp_layer_id?>"><!-- 레이어ID --> <input type="hidden" name="admin_id" value="<?=$TK_MEMBER['mb_id']?>" /> <input type="hidden" name="admin_nm" value="<?=$TK_MEMBER['mb_nm']?>" /> <input type="hidden" name="account_number" value="<?=$row['account_number']?>" /> <input type="hidden" name="search_key_s" value="<?=$search_key_s?>" /> <input type="hidden" name="search_word_s" value="<?=$search_word_s?>" /> <input type="hidden" name="mode_period_s" value="<?=$mode_period_s?>" /> <input type="hidden" name="account_number_s" value="<?=$account_number_s?>" /> <input type="hidden" name="flag_process_s" value="<?=$flag_process_s?>" /> <input type="hidden" name="date_s1" value="<?=$date_s1?>" /> <input type="hidden" name="date_s2" value="<?=$date_s2?>" /> <input type="hidden" name="unattended_amount" value="<?=$unattended_amount?>" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="setting_write"> <tbody> <tr> <th width="100">입금일자</th> <td class="top_line"><?=date("Y-m-d", strtotime($row['basic_date']))?></td> </tr> <? if ($row['flag_division'] == "1") { ?> <tr> <th>계좌</th> <td><?=($row['bank_name'] . " - " . $row['account_number'] . " - " . $row['account_name'])?></td> </tr> <? } else { ?> <tr> <th>계좌</th> <td><?=$row['account_number']?></td> </tr> <? } ?> <tr> <th>입금자명</th> <td><?=$row['inout_provider']?></td> </tr> <tr> <th>입금액</th> <td><?=number_format($row['inout_amount'])?></td> </tr> <tr> <th>미처리금액</th> <td><?=number_format($unattended_amount)?></td> </tr> <tr> <th width="100">처리일자</th> <td class="top_line"><input type="text" name="process_date" class="cal_input" value='<?=date("Y-m-d")?>' onclick="AjaxCal(this,event);" readonly></td> </tr> <tr> <th>고객명</th> <td><input type="text" name="customer_name" value="<?=$row['inout_provider']?>" maxlength="10"></td> </tr> <tr> <th>처리금액</th> <td><input type="text" name="amount" value="<?=number_format($unattended_amount)?>" class="txt_r" maxlength="10" onblur="this.value=comma(this.value)" onkeydown="ChkNum(this,event);"></td> </tr> <tr> <th>비고</th> <td><input type="text" name="memo" class="w80p" style="width:450px;"></td> </tr> </tbody> </table> <div class="btn_wrap_C mt30 mb30"><a href="javascript:;" class="Tbtn red" onclick="ma_link_note()">저장</a></div> </form> </div> </div> <script type="text/javascript"> function ma_link_note() { // 폼체크 if (to_validation(document.frm_edit) == false) { return false; } if (parseInt(document.frm_edit.amount.value.replace(",", "")) <= 0) { alert("0 이상의 처리금액을 입력하시기 바랍니다."); document.frm_edit.amount.value = document.frm_edit.unattended_amount.value; return false; } if (parseInt(document.frm_edit.amount.value.replace(",", "")) > parseInt(document.frm_edit.unattended_amount.value.replace(",", ""))) { alert("현재 남은 미처리금액을 초과할 수 없습니다."); document.frm_edit.amount.value = document.frm_edit.unattended_amount.value; return false; } ajax_post('ajax_proc', 'account_inout_process.php', 'frm_edit'); } </script> <? include "../include/footer_iframe.html"; ?>