/home/mjc1/public_html/html/millennium/customer_buy_cs_pop_ansi.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?php include_once("./_common2.php"); ?>


<?
if (!isset($_REQUEST['pcver'])) {
    
//¸ð¹ÙÀÏ Á¢¼Ó½Ã ÇØ´ç ÆäÀÌÁö·Î À̵¿
    // iPad Ã³¸® ¹× ´Ù¸¥ ±âÁ¾ ¸î°³·Î ¼öÁ¤(±âÁ¸ Ã¼Å© ·ÎÁ÷ ÁÖ¼® Ã³¸®) 2013.12.23 by.jyh
        
if($_SERVER['HTTP_USER_AGENT'] && preg_match('/(Mobile|UP.Browser|Android|BlackBerry|Windows CE|Nokia|webOS|Opera Mini|SonyEricsson|opera mobi|Windows Phone|IEMobile|POLARIS)/i',$_SERVER['HTTP_USER_AGENT']) ) {
            echo 
"<script>top.location.href = 'http://mjsoft.co/html/m/right_install.php';</script>";
            exit;
        }
    } 
//¸ð¹ÙÀÏ Á¢¼Ó ³¡
?>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style>
.cs_buy_tit{height:210px;}
.cs_buy_tit {
    background: url('./img/customer/board_title/customer_buy_tit02.png') center no-repeat;
    background-position: bottom;
    background-position-y: -43px;
}
.cs_buy_txt{text-align:right;    width: 1100px;margin: 0 auto;margin-bottom:10px;font-size:16px;}
.cs_buy_layout{text-align:center;padding:30px 0 40px;}
.cs_buy_table table{margin-bottom:20px;}
.cs_buy_table{width:1100px;margin:0 auto;border-top:3px solid #0071e4;}
.cs_buy_table .edc_table_tit{background:#dae9ff;font-weight:600;font-size:16px;text-align:center;padding-left:0;}
.cs_buy_table table tbody tr th{color:#3d3d3d;text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:16px;font-weight:600;background:#f1f0f0;}
.cs_buy_table table tbody tr td{text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:14px;font-weight:600;}
.cs_buy_table table th, .cs_buy_table table td{height:45px;line-height:45px;/*padding:3px 0;*/border-right:2px solid #acacac;border-bottom:2px solid #acacac;}
.cs_buy_table table tbody tr td input{border: 1px solid #b3b3b3;height:32px;border-radius:5px;padding:0 10px;margin-right:10px;margin:10px 0;}
.cs_buy_table .edc_tel td input{width:60px;margin-right:0;}
.cs_buy_table .edc_tel td span{margin:0 10px;}
.cs_buy_table .edc_date td input{width:60px;margin-right:0;}
.cs_buy_table .edc_date td span{margin:0 10px;}
.cs_buy_table textarea{width:95%;height:150px;border:1px solid #ccc;margin-top:10px;padding:10px;}
.tieupAgree{width:1100px;margin:0 auto;border-top:0;position:relative;display:inline-block;}
.tieupAgree h2{text-align:left;font-size:16px;color:#000;}
.tieupAgree h2 span{font-size:12px;font-weight:400;}
.tieupAgree p{float:right;text-align: right;}
.tieupAgree textarea {width:1075px;margin:0 auto;margin-top:10px;}
.buy_cs_btn{padding:15px 0px;width:150px;background:#0071e5;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;}
.price_cs_btn{padding:15px 0;width:150px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;}
.price_cs_btn a{color:#fff;font-weight:600;}
.cs_buy_layout .show_correct_class{padding:15px 0;width:150px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;}
.cs_buy_table .edc_tel td input.edc_chk{width: 25px;height: 25px;position: relative;top: 7px;margin-right: 10px;border: 0;padding: 0;}
#modal_member_box{padding-top: 15px !important;}
</style>

    <div class="wrap">
        <div class="cs_buy_tit"></div>
        <div class="cs_buy_layout">
            <p class="cs_buy_txt">¡Ø ¾÷¹«½Ã°£¿Ü ¿äûÀº <b style="color: #006cff;">¾÷¹«½ÃÀÛ</b> ÈÄ ÀüÈ­µå¸³´Ï´Ù.</p>
            <div class="cs_buy_table">
                <form name='install_form' method='post' action='?' onsubmit='return false;'>
                    <input type="hidden" name="iw" value="">
                    <input type="hidden" name="clicktime" id="clicktime" value="0">
                    <input type='hidden' name='contact_time' value='1'>
                    <input type='hidden' name='smtitle' value='PC'>
                    <input type='hidden' name='ismobile' value='2'>
                    <!--<input type='hidden' name='ismode' value='1'>-->
                    <input type='hidden' name='come_from' value='<?php echo $_GET['come_from'];?>'>
                    <table style="width:100%;">
                        <tbody>
                            <tr>
                                <th width="160">* »óÈ£</th>
                                <td width="260"><input name="smname" id="shop" type="text" style="width:225px;"></td>
                                <th width="160">* ´ã´çÀÚ</th>
                                <td width="260" ><input name="telname" id="name" type="text" style="width:225px;"></td>
                            </tr>
                            <tr class="edc_tel">
                                <th>* ¼ö½Å¹æ½Ä¼±ÅÃ</th>
                                <td colspan="3">
                                    <div style="float:left;">
                                        <input type="checkbox" name="edc_tel" value='1' class="edc_chk">ÀüÈ­ 
                                        <input name="smtel1" type="text" maxlength="4" style="margin-left:5px;"><span>-</span>
                                        <input name="smtel2" type="smtel2" maxlength="4"><span>-</span>
                                        <input name="smtel3" type="smtel3" maxlength="4">
                                    </div>
                                    <div style="float:left;border-left:2px solid #979797;margin-left:15px;padding-left:15px;">
                                        <input type="checkbox" name="edc_email" value='1' class="edc_chk">À̸ÞÀÏ 
                                        <input name="s_email" type="text" style="width:300px;margin-left:5px;">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th>* »ó´ã³»¿ë</th>
                                <td colspan="3"><textarea name="smdetail" onclick="clear_text()" id="smdetail">õ³â°æ¿µ(À¯Åë¾÷¹«) ¹× ¿ÜºÎ ¾÷¹«°ü¸® ½º¸¶Æ®Æù, PDA¿µ¾÷°ü¸® µµÀÔ°ú °ü·ÃÇÏ¿© »ó´ãÇϰíÀÚ ÇÕ´Ï´Ù.
ÀúÈñ È¸»ç ¾÷¹«°ü¸® ÇÁ·Î±×·¥ °³¹ß »ó´ãÀ» Èñ¸ÁÇÕ´Ï´Ù.
¿¬¶ôÁÖ¼¼¿ä.</textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
                    <div class="tieupAgree">
                        <h2>°³ÀÎÁ¤º¸ ¼öÁý ¹× À̿뵿ÀÇ <span>(ÀÚ¼¼ÇÑ ³»¿ëÀº '°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§'À» Âü°íÇØÁÖ¼¼¿ä.)</span></h2>
                        <? include("./privacy_text.html"); ?>
                        <p>
                            <input type="radio" id="formText1" name="formText" value="1"><label for="formText1">µ¿ÀÇÇÔ</label>
                            <input type="radio" id="formText2" name="formText" value="2" checked><label for="formText2">µ¿ÀǾÈÇÔ</label>
                        </p>
                    </div>
                    <div class="buy_cs_btn install_btn">±¸¸Å»ó´ã ¿äûÇϱâ</div>
                </div>
        </div><!-- //contents -->
    </div><!-- //wrap -->
<script>
function clear_text(){ 
    if(document.getElementById("clicktime").value == "0"){    //ùŬ¸¯¸¸ »èÁ¦
        var str=""; 
        var bb=document.getElementById("smdetail"); 
        bb.innerHTML= str; 
        document.getElementById("clicktime").value = "1";
    }
}
</script>
<script>
$(function(){
    $(".install_btn").click(function(){
        if($("#shop").val()==''){
            alert('»óÈ£¸íÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
        }
        if($("#name").val()==''){
            alert('´ã´çÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
        }

        if($("input[name='edc_tel']").is(":checked")==false && $("input[name='edc_email']").is(":checked")==false){
            alert('¼ö½Å¹æ½ÄÀ» ÀüÈ­³ª À̸ÞÀÏÁß¿¡ ÇѰ³À̻󠼱ÅÃÇØÁÖ¼¼¿ä.'); return;
        } else {
            if($("input[name='edc_tel']").is(":checked")==true){
                if($("input[name='smtel1']").val()=='' || $("input[name='smtel2']").val()=='' || $("input[name='smtel3']").val()==''){
                    alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); return;
                }
            }
            if($("input[name='edc_email']").is(":checked")==true){
                if($("input[name='s_email']").val()==''){
                    alert('À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
                }
            }
        }        
        
        if($("#clicktime").val()=='0' || $("#smdetail").val()==''){
            alert('»ó´ã³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
        }
        /*if($("input[name='contact_time']").eq(1).is(":checked")==true){
            if($("#ct_date").val()==''){ alert('ÀÏÀÚ¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.'); return; }
            if($("#ct_hour option:selected").val()==''){ alert('½Ã°£À» ¼±ÅÃÇØÁÖ¼¼¿ä.'); return; }
            if($("#ct_minute option:selected").val()==''){ alert('ºÐÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.'); return; }
        }*/
        if($("#formText1").is(":checked")==false){
            alert('°³ÀÎÁ¤º¸ ¼öÁý¿¡ µ¿ÀÇÇԠüũ¸¦ ÇϽñ⠹ٶø´Ï´Ù.'); return;
        }

        var iw = "<?php echo $iw?>";

        if (iw == 'mail_way'){
            $("input[name='iw']").val(iw);
        }

        form_data = $("form[name='install_form']").serialize();
        $.ajax({type:"post", url:"../millennium/ajax.install_req.process.php",  data:form_data, async:false, dataType : "xml", 
            success:function(xml){    
                var v_mode = $(xml).find("mode").text();
                var v_mode_ok = $(xml).find("mode_ok").text();
                var v_msg = $(xml).find("msg").text();
                var v_pt = $(xml).find("pt").text();
                var v_contact_time = $(xml).find("contact_time").text();

                if(v_mode_ok=='Y'){
                    alert('±¸¸Å»ó´ã¿äû µÇ¾ú½À´Ï´Ù., '+v_contact_time+'µå¸®°Ú½À´Ï´Ù.');
                    document.location.reload();
                } else {
                    alert(v_msg);
                }
            },
            error:function(rtn,status,error){    alert(error);        }
        });
    });        
});
</script>