/home/mjc1/public_html/adm/sms_admin/member_update.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
<?php
$sub_menu 
"900200";
include_once(
"./_common.php");

auth_check($auth[$sub_menu], "r");

$g5['title'] = "회원정보 업데이트";

include_once(
G5_ADMIN_PATH.'/admin.head.php');
?>

<div id="sms5_mbup">
    <form name="mb_update_form" id="mb_update_form" action="./member_update_run.php" >
    <div class="local_desc02 local_desc">
        <p>
            새로운 회원정보로 업데이트 합니다.<br>
            실행 후 '완료' 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오.
        </p>
    </div>
    <div class="local_desc01 local_desc">
        <p>
            마지막 업데이트 일시 : <span id="datetime"><?php echo $sms5['cf_datetime']?></span> <br>
        </p>
    </div>

    <div id="res_msg" class="local_desc01 local_desc">
    </div>

    <div class="btn_confirm01 btn_confirm">
        <input type="submit" value="실행" class="btn_submit">
    </div>
    </form>
</div>

<script>
(function($){
    $( "#mb_update_form" ).submit(function( e ) {
        e.preventDefault();
        $("#res_msg").html('업데이트 중입니다. 잠시만 기다려 주십시오...');
        var params = { mtype : 'json' };
        $.ajax({
            url: $(this).attr("action"),
            cache:false,
            timeout : 30000,
            dataType:"json",
            data:params,
            success: function(data) {
                if(data.error){
                    alert( data.error );
                    $("#res_msg").html("");
                } else {
                    $("#datetime").html( data.datetime );
                    $("#res_msg").html( data.res_msg );
                }
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(xhr.status);
                alert(thrownError);
            }
        });
        return false;
    });
})(jQuery);
</script>

<?php
include_once(G5_ADMIN_PATH.'/admin.tail.php');
?>