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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
<? include("./include/header.php"); ?> </div> <style> .container{margin:20px 0;padding:0 15px;} .container section, .container table {width:100%;border:2px solid #383a7d;border-top:0px none;background-color:#fff;font-size:12px;} </style> <?php //24.05.03 ~ 05.07, 남상복 수정, 홍재원 팀장님 요청 //해당페이지는 업무용 소프트웨어 개발상담요청 접수하기 위한 입력화면입니다 //해당페이지에서 작성된 내용은 mj관리자-개발상담요청 게시판에서 확인할 수 있습니다. ?>
<style> .install_container{margin:0 auto;/* padding:0 15px; */width:90%;text-align:center;} /*font style*/ .blue {color:#2781fd;font-weight:600;} .orange {color:#f29320;font-weight:bold;} .white{color:#fff;padding:5px 10px;font-size:13px;background:#585757;cursor:pointer;} .small {font-size:12px;font-weight:400;line-height:150%;} /*상담요청 작성*/ .install_center{text-align:center;/* max-width:300px; */ width:100%;margin:0 auto;} .install_table{text-align:left;font-weight:bold;font-size:14pt;margin:20px 0 5px;line-height:150%;}
.install_table > div > h3{margin:15px 0 10px;font-size:16px;line-height: 20px;font-weight:bold;} .install_table input[type=text]{box-sizing:border-box;border: 2px solid #E0E0E0;border-radius: 0px;width: 100%;height: 40px;line-height: 38px;background: #fff;font-size: 16px;} .install_table input[type=text]:focus{background-color: #fff;outline: none;} .install_table .phone_list select, .install_table .phone_list input[type=text]{width: calc((100% - 30px)/3);}
.install_table textarea{width: 100%;height: 200px;box-sizing: border-box;padding: 10px;border: 2px solid #E0E0E0;border-radius: 0px;resize: none;background: #fff;} .install_table textarea:focus{background-color: #fff;outline: none;} /*개인정보동의*/ .install_agree > .agree label{font-size:11pt;font-weight:bold;display: inline-block;} #agree + label{width: 52%;max-width: 168px;height: 28px;background: url('./images/install/btn_install_agree.svg') no-repeat 0%;background-size: contain;} #agree:checked + label{background: url('./images/install/btn_install_agree_on.svg') no-repeat 0%;background-size: contain;} .btn_privacy{background: url('./images/install/btn_privacy.svg') no-repeat 0%;background-size: contain;}
/*요청하기 버튼*/ .edc_chk{width: 20px;height: 20px;position: relative;top: 7px;border: 0;padding: 0;}
/*23.08.21 수정*/ em.orange{color: #FF8845;}
.phone_list div, .email_list [name="email"]{float: right;width: 74% !important;} .phone_list div{display: flex;justify-content: space-between;line-height: 40px;} .phone_list{margin-bottom: 10px;} .phone_list::after, .email_list::after{content: '';display: block;clear: both;} .phone_list label, .email_list label{line-height: 40px;margin-left: 5px;font-size: 18px;}
[name="return_date"]{width: calc(100% - 32px) !important;font-size: 16px;} .font_none{font-size: 0px !important;} .time_list{width: calc( (100% - 28px)/2 );float: left;} [name="return_time_type"], [name="return_time_type2"]{width: 45%;box-sizing:border-box;border: 2px solid #E0E0E0;border-radius: 0px;height: 40px;line-height: 38px;padding-left: 10px;font-size: 16px;font-weight: bold;} input[type="number"]{width: 30%;box-sizing:border-box;border: 2px solid #E0E0E0;border-radius: 0px;height: 40px;line-height: 38px;padding-left: 10px;font-size: 16px;margin-top: 10px;} .text{line-height: 40px;font-size: 18px;} #return_anytime{width: 20px;height: 20px;line-height: 40px;margin-top: 15px !important;} #return_anytime + label{font-size: 16px;letter-spacing: -0.2px;word-break: break-all;line-height: 20px;vertical-align: text-top;margin-left: 10px;} #return_anytime + label span{font-size: 14px !important;color: #838383;}
.agree span{float: right;display: inline-block;height: 28px;line-height: 28px;} .agree span input[type="radio"]{margin-right: 5px;} .agree span input[type="radio"] + label{margin-right: 20px;}
/*제품찾기 아이프레임 사이즈 축소*/ .ui-dialog iframe{ -ms-zoom: 0.38; -moz-transform: scale(0.38); -moz-transform-origin: 0 0; -o-transform: scale(0.38); -o-transform-origin: 0 0; -webkit-transform: scale(0.38); width: 850px; height: 700px; -webkit-transform-origin: 0 0; position: absolute; top: 10px; left: 0;} #modal_member_box{overflow:hidden} </style>
<div class="install_container" style="margin: 0px;margin-top:50px;width: 100%;padding: 0px !important;"> <div class="install_top" style="width: 100%;height: 290px;padding: 0px;position: relative;background: #88A2C9;overflow: hidden;"> <img src="./images/soft_cs/soft_title1_1.svg" alt="개발상담요청" style="position: absolute;left: 50%;transform: translateX(-50%);top: 17px;z-index: 9;max-width: 312px;width: calc(100% - 48px);"> <img src="./images/soft_cs/soft_title1_left.png" alt="개발상담요청배경" style="position: absolute;left: 0px;bottom: 0px;"> <img src="./images/soft_cs/soft_title1_right.png" alt="개발상담요청배경" style="position: absolute;right: 0px;bottom: 0px;"> </div> </div> <div class="install_container" style="padding-top: 0px !important;"> <!--상담요청 작성--> <div class="install_center"> <form name='soft_cs_form' method='post' action='?' onsubmit='return false;'> <input type="hidden" name="clicktime" id="clicktime" value="0"> <div class="install_table"> <div style="padding-bottom: 15px;border-bottom: 1px solid #444444;"> <h3>상호 <em class="orange"> *</em></h3> <input type="text" name="comp_name" id="comp_name"> <h3>성명</h3> <input type="text" name="name" id="name">
<h3>지역</h3> <input type="text" name="area" id="area"> </div> <div style="padding-bottom: 15px;border-bottom: 1px solid #444444;"> <h3>연락회신방법 <em class="orange"> *</em><span style="font-weight: normal;font-size: 14px;margin-left: 10px;">(둘 중 하나만 선택)</span></h3> <div class="phone_list"> <input type="radio" name="return_type" value='0' class="chk_type" id="return_type1" checked="checked" style="cursor: pointer;"><label for="return_type1" style="cursor: pointer;">전화</label> <div> <input type="text" name="tel1" maxlength="4" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');"><span>-</span> <input type="text" name="tel2" maxlength="4" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');"><span>-</span> <input type="text" name="tel3" maxlength="4" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');"> </div> </div> <div class="email_list"> <input type="radio" name="return_type" value='1' class="chk_type" id="return_type2" style="cursor: pointer;margin-top: 0px;"><label for="return_type2" style="cursor: pointer;">메일</label> <input type="text" name="email" style="margin-left:5px;margin-top: 0px;"> </div> </div> <div style="padding-bottom: 15px;border-bottom: 1px solid #444444;"> <h3>연락희망일시 <em class="orange"> *</em></h3> <div> <input type="text" name="return_date" id="return_date" value="" readonly> <div class="time_list"> <select name="return_time_type" id="return_time_type"> <option value="0">오전</option> <option value="1">오후</option> </select> <input type="number" name="return_hour" id="return_hour" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');" min="1" max="12"/> <span class="text">시</span> </div> <span style="font-size: 20px;font-weight: 600;line-height: 40px;margin: 10px 12px 0px 0px;float: left;">~</span> <div class="time_list"> <select name="return_time_type2" id="return_time_type2" style="margin-right: 5px;"> <option value="0">오전</option> <option value="1">오후</option> </select> <input type="number" name="return_hour2" id="return_hour2" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');" min="1" max="12"/> <span class="text" style="margin-top: 10px;">시</span> </div> </div> <div> <input type="checkbox" name="return_anytime" id="return_anytime" style="cursor: pointer;"> <label for="return_anytime">아무 때나 <br> <span>(희망일시 관계없이 '아무 때나'로 신청됩니다.)</span></label> </div> </div> <div style="padding-bottom: 15px;border-bottom: 1px solid #444444;"> <h3>개발할 업무내용 <em class="orange"> *</em><span style="font-weight: normal;font-size: 14px;margin-left: 10px;">(간략히)</span></h3> <textarea name="work_content" id="work_content" style="margin-bottom:10px;" placeholder="찾으시는 제품이나 귀사의 업무를 간단히 적어주시면 상담(견적)에 도움이 됩니다." ></textarea> </div> </div> </form> </div> <!--개인정보동의--> <div class="install_agree" style="padding-bottom: 15px;border-bottom: 1px solid #444444;margin-top:15px;text-align: left;"> <p class="agree" style="margin-bottom:10px;"> <a href="http://mjsoft.co/html/millennium/privacy.php" target="_blank" class="gray_btn2 btn_privacy" style="display: inline-block;width: 41%;max-width: 132px;height: 28px;"><!-- <span class="white">개인정보취급방침</span> --></a> <span> <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> </span> </p> <span class="small" style="font-size: 12px;line-height:19px;">※ 수집된 정보는 해당 목적 외 다른 용도로 사용되지 않습니다.</span> </div>
<div id="modal_member_box2" style="display:none;width:900px; height:615px; padding-top:15px;padding-left:17px;padding-right:3px;position:relative;"><iframe id='pop_box_iframe2' frameborder=0 src=''></iframe></div> <div id="modal_member_box3" style="display:none;padding-top:25px;padding-left:12px;padding-right:12px;position:relative;"></div><!--//팝업창-->
<style> .estimate_input_btn{width:100%;/* margin-left:1.5%; */margin:15px 0 15px;display: inline-block;} .cus_btn_on{width: 49%;background: #0071e5;height: 48px;border:none;color: #fff;border-radius: 8px;font-weight:600;margin-bottom: 10px;} .cus_btn_off{width: calc((100% - 12px)/3);float: left;background: #0071E5; height: 52px;border-radius: 8px;overflow: hidden;} .cus_btn_on{font-size: 16px;line-height: 48px;}
.cancel_btn{display: inline-block;width: 49%;height: 48px;color: #707070 !important;box-sizing: border-box;background-color: #fff;border: 2px solid #D9D9D9 !important;border-radius: 8px;font-size: 16px;line-height: 44px;font-weight: bold;} </style> <div class="estimate_input_btn"> <button type="submit" class="install_btn cus_btn_on">저장</button> <a href="./index.php" class="cancel_btn">취소</a> </div> </div> <script> $(function(){ $("#return_date, #return_date2").datepicker({//달력 showOn: "button", buttonImage: "./images/soft_cs/calendar.png", buttonImageOnly: true, buttonText: "Select date", dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true, prevText: '이전 달', nextText: '다음 달', 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: '년' });
$('[name="return_type"]').on('change', function(){ //연락회신방법 활성화,비활성화 var value = $(this).val(); if(value == 0){ //전화 선택한 경우, 메일주소 지우고, 비활성화, 전화 활성화 $('[name="email"]').val(''); $('[name="email"]').attr('disabled', true); $('[name="tel1"], [name="tel2"], [name="tel3"]').removeAttr('disabled');
} else{ //메일 선택한 경우, 전화번호 지우고, 비활성화, 메일 활성화 $('[name="tel1"], [name="tel2"], [name="tel3"]').val(''); $('[name="tel1"], [name="tel2"], [name="tel3"]').attr('disabled', true); $('[name="email"]').removeAttr('disabled'); } });
$('input[name="return_anytime"]').on('change',function(){ //아무때나 체크표시 변경시 if($("input[name='return_anytime']").is(':checked') == true){ //체크할 경우, 희망일시 작성 비활성화,체크박스 활성화 $('[name="return_date"], [name="return_date2"]').val(''); $('[name="return_hour"], [name="return_hour2"]').val(''); $('[name="return_date"], [name="return_date2"]').addClass('font_none'); $('[name="return_date"], [name="return_time_type"], [name="return_hour"]').attr('disabled', true).attr('readonly', true); $('[name="return_date2"], [name="return_time_type2"], [name="return_hour2"]').attr('disabled', true).attr('readonly', true); } else { //체크 풀었을 경우, 희망일시 작성 활성화, 체크박스 비활성화 $('[name="return_date"], [name="return_date2"]').val(''); $('[name="return_date"], [name="return_date2"]').removeClass('font_none'); $('[name="return_date"], [name="return_date2"]').removeAttr('disabled'); $('[name="return_time_type"], [name="return_hour"]').removeAttr('disabled').removeAttr('readonly'); $('[name="return_time_type2"], [name="return_hour2"]').removeAttr('disabled').removeAttr('readonly'); } });
$(".install_btn").click(function(){ //저장 버튼, 홈페이지 관리자로 데이터 전송
if($("input[name='comp_name']").val()==''){ alert("상호명을 입력하세요."); $("input[name='comp_name']").focus(); return; }
if($("input[name='return_type']:checked").val() == 0){ //전화 선택한 경우 if($("input[name='tel1']").val().trim()=='' || $("input[name='tel2']").val().trim()=='' || $("input[name='tel3']").val().trim()==''){ alert('전화번호를 입력하세요.'); $("input[name='tel1']").focus(); return; } } else { //메일 선택한 경우 if($("input[name='email']").val()==''){ alert('이메일을 입력하세요.'); $("input[name='email']").focus(); return; } };
if($("input[name='return_anytime']").is(':checked')==false){ //아무때나 체크 안된 경우 if($("input[name='return_date']").val().trim()==''){ //날짜 작성시 alert('일자를 선택해주세요.'); return; };
if($("input[name='return_hour']").val().trim()==''){ //시간 작성시 alert('시간을 작성해주세요.'); $("input[name='return_hour']").focus(); return; } else { if($("input[name='return_hour']").val() < 1 || $("input[name='return_hour']").val() > 12){ // 시간이 0보다 작거나 12보다 높을 경우 alert('올바른 시간이 아닙니다. 시간을 다시 작성해주세요'); $("input[name='return_hour']").focus(); return; } };
if($("input[name='return_hour2']").val().trim()==''){ //시간 작성시 alert('시간을 작성해주세요.'); $("input[name='return_hour2']").focus(); return; } else { if($("input[name='return_hour2']").val() < 1 || $("input[name='return_hour2']").val() > 12){ // 시간이 0보다 작거나 12보다 높을 경우 alert('올바른 시간이 아닙니다. 시간을 다시 작성해주세요'); $("input[name='return_hour2']").focus(); return; } }; }
if($("textarea[name='work_content']").val().trim()==''){ alert('개발할 업무내용을 입력하세요.'); $("textarea[name='work_content']").focus(); return; } if($("#formText1").is(":checked")==false){ alert('개인정보 수집에 동의함 체크를 하시기 바랍니다.'); return; } form_data = $("form[name='soft_cs_form']").serialize(); $.ajax({type:"post", url:"../millennium/soft_cs_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();
if(v_mode_ok=='Y'){ alert('소프트웨어 개발상담요청 되었습니다.'); document.location.reload(); } else { alert(v_msg); } }, error:function(rtn,status,error){ alert(error); } }); }); });
$(function(){ $(".show_program_est").css("cursor","pointer").click(function(){ //엠제이 소프트란 팝업처리 main_popup_show("https://mjsoft.co/html/millennium/index_new_program_new2.php","380","320","나에게 맞는 제품찾기"); });
//$("#jointinsertFrm input, #jointinsertFrm textarea").click(function(){ //$(".float_div_class").hide(); //}); //$("#jointinsertFrm input, #jointinsertFrm textarea").blur(function(){ //$(".float_div_class").show(); //}); });
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_box2").dialog( "close" ); } </script>
<?include("./include/footer.php");?>
|