/home/mjc1/public_html/html/millennium/customer_visit.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
<?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);

?>
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
<style>
.office_title{height:263px;}
.office_title{background:url('./img/customer/board_title/customer_vst_tit.png') center no-repeat;}
.office_ft{height:310px;}
.office_ft{background:url('./img/customer/board_title/customer_edc_ft.png') center  no-repeat;}

.vst_layout{text-align:center;padding:30px 0 40px;}
.vst_table table{margin-bottom:20px;}
.vst_tit{display:inline-block;margin-bottom:20px;line-height: 24px;}
.vst_tit h4{float:left;color:#0071e4;font-size:17px;font-weight:600;}
.vst_tit h4:before{content:'¡Ü';font-size:12px;position:relative;top:-2px;margin-right:5px;}
.vst_tit p{float:left;text-align:left;font-size:16px;}
.vst_tit span{font-weight:600}
.vst_table{width:1100px;margin:0 auto;border-top:3px solid #0071e4;}
.vst_table .vst_table_tit{background:#dae9ff;font-weight:600;font-size:16px;text-align:center;padding-left:0;}
.vst_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;}
.vst_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;}
.vst_table table tbody tr td{text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:14px;font-weight:600;}
.vst_table table th, .vst_table table td{height:45px;line-height:45px;padding:3px 0;border-right:2px solid #acacac;border-bottom:2px solid #acacac;}
.vst_table table tbody tr td input{border: 1px solid #b3b3b3;height:32px;border-radius:5px;padding:0 10px;margin-right:10px;}
.vst_table table tbody tr td textarea{border: 1px solid #b3b3b3;height:200px;min-height:200px;border-radius:5px;padding:10px;margin:10px 0;vertical-align:middle;}
.vst_table .vst_tel td input{width:63px;margin-right:0;font-size:14px;}
.vst_table .vst_tel td span{margin:0 10px;font-size:12px;}
.vst_table .vst_date td input{width:1em;margin-right:0;}
.vst_table .vst_date td span{margin:0 10px;}
.vst_table .zip_search {height:32px;width:82px;line-height:32px;margin-right:10px;background:#0071e5;color:#fff;border:none;border-radius:5px;font-weight:600;cursor:pointer;}
.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;}
.privacy_link{position:absolute;top:0;right:0;}
.privacy_link a{font-size: 13px;padding: 7px 10px;}
.vst_tit h4:before{content:'¡Ü';font-size:12px;position:relative;top:-2px;margin-right:5px;}
.office_ft_txt{background:#424242;}
.office_ft_txt ul{width:1100px;margin:0 auto;display:block;height:40px;line-height:40px;color:#fff;font-size:16px;}
.office_ft_txt ul li{width:50%;text-align:center;float:left;}
.office_ft_txt ul li:before{content:'¡Ü';font-size:11px;position:relative;top:-2px;margin-right:5px;}
.vst_btn{padding:15px 0px;width:150px;background:#0071e5;color:#fff;display:inline-block;font-size:17px;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;}
.show_program_customer2{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;}
</style>
    <div class="office_title"></div>
    <div class="wrap">
        <div class="vst_layout">
            <div style="padding-bottom:10px;">
                <ul style="margin-bottom:10px;">
                    <li style="font-size:16px; font-weight:600; padding:5px 0;">ÀüÈ­·Î °£´ÜÈ÷ ¾÷¹«¸¦ ÆÄ¾ÇÇϰí ÀÏÁ¤À» Á¶À² ÈÄ ¹æ¹®ÇÕ´Ï´Ù.</li>
                </ul>
            </div>
            <div class="vst_table">
<form name='visit_form' id='visit_form' method='post' action=''>
                    <input type="hidden" name="clicktime" id="clicktime" value="0">
                    <input type='hidden' name='contact_time' value='1'>
                    <input type='hidden' name='smtitle' value='visit-pc'>
                    <input type='hidden' name='ismode' value='visit'>
                    <input type='hidden' name='come_from' value='<?php echo $_GET['come_from'];?>'>
                    <table style="width:100%;">
                        <tbody>
                            <tr>
                                <th width="120" style="border-left:2px solid #acacac;">* »óÈ£</th>
                                <td width="200"><input name="subject" type="text" style="width:86%;"></td>
                                <th width="120">* ´ã´çÀÚ</th>
                                <td width="200" ><input name="name" type="text" style="width:85%;"></td>
                            </tr>
                            <tr class="vst_tel">
                                <th style="border-left:2px solid #acacac;">* ¿¬¶ôó</th>
                                <td style="font-size:0px;"><input name="tel1" type="text" maxlength="4"><span>-</span>
                                <input name="tel2" type="text" maxlength="4"><span>-</span>
                                <input name="tel3" type="text" maxlength="4"></td>
                                <th>* Á÷¿ø¼ö(»ç¿ëÀÚ¼ö)</th>
                                <td><input name="emp_num" type="text" style="width:85%;"></td>
                            </tr>

                            <tr>
                                <th style="border-left:2px solid #acacac;" rowspan="2">* Áö¿ªÁÖ¼Ò</th>
                                <td colspan="3" style="border-bottom:none;">
                                    <button class="zip_search" value="ÁÖ¼Ò°Ë»ö" onclick="postSearch3('zipcode','','addr_m')">ÁÖ¼Ò°Ë»ö</button><input type="text" name="zipcode" id="zipcode" required value style="width:17%;">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <input name="addr_m" id="addr_m" required value type="text" style="width:60%;">
                                    <input name="addr_d" id="addr_d" required value type="text" style="width:30.5%;" placeholder="³ª¸ÓÁö »ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇϼ¼¿ä.">
                                </td>
                            </tr>
                            <tr>
                                <th style="border-left:2px solid #acacac; line-height:26px;">* ¹æ¹®¿äû³»¿ë<br>&nbsp;&nbsp;-¾÷¹«ÇüÅÂ<br>&nbsp;&nbsp;-µµÀÔ»çÀ¯</th>
                                <td colspan="3"><textarea name="content1" id='content1' type="text" style="width:95%;" placeholder="Æí¸®ÇÑ ¾÷¹«ºÐ¼®À» À§ÇØ
¾÷¹«ÇüÅÂ, µµÀÔ¸ñÀû, Á÷¿ø¼ö, À¯Àú¼ö(»ç¿ëÀÚ¼ö) µîÀ» ¾Æ´Âµ¥ ±îÁö °£´ÜÈ÷ Àû¾îÁÖ¼¼¿ä."></textarea></td>
                            </tr>
                        </tbody>
                    </table>
                    <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>
</form>
                    <div class="vst_btn">¹æ¹®½ÅûÇϱâ</div>
                    <div class="price_cs_btn" style="margin-left:10px;background:#4a4c4e;"><a href="http://mjsoft.co/html/millennium/customerprice.php" target="_blank">°ßÀû¿äû ¹Ù·Î°¡±â</a></div>
                    <div class="price_cs_btn" style="margin-left:10px;background:#4a4c4e;"><a href="http://mjsoft.co/html/millennium/customer_buy_cs.php" target="_blank">±¸¸Å»ó´ã ¿äûÇϱâ</a></div>
                    <div class="show_program_customer2">³»°Ô ¸Â´Â Á¦Ç°Ã£±â</div>
                </div>
        </div><!-- //contents -->
    </div><!-- //wrap -->
    <?
        $cust_list_title 
"¹æ¹®»ó´ã ½Åû ¸®½ºÆ®";
        include 
"customer_education_list.php";
    
?>
<script>
function postSearch3(zip1,zip2,addr1){
    new daum.Postcode({
        oncomplete: function(data) {
        // ÆË¾÷¿¡¼­ °Ë»ö°á°ú Ç׸ñÀ» Å¬¸¯ÇßÀ»¶§ ½ÇÇàÇÒ Äڵ带 ÀÛ¼ºÇϴ ºÎºÐÀÔ´Ï´Ù.
        // ¿¹Á¦¸¦ Âü°íÇÏ¿© ´Ù¾çÇѠȰ¿ë¹ýÀ» È®ÀÎÇØ º¸¼¼¿ä.
            zoncode1 = data.zonecode.substring(0,3);
            zoncode2 = data.zonecode.substring(3,5);

            if(1==1){ // 5ÀÚ¸® ¿ìÆí¹øÈ£ »ç¿ë  ÀÌÀü²¨ »ç¿ë½Ã¿£ 1==2·Î ¼¼ÆÃ
                $("#"+zip1).val(data.zonecode);
                /*$("#"+zip1).val(zoncode1);    $("#"+zip2).val(zoncode2);*/
            } else {
                $("#"+zip1).val(data.postcode1);
                $("#"+zip2).val(data.postcode2);
            }

              // °¢ ÁÖ¼ÒÀÇ ³ëÃâ ±ÔÄ¢¿¡ µû¶ó ÁÖ¼Ò¸¦ Á¶ÇÕÇÑ´Ù.
            // ³»·Á¿À´Â º¯¼ö°¡ °ªÀÌ ¾ø´Â °æ¿ì¿£ °ø¹é('')°ªÀ» °¡Áö¹Ç·Î, À̸¦ Âü°íÇÏ¿© ºÐ±â ÇÑ´Ù.
            var fullAddr = ''; // ÃÖÁ¾ ÁÖ¼Ò º¯¼ö
            var extraAddr = ''; // Á¶ÇÕÇü ÁÖ¼Ò º¯¼ö

            // »ç¿ëÀÚ°¡ ¼±ÅÃÇÑ ÁּҠŸÀÔ¿¡ µû¶ó ÇØ´ç ÁÖ¼Ò °ªÀ» °¡Á®¿Â´Ù.
            if (data.userSelectedType === 'R') { // »ç¿ëÀÚ°¡ µµ·Î¸í ÁÖ¼Ò¸¦ ¼±ÅÃÇßÀ» °æ¿ì
                fullAddr = data.roadAddress;

            } else { // »ç¿ëÀÚ°¡ Áö¹ø ÁÖ¼Ò¸¦ ¼±ÅÃÇßÀ» °æ¿ì(J)
                fullAddr = data.jibunAddress;
            }

            // »ç¿ëÀÚ°¡ ¼±ÅÃÇÑ ÁÖ¼Ò°¡ µµ·Î¸í Å¸ÀÔÀ϶§ Á¶ÇÕÇÑ´Ù.
            if(data.userSelectedType === 'R'){
                //¹ýÁ¤µ¿¸íÀÌ ÀÖÀ» °æ¿ì Ãß°¡ÇÑ´Ù.
                if(data.bname !== ''){
                    extraAddr += data.bname;
                }
                // °Ç¹°¸íÀÌ ÀÖÀ» °æ¿ì Ãß°¡ÇÑ´Ù.
                if(data.buildingName !== ''){
                    extraAddr += (extraAddr !== '' ? ', ' + data.buildingName : data.buildingName);
                }
                // Á¶ÇÕÇüÁÖ¼ÒÀÇ À¯¹«¿¡ µû¶ó ¾çÂÊ¿¡ °ýÈ£¸¦ Ãß°¡ÇÏ¿© ÃÖÁ¾ ÁÖ¼Ò¸¦ ¸¸µç´Ù.
                extraAddr = (extraAddr !== '' ? ' ('+ extraAddr +')' : '');
            }

            $("#"+addr1).val(fullAddr+" "+extraAddr+" ");
            $("#addr_d").focus();
        }
    }).open();
}

$(function(){
    $(".show_program_customer2").css("cursor","pointer").click(function(){ //¿¥Á¦ÀÌ ¼ÒÇÁÆ®¶õ ÆË¾÷ó¸®
        main_popup_show("http://mjsoft.co/html/millennium/index_new_program_new2.php","725","900","³ª¿¡°Ô ¸Â´Â Á¦Ç°Ã£±â");
    });

    $(".vst_btn").click(function(){

        if( visit_form.formText[1].checked == true){
            alert('°³ÀÎÁ¤º¸ Ãë±Þ¹æÄ§¿¡ µ¿ÀÇ ÇϼžߠÇÕ´Ï´Ù.');
            return ;
        }
        
        if( visit_form.subject.value == ""){
            alert("»óÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.");
            visit_form.subject.focus();
            return;
        }
        
        if( visit_form.name.value == ""){
            alert("´ã´çÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.");
            visit_form.name.focus();
            return;
        }
        
        if( visit_form.tel1.value == "" || visit_form.tel2.value == "" || visit_form.tel3.value == ""){
            alert("¿¬¶ô󸦠ÀÔ·ÂÇϼ¼¿ä.");
            visit_form.tel1.focus();
            return;
        }

        if( visit_form.emp_num.value == ""){
            alert("Á÷¿ø¼ö¸¦ ÀÔ·ÂÇϼ¼¿ä.");
            visit_form.emp_num.focus();
            return;
        }

        if( visit_form.addr_m.value == "" || visit_form.addr_d.value == ""){
            alert("Áö¿ª(ÁÖ¼Ò)¸¦ ÀÔ·ÂÇϼ¼¿ä.");
            visit_form.addr_d.focus();
            return;
        }
        
        /*if( jointinsertFrm.hp1.value == ""){
            alert("ÇÚµåÆù ¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.");
            jointinsertFrm.hp1.focus();
            return;
        }*/
        
        
        if(document.getElementById("content1").value == ""){
            alert('¹æ¹®¿äû³»¿ëÀ» ÀÔ·ÂÇØ ÁֽʽÿÀ.');
            return ;
        }

        if(confirm('¹æ¹®»ó´ã¿äûÀ» ½ÅûÇϽðڽÀ´Ï±î?')){
            visit_form.action = "<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/consultationBoardP.php<?php } else {?>consultationBoardP.php<?php }?>";
            visit_form.submit();
        }
    });        
});

function main_popup_show(url,v_width,v_height,v_title){
    $("#pop_box_iframe2").attr("src","");
    $("#modal_member_box2").dialog({
        resizable: true, height:v_width, width:v_height, modal: true, title: v_title,
        show : {effect:'blind',duration:500},
        buttons: {
            ´Ý±â: function() {
                $( this ).dialog( "close" );
            }
        },
        close: function() {
            $("#pop_box_iframe2").attr("src","");
        }
    });
    setTimeout(function(){
        $("#pop_box_iframe2").attr("src",url);        
    },500);
}


function dialog_close(){
    $("#modal_member_box").dialog( "close" );
}

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