/home/mjc1/public_html/html/millennium/install_req2.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
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
306
307
<?php include_once("./_common3.php"); ?>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <style>
    /* 숨김요소 */
    .screen_out{ visibility:hidden; overflow:hidden; position:absolute; left:-9999px; width:0; height:0; font-size:0; line-height:0;}
    table {border-collapse: collapse;border-spacing:0;border:0 none;}
    #install p {margin:0;padding:0;}
    .blue {color:#2781fd;font-weight:600;}
    .orange {color:#f75a0e;font-weight:600;}
    #install {/* padding:89px 50px; */padding:50px 40px;width:100%;z-index:100;background:#fff;box-sizing: border-box;height: 100%;}
    #install .notice {margin:0 0 7px;color:#555;font-size:15px;text-align:center;line-height:120%;}
    #install .notice span {font-weight:600;}

    #install .tip {margin:0 0 7px;color:#555;font-size:19px;text-align:center;line-height:120%;}
    #install .tip span {font-weight:600;}
    #install .tip .small {font-size:14px;font-weight:400;}
    /*#install .tip .blank {text-indent:15px;}*/
    #install .tieupTable {margin:10px 0 0;}
    #install .tieupTable th.top_bd,
    #install .tieupTable td.top_bd {border-top:2px solid #627aaf;}
    #install .tieupTable th{height:35px;font-size:13px;font-weight:600;line-height:35px;border-bottom:1px solid #e7e7e7;background:#f8f8f8;}
    #install .tieupTable td{padding-left:10px;font-size:13px;line-height:25px;border-bottom:1px solid #e7e7e7;}
    
    /* #install input */
    #shop {/* width:180px; */width: 100%;box-sizing: border-box;}
    #name {width:180px;box-sizing: border-box;}
    #tel {/* width:465px; */width: 100%;box-sizing: border-box;}

    #install .btnArea {display:block;padding:15px 0 0;width:100%;height:48px; text-align:center;}
    #install .btnArea .submit_btn {margin:0 auto;text-align:center; }
    #install .txt {margin:7px 0 0;font-size:14px;text-align:center;letter-spacing:-0.5px;}
    #install .agree {margin:5px 0 0;font-size:13px;text-align:center;font-weight:600;}
    #install .agree label {margin-left:5px;cursor:pointer;}
    #install .agree .gray_btn2 {margin-left:10px;padding:3px 5px;text-decoration:none;background:#DDD;color:#000;}
    
    #install .comment {margin:10px 0 0;font-size:13px;text-align:center;}
    .btnGreen {
        display:block;width:130px;height:38px;line-height:38px;
        color:#fff !important;font-size:12px;font-weight:600;text-align:center;text-decoration:none;
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #9cc720), color-stop(1, #7da117));
        background:-moz-linear-gradient(top, #9cc720 5%, #7da117 100%);
        background:-webkit-linear-gradient(top, #9cc720 5%, #7da117 100%);
        background:-o-linear-gradient(top, #9cc720 5%, #7da117 100%);
        background:-ms-linear-gradient(top, #9cc720 5%, #7da117 100%);
        background:linear-gradient(to bottom, #9cc720 5%, #7da117 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#9cc720', endColorstr='#7da117',GradientType=0);
        background-color:#9cc720;
        -moz-border-radius:4px;
        -webkit-border-radius:4px;
        border-radius:4px;
        cursor:pointer;
    }
    .btnGreen:hover {
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #7da117), color-stop(1, #9cc720));
        background:-moz-linear-gradient(top, #7da117 5%, #9cc720 100%);
        background:-webkit-linear-gradient(top, #7da117 5%, #9cc720 100%);
        background:-o-linear-gradient(top, #7da117 5%, #9cc720 100%);
        background:-ms-linear-gradient(top, #7da117 5%, #9cc720 100%);
        background:linear-gradient(to bottom, #7da117 5%, #9cc720 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#7da117', endColorstr='#9cc720',GradientType=0);
        background-color:#7da117;
    }

    
    /* #checkbox */
    .checkbox_con{font-size:14px;text-align:center;font-weight:600;}
    .checkbox_con1{font-size:14px;text-align:center;font-weight:600;color:#000;}
    .checkbox_time{width:20px;font-size:12pt;color:#2781fd;border:1px solid #2781fd;z-index:999;}
    .checkbox_call{text-align:left; padding-top:15px;}
    .calendar{position:relative;width:80px;height:15px;border:1px solid #2781fd;color:#000;z-index:999;}
    
    /* #calendar */
    #calendar_btn{width:20px; height:19px;border: 0; padding:0;overflow:hidden; position:relative;left:3px;top:5px;cursor:pointer;}
    #calendar_btn span{background: url(./img/buy/install_calendar_btn.png) no-repeat;width:20px;height:20px;position: absolute;top:0px;left:0px;}
    
    /* time-select */
    select{position:relative;width:60px;height:21px;top:0.5px;margin:0px;color:#000; border:1px solid #2781fd; border-radius:0px;font-size:12pt;
     background: url(./img/buy/install_calendar_arrow.png) no-repeat 100% 50%;-webkit-appearance:none; appearance:none;}
    select::-ms-expand{display:none;}

    #ct_date { font-size:0.9em;}
    .ct_time {position:relative; top:3.5px;}
    
    /* 23.09.11 남상복 추가수정 */
    #install{padding: 20px 30px !important;}
    #install .tip{margin: 0px;padding-bottom: 20px;border-bottom: 1px dashed #808080;}
    #install .tip .small{font-weight: 600;}
    #install .tieupTable th{border: 0px !important;background: transparent !important;font-size: 16px !important;padding: 0px;padding-bottom: 10px;height: 30px;line-height: 30px;vertical-align: top;}
    #install .tieupTable td{border: 0px !important;}
    #install .tieupTable th.top_bd, #install .tieupTable td.top_bd{border-top: 0px !important;}
    #install .tieupTable td{line-height: 30px;padding-bottom: 10px;border: 0px;}
    .tieupTable td input{height: 30px;line-height: 26px;padding: 0px;box-sizing: border-box;border: 2px solid #CACACA;padding-left: 10px;}
    #install .tieupTable td ul {display:flex; align-items:center;}
    #install .tieupTable td ul li {margin-right:10px}
    #install .tieupTable td ul li input {height:auto}

    [name="contact_time"]{width: 20px;height: 20px !important;line-height: 20px !important;margin-right: 8px;}
    [name="contact_time"] + label{display: inline-block;line-height: 20px;font-size: 16px;cursor: pointer;}
    input[name="ct_date"]{width: 100px;height: 25px !important;line-height: 21px !important;border: 2px solid #CACACA !important;}
    input[name="ct_date"] + img{margin-left: 8px;margin-right: 18px;cursor: pointer;}
    select[name="ct_hour"], select[name="ct_minute"]{line-height: 21px;height: 25px;border: 2px solid #CACACA !important;width: 70px;padding-left: 4px;cursor: pointer;}
    select[name="ct_hour"]{margin-right: 15px;}

    #install .btnArea .submit_btn{display: block;width: 162px;height: 48px;border-radius: 10px;background: #848BBB;font-size: 18px;font-weight: bold;color: #fff;line-height: 48px;text-align: center;cursor: pointer;}
    #install .btnArea .submit_btn:hover{background: #4451B1;}
    .movie_btn{display: inline-block;width: 162px;height: 48px;border-radius: 10px;font-size: 18px;font-weight: bold;color: #fff;line-height: 48px;text-align: center;background: #E99976;color: #fff !important;}
    .movie_btn:hover{background: #F0713A;}
    #install .red{color: #F14848;}

    #ui-datepicker-div{background: #fff !important;border: 2px solid #5b5b5b !important;}
    #ui-datepicker-div .ui-widget-header{background: #fff !important;border: 0px !important;}
    </style>

</head>

<body style="background:none;">
<div id="install">
    <div class="tip">
        <p><span class="red">1개월 무료 체험시</span> 지원됩니다.</p>
        <p>설치 요청 후 <span class="red">30분 이내 연락</span> 드립니다.<br>
        <span class="small" style="font-weight: bold;">- 업무시간외 요청은 업무시작 후 전화 드립니다.</span>
        </p>
    </div>

    <form name='install_form' method='post' action='?' onsubmit='return false;'>
        <input type="hidden" name='smtitle' id="smtitle" value='<?php echo $smtitle;?>' size=1>
        <input type='hidden' name='come_from' value='mjsoft.co'>
        <table class="tieupTable" style="width:100%;">
            <caption class="screen_out">설치요청신청</caption>
            <colgroup>
                <col style="width:15%"><col style="width:35%"><col style="width:15%"><col style="width:35%">
            </colgroup> 
            <tbody>
            <tr>
                <th class="top_bd">상호(성명):</th>
                <td class="top_bd" colspan="3"><input type="text" name='smname' placeholder="상호" id="shop"></td>
                <!-- <th>담당자명:</th>
                <td><input type="text" name='telname' placeholder="담당자명" id="name"></td> -->
            </tr>
            <!-- 20250131 팝업 수정사항-->
            <tr>
                <th>전화번호:</th>
                <td colspan='3'><input type="text" name='smtel' placeholder="전화번호" id="tel"></td>
            </tr>
            <!-- <tr>
                <th>유입경로</th>
                <td colspan='3'>
                    <input type="hidden" name="inflow_txt" value="">
                    <ul>
                        <li>
                            <label for="check1">검색</label>
                            <input id="check1" class="edc_chk" type="checkbox" name="inflow_chk" value="검색">
                        </li>
                        <li>
                            <label for="check2">인터넷자료</label>
                            <input id="check2" class="edc_chk" type="checkbox" name="inflow_chk" value="인터넷자료">
                        </li>
                        <li>
                            <label for="check3">지인추천</label>
                            <input id="check3" class="edc_chk" type="checkbox" name="inflow_chk" value="지인추천">
                        </li>
                        <li>
                            <label for="check4">유튜브</label>
                            <input id="check4" class="edc_chk" type="checkbox" name="inflow_chk" value="유튜브">
                        </li>
                        <li>
                            <label for="check5">기타</label>
                            <input id="check5" class="edc_chk" type="checkbox" name="inflow_chk" value="기타">
                        </li>
                    </ul>                    
                </td>
            </tr>  -->
            <tr>
                <th>요청시간:</th>
                <td colspan='3'>
                    <input type="radio" class="ct_time" name="contact_time" id="time_20min" value='1' checked><label for="time_20min"><span>30분이내 연락요망</span></label><br>

                    <input type="radio" class="ct_time" name='contact_time' id="time_other" value='0'><label for="time_other"><span>다른시간 &nbsp;: &nbsp;</span></label>
                    <input type="text" class="calendar" name='ct_date' style="border:1px solid #2781fd;" id='ct_date' placeholder="달력선택" readonly><!--calendar icon-->
                    <label for="checkbox_2_1"  class="checkbox_con2">
                    <select name='ct_hour' id='ct_hour'>
                        <option value="">시</option>
                        <option value="09">09시</option>
                        <option value="10">10시</option>
                        <option value="11">11시</option>
                        <option value="13">13시</option>
                        <option value="14">14시</option>
                        <option value="15">15시</option>
                        <option value="16">16시</option>
                        <option value="17">17시</option>
                    </select>
                    <select name='ct_minute' id='ct_minute'>
                        <option value="">분</option>
                        <option value="00">00분</option>
                        <option value="10">10분</option>
                        <option value="20">20분</option>
                        <option value="30">30분</option>
                        <option value="40">40분</option>
                        <option value="50">50분</option>
                    </select>
                </td>
            </tr>
            </tbody>
        </table>
        
        </form>
    <!-- <p class="txt" style="font-size: 19px;padding-top: 16px;border-top: 1px dashed #808080;margin-bottom: 10px;">설치요청 시 <span class="red" style="font-weight:600">원격설치 및 교육 지원</span>됩니다.</p> -->
    <p class="agree"><input type="checkbox" id="agree"><label for="agree" style="font-size: 14px;">개인정보 수집에 동의함</label>
    <a href="./privacy.php" target="_blank" class="gray_btn2" style="width: 124px;height: 24px;line-height: 24px;display: inline-block;padding: 0px;">개인정보취급방침</a></p>
    <p class="comment" style="font-size: 14px;">※ 수집된 정보는 해당 목적 외 다른 용도로 사용되지 않습니다.</p>
    <div class="btnArea" style="padding-top: 20px;">
        <a class="submit_btn /btnGreen" style="display: inline-block;margin-right: 10px;">설치요청 등록</a>
        <?php if($flg != "joylent") { // /joylent.php페이지에서 다운로드할 경우 동영상강의 코멘트 ?>
        <a href="./customermovie.php" target="_blank" class="movie_btn" style="">동영상 강의</a>
        <?php ?>
    </div>
    <p class="/blue" style="color: #333333;text-align: center;font-size: 18px;margin-top: 10px;">설치문의 : <em style="font-weight: bold;">02) 401-5121 / 1566-8680</em></p>
</div><!--//install-->
 
<script>

$(function(){
    $("#ct_date").datepicker({
        showOn: "button",
        buttonImage: "./img/buy/install_calendar_btn.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: '년'
    });        
    setTimeout(function(){
        //$("#modal_member_box").css("height","450px");
    },200);

    $("input[name='contact_time']").eq(1).click(function(){
        $(".calendar").val('<?php echo date("Y-m-d",time());?>');
    });
})


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

    /*var inflow_txt = "";
    var inflow_cnt = 0;
    $("input[name='inflow_chk']").each(function(){
        if($(this).is(":checked") == true) {
            inflow_cnt++;
            inflow_txt += $(this).val()+",";
        }
    });
    if(inflow_cnt <= 0) {
        alert("유입경로를 선택해주세요."); return;
    }
    if(inflow_txt != "") {
        inflow_txt = inflow_txt.substr(0, inflow_txt.length - 1);
        $("input[name='inflow_txt']").val(inflow_txt);
    }*/

    if($("#shop").val()==''){
        alert('상호명을 입력하세요.'); return;
    }
    /*if($("#name").val()==''){
        alert('담당자명을 입력하세요.'); return;
    }*/
    if($("#tel").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($("#agree").is(":checked")==false){
        alert('개인정보 수집에 동의함 체크를 하시기 바랍니다.'); return;
    }
    form_data = $("form[name='install_form']").serialize();
    $.ajax({type:"post", url:"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+'드리겠습니다.');
                $("#modal_member_box").dialog("close");
            } else {
                alert(v_msg);
            }
        },
        error:function(rtn,status,error){    alert(error);        }
    });
});    
</script>
</body>
</html>