/home/mjc1/public_html/html/millennium/recom_ev.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.php"); ?>
<?php

    $ipaddr 
getenv("REMOTE_ADDR");  
    
$h date("H",time());
    
set_session("nomem_hash".$h$_SERVER['REMOTE_ADDR']);
    
set_session("nomem_hash_h"$h);

    if(
$_COOKIE['USERID']=='' && 1==2){ // ºñȸ¿øµÇ°Ô Ã³¸®
?>
        <script>
            alert('·Î±×ÀÎÇϼžߠÀ̿렰¡´ÉÇÕ´Ï´Ù.');
            document.location.href='logingo.php?url=customer_recommend.php';
        </script>
<?
        
exit;
    }

?>
<style>
.office_title{height:810px;}
.office_title{background:url('./img/customer/board_title/recom_tit_ev3-9.png') center no-repeat;}

.wrap {width: 900px;margin: 0 auto;} 
.recom_layout{padding:0px 0 20px;}
/* .recom_table table{margin-bottom:20px;} */
.company_tit{font-size: 22px;font-weight: 600;line-height: 36px;color: #222;margin-bottom: 40px;}
.company_icon{margin-right: 15px;}

.recom_tit{display:inline-block;margin-bottom:20px;line-height: 24px;}
.recom_tit h4{float:left;color:#0071e4;font-size:17px;font-weight:600;}
.recom_tit h4:before{content:'¡Ü';font-size:12px;position:relative;top:-2px;margin-right:5px;}
.recom_tit p{float:left;text-align:left;font-size:16px;}
.recom_layout em {font-weight:600;color:#47A7FF;}
.recom_tit span{font-weight:600}
.recom_info {padding-bottom:35px;padding-top: 20px;width:900px;margin:auto;display: flex;justify-content: space-around;}
.recom_info img{margin-left: 30px;}
.recom_info:after {clear:both;content:'';display:block;}

/* .radio_p {overflow: hidden; padding: 0;width:184px;} */
.radio_p label { display: block; float: left; cursor: pointer; vertical-align: top;width: 50px;height: 50px;margin-right: 10px;}
.radio_p label .icon.radio { display: block; width: 50px;height: 50px;background: url('./img/customer/recomd_btn.png') no-repeat -50px 0; }
.radio_p.checked label .icon.radio { background-position: 0px 0px; }
.atte_spam .radio_p .radioText {vertical-align:middle;font-size:18px;font-weight: 600;font-family:'Nanum Gothic',sans-serif;line-height:50px;}
/* .label_s {padding:0 30px;} */

/* ÀÔ·ÂÆû °øÅë */
.label_s{font-size: 20px;line-height: 50px;color: #222;}
.input_box{margin-bottom: 25px;}
.input_box::after{content:''; display:block;clear:both;}
.input_box > .label_s, .input_box > input{float: left;}
.input_box > .label_s{width: 12%;}
.input_box input{height: 50px;border: 2px solid #BEBEBE;border-radius: 8px;background: #fff;box-sizing: border-box;padding: 10px 10px;font-size: 16px;}
/* ¿¬¶ôó */
.call_number .phone_number{display: flex;justify-content: space-between;width: 88%;font-size: 40px;color: #BEBEBE;line-height: 50px;}
.phone_number input{width: 220px;}
/* ¼Ò°³Á¦Ç° */
.recom_prod{width: 100%;}
.recom_prod .label_s{width: 12%;}
.recom_prod::after{content: '';display: block;clear: both;}
.recom_prod input[name='intro_prod']{float: right;width: 88%;height: 50px;border: 2px solid #BEBEBE;border-radius: 8px;background: #F2F2F2;box-sizing: border-box;padding: 10px 50px 10px 20px;font-size: 16px;line-height: 26px;outline: none;}

/* ±¸¸Å¿©ºÎÈ®ÀΠ*/
.buy_way{margin-top: 30px;}
.buy_way::after{content: '';display: block;clear: both;}
.buy_way .label_tit{font-size: 20px;color: #222;line-height: 50px;float: left;margin-right: 40px;}
.buy_way .radio_p:nth-child(2){margin-right: 50px;}
.radioText{font-size: 20px;line-height: 50px;color: #222;font-weight: 600;}
/* ÁÖÀǹ®±¸ */
/* .attention_box{margin-bottom: 50px;}
.attention_txt{font-size: 20px;line-height: 34px;color: #497CFF;} */

/* ½ºÆÔ¹æÁö º¸¾È */
.atte_spam > p{float: left;margin-right: 70px;}
.atte_spam > .satis_msg04{float: left;}
.atte_spam::after{content: '';display: block;clear: both;}
.simple_captcha_class  span { font-size:20px !important; }
.s_btn {background: #012D6A;font-size:14px;color:#fff;border-radius:5px;padding:10px 43px;cursor:pointer;}
.scaptcha_ul_class li {float: left;line-height:47px;}
.scaptcha_ul_class li input{width: 220px;height: 50px;border: 2px solid #BEBEBE;border-radius: 8px;background: #fff;box-sizing: border-box;padding: 10px;font-size: 16px;}
.simple_captcha_class span{font-weight: 600;}

/* Ãë¼Ò,ÀúÀå¹öư */
.btn_list{margin-top: 50px;text-align: center;}
.saf_btn{padding:15px 0px;width:150px;background:#0071e5;color:#fff;display:inline-block;font-size:17px;font-weight:600;border-radius:5px;cursor:pointer;font-family:'Nanum Gothic',sans-serif;line-height: initial;}
.cancle_btn{padding:15px 0px;width:150px;background:#4a4c4e;color:#fff;display:inline-block;font-size:17px;font-weight:600;border-radius:5px;cursor:pointer;margin-right:8px;font-family:'Nanum Gothic',sans-serif;line-height: initial;}

#freebies{border-top: 1px solid #4e4e4e !important;}
</style>


    <div class="office_title"></div>
    <div class="wrap">
        <div class="recom_layout">
            <!-- ¼Ò°³À̺¥Æ® -->
            <!-- <div class="recom_info">
                <img src="./img/customer/voucher_pc1.png" style="float:left;">
                <p style="font-size:24px;line-height:1.5;font-weight:600;color: #9C9C9C;float:right;text-align:left;margin-top: 5px;">
                    ´ç»ç Á¦Ç°À» ¼Ò°³ÇÑ °æ¿ì Á¤º¸¸¦ µî·ÏÇØ ÁÖ¼¼¿ä.<br>
                    ±¸¸Å È®ÀΠÈÄ <em>»óǰ±ÇÀ» ¹ß¼Û</em>ÇØ µå¸³´Ï´Ù.<br>
                    <em style="font-size: 20px;">&#8251; CS Á¦Ç° ¼Ò°³¿¡ ÇÑÇÔ</em>
                </p>
            </div> -->
            <div class="recom_table">
                <form name='recom_form' id='recom_form' method='post' action='customer_recommend_process.php'>
                    <input type="hidden" name="type" value="pc">
                    <input type="hidden" name="event_type" value="pc_event"><!--À̺¥Æ® ±¸º° -->

                    <div class="recom_company_box" style="padding: 35px 0px;">
                        <h3 class="company_tit"><img class="company_icon" src="./img/customer/recom_icon_pc1-1.png" alt="company_icon_blue">¼Ò°³ ¾÷ü</h3>
                        <div class="recom_company_box_inner">
                            <div class="input_box">
                                <label class="label_s">»óÈ£</label>
                                <input type="text" name='intro_company' value='' style="width:340px;">
                            </div>
                            <div class="input_box">
                                <label class="label_s">¼º¸í</label>
                                <input type="text" name='intro_name' value='' style="width:340px;">
                            </div>
                            <div class="input_box call_number">
                                <label class="label_s">¿¬¶ôó</label>
                                <div class="phone_number">
                                    <input type="text" name='intro_tel1' value='' maxlength=4 onKeyup="this.value=this.value.replace(/[^-0-9]/g,'');">
                                    -
                                    <input type="text" name='intro_tel2' value='' maxlength=4 onKeyup="this.value=this.value.replace(/[^-0-9]/g,'');">
                                    -
                                    <input type="text" name='intro_tel3' value='' maxlength=4 onKeyup="this.value=this.value.replace(/[^-0-9]/g,'');">
                                </div>
                            </div>
                            <!-- <div class="recom_prod">
                                <label class="label_s" style="float: left;line-height: 50px;">¼Ò°³Á¦Ç°</label>
                                <input type="text" name="intro_prod" readonly value="õ³â°æ¿µ3cs">
                            </div> -->
                        </div>
                    </div>
                    <div class="recom_company_box recommend" style="padding: 35px 0px;border-top: 1px dashed #A6A6A6;">
                        <h3 class="company_tit"><img class="company_icon" src="./img/customer/recom_icon_pc1-2.png" alt="company_icon_red">¼Ò°³¹ÞÀº ¾÷ü</h3>
                        <div class="recom_company_box_inner">
                            <div class="input_box">
                                <label class="label_s">»óÈ£</label>
                                <input type="text" name='recom_company' value='' style="width:340px;">
                            </div>
                            <div class="input_box">
                                <label class="label_s">¼º¸í</label>
                                <input type="text" name='recom_name' value='' style="width:340px;">
                            </div>
                            <div class="input_box call_number">
                                <label class="label_s">¿¬¶ôó</label>
                                <div class="phone_number">
                                    <input type="text" name='recom_tel1' value='' maxlength=4 onKeyup="this.value=this.value.replace(/[^-0-9]/g,'');">
                                    -
                                    <input type="text" name='recom_tel2' value='' maxlength=4 onKeyup="this.value=this.value.replace(/[^-0-9]/g,'');">
                                    -
                                    <input type="text" name='recom_tel3' value='' maxlength=4 onKeyup="this.value=this.value.replace(/[^-0-9]/g,'');">
                                </div>
                            </div>
                        </div>
                        <!-- ±¸¸Å¿©ºÎ È®ÀΠ-->
                        <!-- <div class="buy_way">
                            <span class="label_tit" >±¸¸Å¿©ºÎ¸¦ ¼±ÅÃÇϼ¼¿ä.</span>
                            <div class="radio_p" style="float: left;">
                                <label for="recomd01"><span class="icon radio"></span></label>
                                <span class="radioText">¼Ò°³ Àü(ºñ±¸¸Å)</span>
                                <input id="recomd01" hidden type="radio" name="recom_result" value='ºñ±¸¸Å' data-val='1'>
                            </div>
                            <div class="radio_p" style="float: left;">
                                <label for="recomd02"><span class="icon radio"></span></label>
                                <span class="radioText">±¸¸Å¿Ï·á</span>
                                <input id="recomd02" hidden type="radio" name="recom_result" value='±¸¸Å¿Ï·á' data-val='2'>
                            </div>
                        </div> -->
                    </div>
                    <div class="atte_spam" style="padding: 35px 0px;border-top: 1px dashed #A6A6A6;border-bottom: 1px dashed #A6A6A6;">
                        <!-- <div class="attention_box">
                            <p class="attention_txt">*¼Ò°³¾÷ü µî·Ï ÈÄ ±¸¸ÅÈ®ÀεǸ頴ã´çÀÚ°¡ ¿¬¶ô ÈÄ »óǰ±Ç ¹ß¼ÛÇÕ´Ï´Ù</p>
                            <p class="attention_txt">*¼Ò°³¾÷ü°¡ ¹Ì±¸¸Å½Ã »óǰ±Ç Áö±ÞÀÌ º¸·ùµË´Ï´Ù</p>
                        </div> -->
                        <p class="radio_p">
                            <span class="radioText">½ºÆÔ¹æÁöº¸¾È</span>
                        </p>
                        <div class="satis_msg04" style="margin-bottom:0;">

<?php
    
function captcha_str_ch($v){ // ¼¼¼±ÆÄÀÏ µð·ºÅ丮 ¼³Á¤½Ã Ä±Â÷ À̹ÌÁö Ã³¸® ¾ÈµÇ¾î¼­ ±×³É ÅؽºÆ®·Î ÇÏµÇ ÇØÅ·ÇÁ·Î±×·¥ ±Ü±â·Î ÃÖ´ëÇѠó¸®¾ÈµÇ°Ô ÇØÁִ ¿ªÈ°
        
$c_array = array('gray','red','blue','green','pink','purple');
        
$v_cnt strlen($v);
        
$rtn "";
        for(
$i=0;$i<$v_cnt;$i++){
            
$rtn .= "<span style='color:{$c_array[$i]}'>{$v[$i]}&nbsp;</span>";
        }
        return 
$rtn;
    }

    include(
$_SERVER['DOCUMENT_ROOT']."/inc_pack/scaptcha/simple-php-captcha.php");
    
$captcha simple_php_captcha();
    
$_SESSION['captcha'] = $captcha;
    
$_SESSION['captcha_code'] = $captcha['code'];
    
$c_code captcha_str_ch($_SESSION['captcha']['code']);
    
$_SESSION['captcha']['code_ck'] = "";
    echo 
"<ul class='scaptcha_ul_class'><li style='float:left;' class='txt21 simple_captcha_class'>{$c_code}</li><li style='float:left;'><span style='padding:10px 20px;margin:0 12px;cursor:pointer;' class='pointer simple_captcha_change s_btn'>»õ·Î°íħ</span></li>";
    echo 
"<li style=''>&nbsp;<input type='text' name='captcha_input' class='' style='margin-bottom:5px;width:220px;' placeholder=''>&nbsp;<span style='font-size:14px;margin-left: 10px;'>´ë¼Ò¹®ÀÚ ±¸ºÐÇØ¼­ ÀÔ·ÂÇϽñ⠹ٶø´Ï´Ù.</span></li></ul>";
?>
                        </div><!-- //satis_msg04 -->
                    </div><!-- //atte_spam -->

                </form>
                <div class="btn_list">
                    <div class="cancle_btn">Ãë¼Ò</div>
                    <div class="saf_btn">ÀúÀå</div>
                </div>
            </div>
            <!-- '»çÀºÇ°¹ß¼Û¸®½ºÆ®'ÀÇ ÆäÀÌÁö±â´É °ü·Ã º¯¼ö *»èÁ¦ÇÏÁö ¸» °Í* -->
            <?php $recommend ''?>
            <!-- //'»çÀºÇ°¹ß¼Û¸®½ºÆ®'ÀÇ ÆäÀÌÁö±â´É °ü·Ã º¯¼ö *»èÁ¦ÇÏÁö ¸» °Í* -->

            <? include("./freebies_inc.php"); ?>
        </div><!-- //contents -->
    </div><!-- //wrap -->


<script>
$(function(){
    $(".simple_captcha_change").click(function(){ // ½ºÆÔ¹æÁö ¸®·Îµå
        $.get("./ajax.captcha_reload.php",function(rtn){
            $(".simple_captcha_class").html(rtn);
        })    ;
    });

    /*var raioEle = $('.radio_p label');
    raioEle.on('click', function() {
        $idx = raioEle.index(this);
        if($idx==1){
            $(".radio_p").removeClass('checked');
        } else {
            $(".radio_p").eq(1).removeClass('checked');
        }

        // ¼±Åàradio Ã¼Å©½Ã
        $(this).parent().addClass('checked');
    });*/

    // ÀúÀå¹öư Å¬¸¯
    $(".saf_btn").click(function(){

        //$flag = "0"; 
        $detail_idx = 0; $type_val = "";
        /*$("input[name='recom_result']").each(function(idx,val){
            if($(this).is(":checked")==true){ 
                $flag = "1"; 
                $detail_idx = idx+1;
                $type_val = val.value;
            }
        });*/

        // Çʼö°Ë»ç
        if($("input[name='intro_company']").val().trim() == "") {alert("¼Ò°³¾÷üÀÇ »óÈ£¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä."); return;}
        if($("input[name='intro_name']").val().trim() == "") {alert("¼Ò°³¾÷üÀÇ ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä."); return;}
        if($("input[name='intro_tel1']").val().trim() == "" || $("input[name='intro_tel2']").val().trim() == "" || $("input[name='intro_tel3']").val().trim() == "") {alert("¼Ò°³¾÷üÀÇ ¿¬¶ô󸦠ÀÔ·ÂÇØÁÖ¼¼¿ä."); return;}

        //04.24 ¼öÁ¤
        //if($("input[name='intro_prod']").val().trim() == "") {alert("¼Ò°³ÇØÁֽŠÁ¦Ç°À» ¼±ÅÃÇØÁÖ¼¼¿ä."); return;}

        if($("input[name='recom_company']").val().trim() == "") {alert("¼Ò°³¾÷üÀÇ »óÈ£¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä."); return;}
        if($("input[name='recom_name']").val().trim() == "") {alert("¼Ò°³¾÷üÀÇ ¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä."); return;}
        if($("input[name='recom_tel1']").val().trim() == "" || $("input[name='recom_tel2']").val().trim() == "" || $("input[name='recom_tel3']").val().trim() == "") {alert("¼Ò°³¾÷üÀÇ ¿¬¶ô󸦠ÀÔ·ÂÇØÁÖ¼¼¿ä."); return;}

        /*if($flag=='0'){
            alert("±¸¸Å¿©ºÎ¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä."); return;
        }*/

        if($("input[name='captcha_input']").val().trim() == "") {alert("½ºÆÔ¹æÁöº¸¾ÈÄڵ带 ÀÔ·ÂÇØÁÖ¼¼¿ä"); return;}

        $v = ck_captcha_ajax();
        if($v=='ok'){ 
            $("#recom_form").submit();
        } else {
            alert($v);
        }
    });

    // Ãë¼Ò¹öư Å¬¸¯
    $(".cancle_btn").click(function(){
        location.href = "./intro.php";
    });
});

function ck_captcha_ajax(){
    var form_data = $("#recom_form").serialize();
    var ax = "";
    $.ajax({type:"post", url:"ajax.simple_captcha.php",data:form_data, dataType : "html", async:false, contentType: 'application/x-www-form-urlencoded; charset=euc-kr', 
        success:function(xml){    
            ax = xml;
        },
        error:function(rtn,status,error){
            ax = false;
        }
    });

    return ax;
}
</script>


<? include("./Page/common/footer.php"); ?>