/home/mjc1/public_html/j3demo/adm/point_reg.inc.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
$dir 
".";
include_once(
$dir."/_common.php");

if(
$code!=''){
    
$sql "select a.*, b.login_id, b.comp_name from point_edit a left join customers b on a.ccode = b.code WHERE 1=1 and a.nidx = '{$code}' ";
    
$cinfo sql_fetch($sql,$connect_j3);
} else {
    
$cinfo['dealdate'] = date("Y-m-d",time());
}
?>
<style>
    .cust_modal1, 
    .cust_modal2 { border:0px solid #e1e1e1; width:700px; padding:10px; font-size:13px }
    .cust_modal1 h4, 
    .cust_modal2 h4 { position:relative; top:-5px; font-size:14px; font-weight:bold; }
    .cust_modal2 { margin-top:0px; }
    .table-top-border tbody { border-top:1px solid #e1e1e1;}
    .cust_modal1 table tbody td,
    .cust_modal2 table tbody td { text-align:left; padding-left:5px;  }
    .cust_modal1 table tbody td input,
    .cust_modal2 table tbody td input{ border:1px solid #e9e9e9;  }
    .input_readonly {background:#E9E9E9; }
    .width_500 { width:500px !important; }
    .width_80 { width:80px !important; }
    .width_120 { width:120px !important; }
</style>
<form name='point_reg_form' method='post' action=''>
<input type='hidden' name='qstr' value=''>
<input type='hidden' name='code' value='<?php echo $cinfo['nidx'];?>'>
<input type='hidden' name='pcode' value='<?php echo $pcode;?>'>

<div class='cust_modal1'>
    <h4>기본정보</h4>
    <table class="order-sheet table-top-border">
        <caption class="screen_out">기본정보</caption>
        <colgroup>
            <col style="width:100px;"><col style="width:200px;">
            <col style="width:100px;"><col style="width:200px;">
        </colgroup>

        <tbody>
        <tr>
            <th>거래처 아이디</th>
            <td colspan=3>
                <input type='hidden' name='ccode' class='' value='<?php echo $cinfo['ccode'];?>'>
                <input type='text' name='login_id' class='width_100 input_readonly' value='<?php echo $cinfo['login_id'];?>'>
                <?php if($code==''){?>&nbsp;<span class='cust_open'>[거래처검색]</span><?php }?>
            </td>
        </tr>
        <tr>
            <th>조정 일자</th>
            <td colspan=3>
                <input type='text' name='dealdate' id='dealdate' class='width_100 ' value='<?php echo $cinfo['dealdate'];?>'>
            </td>
        </tr>
        <tr>
            <th>조정 포인트</th>
            <td colspan=3>
                <input type='text' name='point' class='width_100 number_class' value='<?php echo $cinfo['point'];?>'>
                <span class='help_info'>적립은 양수, 사용은 음수(-)로 입력하세요.</span>
            </td>
        </tr>
        <tr>
            <th>조정 내용</th>
            <td colspan=3>
                <input type='text' name='remarks' class='width_500' value='<?php echo $cinfo['remarks'];?>'>
            </td>
        </tr>
    </table>
</div>
</form>
<script>
$(function(){
    $(".cust_open").css("cursor","pointer").click(function(){
        $.get("customer_list.inc.php?mode=point",function(rtn){
            $("#modal_member_box2").html(rtn).dialog({
                resizable: true, height:740, width:1000, modal: true, title:"거래처 [검색]",
                buttons: {
                    닫기: function() {
                        $( this ).dialog( "close" );
                    }
                }
            });
            $("#modal_member_box").css("left","0px;");
        });
    });

    $("#dealdate").datepicker({
        showOn: "button",
        buttonImage: "./img/calendar.png",
        buttonImageOnly: true,
        buttonText: "Select date",
        dateFormat: "yy-mm-dd",
        changeMonth: true,
        changeYear: true,
            monthNames: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
            monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
            dayNames: ['일','월','화','수','목','금','토'],
            dayNamesShort: ['일','월','화','수','목','금','토'],
            dayNamesMin: ['일','월','화','수','목','금','토'],
            showMonthAfterYear: true,
            yearSuffix: '년'
    });    
})
</script>