/home/mjc1/public_html/html/millennium/demo_download.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
<style>
/*원격설치*/
.error_area {position:relative;display:block;margin:0 auto;/* width:990px; */}
/* #download1, #download2 { position:absolute;width:430px;height:280px;background:url('./images/banner_cs3/download_bg_1.png') no-repeat;z-index: 100;} */
#manual { position:absolute; padding:2px 0 0; width:200px; height:37px; background:url('./images/millennium/btn_area2.png') no-repeat; z-index: 100;}
#manual .manual_txt {color:#ff6600;height:19px;font-size:13px;text-align:center;font-weight:600;letter-spacing:-1px;}
/* .error_area .text {margin:0 0 5px;padding:65px 0 0;color:#555;font-size:13px;text-align:center;letter-spacing:0.5px;} */
/* .error_area .big {font-size:16px;font-weight:600;line-height:17px;} */
/* .orange {color:#ff6600;font-weight:600;}
.sky {color:#585CBD;font-weight:600;} */

/* .close_btn {position:absolute;top:15px;right:15px;width:50px;height:50px;cursor:pointer;} */
/* .btn_area {width:265px;margin:0 auto;} */
.btn_area .install_btn {margin-left:5px;}
.orange_btn {
    display:block;float:left;width:130px;height:45px;line-height:45px;
    color:#fff;font-size:14px;font-weight:600;text-align:center;text-decoration:none;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ff8400), color-stop(1, #db5304));
    background:-moz-linear-gradient(top, #ff8400 5%, #db5304 100%);
    background:-webkit-linear-gradient(top, #ff8400 5%, #db5304 100%);
    background:-o-linear-gradient(top, #ff8400 5%, #db5304 100%);
    background:-ms-linear-gradient(top, #ff8400 5%, #db5304 100%);
    background:linear-gradient(to bottom, #ff8400 5%, #db5304 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8400', endColorstr='#db5304',GradientType=0);
    background-color:#ff8400;
    -moz-border-radius:4px;
    -webkit-border-radius:4px;
    border-radius:4px;
}
.orange_btn:hover {
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #db5304), color-stop(1, #ff8400));
    background:-moz-linear-gradient(top, #db5304 5%, #ff8400 100%);
    background:-webkit-linear-gradient(top, #db5304 5%, #ff8400 100%);
    background:-o-linear-gradient(top, #db5304 5%, #ff8400 100%);
    background:-ms-linear-gradient(top, #db5304 5%, #ff8400 100%);
    background:linear-gradient(to bottom, #db5304 5%, #ff8400 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#db5304', endColorstr='#ff8400',GradientType=0);
    background-color:#db5304;
}.green_btn {
    display:block;float:left;width:130px;height:45px;line-height:45px;
    color:#fff;font-size:14px;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;
}
.green_btn: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;
}


.ui-dialog{padding:0px;border:0px;border-radius:0px;background:transparent;}
.ui-widget-header{background:none;border:0px;height:42px;border-radius:0px;}
.ui-dialog-title{font-size:0px;overflow:visible !important;position:relative;}
.ui-dialog-title::before{content:'';position:absolute;top:10px;left:0px;width:129px;height:25px;background:url('images/ui_icons/head_title.png') no-repeat;}
.ui-button{width:32px !important; height:32px !important; border:0px !important;border-radius:0px !important;background:transparent !important;top:32% !important;-webkit-appearance: none; -moz-appearance: none; appearance: none;}
.ui-button-icon-primary{width:32px !important;height:32px !important; background:url('images/ui_icons/button_close.png') no-repeat !important;margin:0px !important;left:0 !important;top:0% !important;}
.ui-button-text{padding:0px !important;}
#modal_member_box{padding: 0px !important;background:#fff;}
#modal_member_box #pop_box_iframe body{display:flex !important;justify-content:center !important;}
.ui-widget-overlay{background:#000;opacity:.8;}
button:focus, button:active {outline: none;box-shadow: none;}

/* 23.08.03수정 */
#download1, #download2{position: absolute;width: 440px;height: 336px;z-index: 100;}
.error_area .header{width: 100%;height: 48px;border-radius: 20px 20px 0px 0px;background: #282A39;color: #fff;text-align: center;font-size: 19px;font-weight: 600;line-height: 48px;margin: 0px !important;}
.error_area .content{width: 100%;height: 288px;border-radius: 0px 0px 20px 20px;background: #fff;text-align: center;box-sizing: border-box;border: 2px solid #9A9EBA;border-top: 0px;}
.btn_area{width: 320px !important;margin: 0 auto;}
.btn_area .purple_btn{display: inline-block;width: 152px;height: 48px;line-height: 48px;border-radius: 10px;font-size: 16px;letter-spacing: -1.2px;background: #848BBB;color: #fff;text-align: center;font-weight: 600;cursor: pointer;}
.btn_area .purple_btn:hover{background: #4451B1;}
.btn_area .orange_btn{display: inline-block;width: 152px;height: 48px;line-height: 48px;border-radius: 10px;font-size: 18px;letter-spacing: -1.2px;background: #E99976;color: #fff;text-align: center;font-weight: 600;cursor: pointer;}
.btn_area .orange_btn:hover{background: #F0713A;}
.text .orange{color: #F14848;}
.error_area .close_btn {position:absolute;top:15px !important;right:26px !important;width:18px !important;height:18px !important;cursor:pointer;}
.error_area .close_btn img{position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;}
</style>

<!--무료설치 -->    
<div class="error_area" style="position: fixed;z-index: 99;">
    <div id="download1">
        <div class="header">원격설치(교육)요청<a class="close_btn"><img src="./images/banner_cs3/close_btn.svg" alt="닫기"></a></div>
        <div class="content">
            <div class="text" style="border-bottom: 1px dashed #808080;font-size: 16px;line-height: 18px;padding: 18px 0px;">
                설치가 안될 때 <span class="big orange" style="font-weight: normal;">바이러스 때문이 아닙니다.</span><br>
                각종 보안설정으로 설치가 안될 수 있습니다.
            </div>
            <div class="text" style="margin-top: 32px;margin-bottom: 21px;font-size: 18px;line-height: 22px;">
                직접 설치가 안되면 <span class="big orange">원격설치(교육)</span> 요청을 해 주세요.<br>
                교육전문가가 <span class="orange" style="font-weight: normal;">20분내 원격</span>으로 설치 해 드립니다.
            </div>
            <div class="btn_area">
                <a  onclick="$('#download1').hide();" class="orange_btn" value="/download/MJmanagement3CS_setup.exe">직접설치</a>
                <a class="install_btn /green_btn purple_btn" value='82'>원격설치(교육)요청</a>
            </div>
            <div class="text" style="margin-top: 26px;font-size: 18px;line-height: 18px;color: #333;">설치문의: <span style="font-size: 16px;font-weight: 600;">02)</span><span style="font-weight: 600;">401-5121 / 1566-8680</span></div>
        </div>
    </div>
    
    <div id="download2">
        <div class="header">원격설치(교육)요청<a class="close_btn"><img src="./images/banner_cs3/close_btn.svg" alt="닫기"></a></div>
        <div class="content">
            <div class="text" style="border-bottom: 1px dashed #808080;font-size: 16px;line-height: 18px;padding: 18px 0px;">
                설치가 안될 때 <span class="big orange" style="font-weight: normal;">바이러스 때문이 아닙니다.</span><br>
                각종 보안설정으로 설치가 안될 수 있습니다.
            </div>
            <div class="text" style="margin-top: 32px;margin-bottom: 21px;font-size: 18px;line-height: 22px;">
                직접 설치가 안되면 <span class="big orange">원격설치(교육)</span> 요청을 해 주세요.<br>
                교육전문가가 <span class="orange" style="font-weight: normal;">20분내 원격</span>으로 설치 해 드립니다.
            </div>
            <div class="btn_area">
                <a onclick="$('#download2').hide();" class="orange_btn" value="/download/MJmanagement3_setup.exe">직접설치</a>
                <a class="install_btn /green_btn purple_btn" value='81'>원격설치(교육)요청</a>
            </div>
            <div class="text" style="margin-top: 26px;font-size: 18px;line-height: 18px;color: #333;">설치문의: <span style="font-size: 16px;font-weight: 600;">02)</span><span style="font-weight: 600;">401-5121 / 1566-8680</span></div>
        </div>
    </div>
</div>


<!--정품사용자 체크창-->
<style>
.prod_chk_layer{position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);width: 420px;height: 480px;z-index: 999;/* padding: 30px;border: 2px solid #333; */}
.prod_chk_header{position: relative;width: 100%;height: 48px;border-radius: 20px 20px 0px 0px;background: #282A39;}
.prod_chk_header p{text-align: center;font-size: 19px;font-weight: 600;color: #fff;line-height: 48px;}
.input_info li{margin-bottom: 14px;height: 30px;line-height: 30px;}
.input_info li:last-child{margin-bottom: 0px;}
input[name="produser_chk"] + label{position: relative;font-size: 18px;padding-left: 32px;cursor: pointer;}
input[name="produser_chk"] + label::after{content: '';position: absolute;left:0px;top: 50%;transform: translateY(-50%);width: 22px;height: 22px;box-sizing: border-box;border: 2px solid #CACACA;background: #fff;}
input[name="produser_chk"]:checked + label::after{background: url('./images/check01.svg') 100% no-repeat #333;}
.input_info span{font-size: 18px;line-height: 30px;font-weight: 600;}
.input_info input{height: 30px;line-height: 26px;box-sizing: border-box;border: 2px solid #CACACA;padding: 0px 10px;}
.input_info input[name="company"], .input_info input[name="email"]{width: 290px;}
.input_info input[name="tel0"], .input_info input[name="tel1"], .input_info input[name="tel2"]{width: 83px;}
.demo_down_btn{width: 152px;height: 40px;background: #E99976;color: #fff;font-weight: 600;font-size: 16px;line-height: 40px;text-align: center;cursor: pointer;margin: 0px auto;border-radius: 10px;}
.demo_down_btn:hover{background: #F0713A;}
.prod_chk_close_btn{position: absolute;top: 15px;right: 20px;width: 18px;height: 18px;cursor: pointer;}
.prod_chk_close_btn img{width: 100%;height: 100%;line-height: 18px !important;}
</style>
<div class="prod_chk_layer" style="display: none;" data-value="">
    <div class="prod_chk_header"><p>체험판 설치</p><div class="prod_chk_close_btn"><img src="./images/banner_cs3/close_btn.svg"></div></div>
    <div style="background: #fff;border-radius: 0px 0px 20px 20px;border: 2px solid #9A9EBA;border-top: 0px;height: calc(100% - 48px);">
        <p style="text-align: center;font-size: 18px;line-height: 18px;font-weight: 600;padding: 20px 0px;border-bottom: 1px dashed #BBBBBB;">아래 정보 입력 후 체험판 다운로드 가능합니다.</p>
        <form name="produser_chk_form">
            <input type="hidden" name="loc" value="천년경영3 2종">
            <div style="padding: 20px 30px;border-bottom: 1px dashed #BBBBBB;"><input type="checkbox" name="produser_chk" id="produser_chk" hidden><label for="produser_chk">정품사용자 다운로드</label></div>
            <ul class="input_info" style="padding: 20px 30px;border-bottom: 1px dashed #BBBBBB;">
                <li><span>상호 : </span><input type="text" name="company" style="float: right;"></li>
                <li>
                    <span>전화 : </span>
                    <div style="float: right;width: 290px;display: flex;justify-content: space-between;">
                        <input type="text" name="tel0" maxlength="3" id="tel0" oninput="inputNum(this.id)"> - <input type="text" name="tel1" maxlength="4" id="tel1" oninput="inputNum(this.id)"> - <input type="text" name="tel2" maxlength="4" id="tel2" oninput="inputNum(this.id)">
                    </div>
                </li>
                <li><span>메일 : </span><input type="text" name="email" style="float: right;"></li>
            </ul>
        </form>
        <p style="text-align: center;font-size: 18px;line-height: 1.5;margin-top: 15px;margin-bottom: 25px;font-weight: 600;color: #333333;">
            <span style="font-weight: 400;">설치문의:</span> <span style="font-size: 16px;">02)</span>401-5121<br>1566-8680
        </p>
        <div class="demo_down_btn">다운로드</div>
    </div>
</div>

<script>
$(function(){
    $('.btn_area .orange_btn').click(function(){
        $('.prod_chk_layer').show();
        var $val = $(this).attr('value'); //다운로드받는 프로그램 파일종류 구분
        console.log($val);
        $('.prod_chk_layer').attr('data-value', $val);
    });
    
    $('.prod_chk_close_btn').click(function(){
        $('.prod_chk_layer').hide();
    });
    
    /*
    $('#produser_chk').click(function(){
        var $val2 = $('.prod_chk_layer').attr('data-value');
        console.log($val2);
        if($('input[name="produser_chk"]').is(':checked')){ //정품사용자 체크했을 경우
            window.open('./login_demo.php?url=millennium_demo.php&file_name=' + $val2,'','width=440,height=350,menubar=no,location=no,toolbar=no,scrollbars=yes');
        }
    });
    */

    $('.demo_down_btn').click(function(){ //다음 버튼 클릭시 파일다운로드 처리
        var $val2 = $('.prod_chk_layer').attr('data-value');
        if($('input[name="produser_chk"]').is(':checked')){ //정품사용자 체크된 경우
            
            <?php  if( isset($_COOKIE['USERID']) && $_COOKIE['USERID'] !== "" ){ ?>
            location.href= $val2 ;
            $('input[name="produser_chk"]').prop('checked', false);
            $("input[name='company']").prop('value', '');
            $("input[name='tel0']").prop('value', '');
            $("input[name='tel1']").prop('value', '');
            $("input[name='tel2']").prop('value', '');
            $("input[name='email']").prop('value', '');
            $('.prod_chk_layer').hide();

            <?php } else { ?>
            window.open('./login_demo.php?url=millennium_demo.php&file_name=' + $val2,'','width=440,height=350,menubar=no,location=no,toolbar=no,scrollbars=yes');
            <?php ?>

        } else { //정품사용자 체크 안된 경우
            //상호,전화번호,메일주소 정보 가져옴
            //상호 입력됐는지 확인
            if($("input[name='company']").val() == "") { alert("상호를 입력해주시기 바랍니다."); return; }
            //상호에 엠제이 혹은 엠제이소프트가 들어갔는지 확인
            if($("input[name='company']").val().includes("엠제이") || $("input[name='company']").val().includes("엠제이소프트")) {
                alert("사용하실 수 없는 상호입니다. 다시 입력해주세요.");
                return;
            }
            //전화번호 입력됐는지 확인
            if($("input[name='tel0']").val() == "" || $("input[name='tel1']").val() == "" || $("input[name='tel2']").val() == "") {
                alert("전화번호를 입력해주시기 바랍니다."); return;
            }
            //메일 입력됐는지 확인
            if($("input[name='email']").val() == "") { alert("이메일을 입력해주시기 바랍니다."); return; }

            var form_data = $("form[name='produser_chk_form']").serialize();

            $.ajax({type:"post", url:"ajax.file_download_setting.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();
                    if(v_mode_ok!='Y'){
                        alert(v_msg);
                    } else {
                        location.href= $val2 ;
                        $('input[name="produser_chk"]').prop('checked', false);
                        $("input[name='company']").prop('value', '');
                        $("input[name='tel0']").prop('value', '');
                        $("input[name='tel1']").prop('value', '');
                        $("input[name='tel2']").prop('value', '');
                        $("input[name='email']").prop('value', '');
                        $('.prod_chk_layer').hide();
                    }
                },
                error:function(rtn,status,error){    alert(error);        }
            });
        }
    });
});

function inputNum(id) {
    var element = document.getElementById(id);
    element.value = element.value.replace(/[^0-9]/gi, "");
}
</script>
<!--//정품사용자 체크창-->