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
|
<? include("./include/header.php"); ?> <?php include_once("../../common.php"); $sql = "set names utf8"; mysql_query($sql,$connect_web); ?> <script src="http://mattstow.com/experiment/responsive-image-maps/jquery.rwdImageMaps.min.js"></script> </div>
<style> .as_con{margin:0 auto;text-align:center;} .as_txt{background:#eee;font-size:13px;text-align:left;padding:10px 5% 10px 5%;margin:15px 0;} .as_txt p{margin-bottom:5px;} .as_txt p:before{content:'●';font-size:6px;position:relative;top:-1px;margin-right:5px;} .as_tit{max-width:50%; margin-top:20px;} .as_tit_sub{margin:15px 0 15px;font-size:15px;font-weight:600;} .as_input_box ul{width:90%;text-align:left;margin:0 auto;} .as_input_box ul li{width:100%;margin-bottom:10px;} .as_input_box ul li h1{width:20%;text-align:left;line-height:30px; display: inline-block;} .as_input_box ul li input{height:30px;border-color:#888888;} .as_tel{width:80%;height:30px; display: inline-block;} .as_tel input{width:26%;height:30px;} .as_tel span{width:8%;text-align:center;display: inline-block;} .as_input_box li textarea{width:99%;height:70px;width: 99%;padding: 2.5%;height: 80px;box-sizing: border-box;font-size:13px;border-color:#888888;} /*개인정보동의*/ .as_agree{margin-top:30px;} .as_agree > .agree{margin-bottom:20px;} .as_agree > .agree label{font-size:11pt;font-weight:bold;} /*요청하기 버튼*/ .install_btn{ background-color:#585cbd;color:white;padding:12px;margin:10px 0;border:none;width:100%;border-radius:3px;cursor:pointer;font-size:17px;margin:20px 0 30px;font-weight:bold;} .as_con input, .as_con option, .as_con textarea{padding:0;border-radius:0;} .white {color: #fff;padding: 5px 10px;font-size: 13px;background: #585757;cursor: pointer;} .small {font-size: 13px;font-weight: 400;margin: 10px 0;display: block;} .float_div_class{display:none;} .estimate_input_btn{width:98.5%;margin-left:1.5%;margin-bottom:30px;margin-top:30px;} .cus_btn_on{width: 22%; background: #0071e5;height: 40px;line-height: 40px;color: #fff;border-radius: 5px;} .cus_btn_on a{color:#fff;font-weight:600;} .blue {color: #012d6a; font-weight: 600;} </style> <div class="as_con" style="margin-top:50px;" onclick="closeNav()"> <!--견적요청 상단--> <div> <p><img src="./images/order/as_tit.png" class="as_tit" alt="구매상담요청"></p> <p class="as_tit_sub">AS요청은 <span class="red">전화통화</span>가 <span class="red">어려울 때</span> 이용해 주세요.</p> <p><img src="./images/install/install_phone.png" style="max-width:40%;" alt="구매문의번호"></p> <div class="as_txt"> <p>AS요청 후 전문 상담원이 연락드립니다.(근무시간 2시간내)</p> <p>미근무 시간 AS요청은 근무시작 후 연락드립니다.</p> </div> </div> <form name="asinsertFrm" method="post" action='' enctype='multipart/form-data'> <input type="hidden" name="mode" value="insert"> <input type="hidden" name="page_mode" value="as"> <input type="hidden" name="page_mobile" value="mobile"> <!--견적요청 작성--> <div class="as_input_box"> <ul> <li style="margin-bottom:30px;"> <h1 style="width:19%;">작성자</h1> <input type="text" name="company" id='shop' style="width:30%;margin-right: 0.5%;"> <h1>상호</h1> <input type="text" name="homepage" id='name' style="width:25%;"> </li> <li><h2 style="background: #585757;padding: 5px 2.5%;color: #fff;font-size: 14px;width: 95%;font-weight: 600;">답변수신방식(둘 중 하나 선택)</h2></li> <li> <h1 style="float:left;"><input type="checkbox" name="as_tel" style="position:relative;top:3px;margin-right:5px;height: inherit;" value="Y">연락처</h1> <div class="as_tel"> <input name="tel1" type="tel" size="4" maxlength="4"><span>-</span> <input name="tel2" type="tel" size="4" maxlength="4"><span>-</span> <input name="tel3" type="tel" size="4" maxlength="4"> </div> </li>
<li style="margin-bottom:30px;"> <h1 style="float:left;"><input type="checkbox" name="as_email" style="position:relative;top:3px;margin-right:5px;height: inherit;" value="Y">이메일</h1> <input type="text" name="s_email" style="width:79%;height:30px;"> </li>
<li> <h1 style="float:left;;">프로그램</h1> <select name='Msw1' style="width:79%;height:30px;"> <option value='' >사용프로그램선택</option> <? //회원테이블과 프로그램일치화 $memberQry = " select Msw1 from member WHERE Mid = '$_COOKIE[USERID]' "; $memberResult = mysql_query($memberQry,$connect_web); $memberRow = mysql_fetch_array($memberResult);
$qry = " select category_code,category_name from cate3 where category_code <= 100 order by sort "; $cateResult = mysql_query($qry,$connect_web);
while( $cateRow = mysql_fetch_array($cateResult) ){
$category_nameArr = explode( "->", $cateRow[1] ); ?> <option <? if($memberRow[0] == $cateRow[0]){ echo "selected";}?> value='<?=$cateRow[0];?>'><?=$category_nameArr[1];?></option> <? } ?> </select> </li>
<li> <h1 style="float:left;">제 목</h1> <input type="text" name="subject" style="width:79%;height:30px;"> </li> <li> <h1 style="float:left;">첨부파일</h1> <input type="file" name="add_file" size="40" maxlength="40" style="width:80%;box-sizing:border-box;padding:7px 7px;height:40px;"> <!-- 스크린샷 경로 보이기 --> <? if ($filedir <> "") { ?> <? $Rfiledir = stripslashes($filedir); ?> <br /> <font color="#3366FF">아래 경로의 "오류화면.jpg" 파일을 "찾아보기" 버튼을 눌러 첨부하세요.</font><br /> <font color="#FF0033"><? echo ($Rfiledir); ?></font> <? } ?> </li> <li> <h1 style="float:left;">문의내용</h1> <textarea name="content" style="width:80%;"></textarea> </li> </ul> </div> <!--개인정보동의--> <div class="as_agree"> <p class="agree"><input type="checkbox" id="formText1" ><label for="agree"> 개인정보 수집에 동의함</label> <a href="http://mjsoft.co/html/millennium/privacy.php" target="_blank" class="gray_btn2"><span class="white">개인정보취급방침</span></a></p> <? include("./privacy_text.html"); ?> <span class="small">※ 수집된 정보는 해당 목적 외 다른 용도로 사용되지 않습니다.</span> </div> </form> <div class="estimate_input_btn"> <p style="width:90%;margin:0 auto;" class="cus_btn_on"><a Onclick="javascript:FrmCh('<?=$filedir?>');">A S 요 청</a></p> </div> </div>
<script> function FrmCh(filedir){ var blank_pattern = /^\s+|\s+$/g;
if($("#shop").val()==''){ alert('작성자명을 입력하세요.'); return; } if($("#name").val()==''){ alert('상호명을 입력하세요.'); return; }
if($("input[name='as_tel']").is(":checked")==false && $("input[name='as_email']").is(":checked")==false){ alert('수신방식을 전화나 이메일중에 한개이상 선택해주세요.'); return; } else { if($("input[name='as_tel']").is(":checked")==true){ if($("input[name='tel1']").val()=='' || $("input[name='tel2']").val()=='' || $("input[name='tel3']").val()==''){ alert('전화번호를 입력하세요.'); return; } } if($("input[name='as_email']").is(":checked")==true){ if($("input[name='s_email']").val()==''){ alert('이메일을 입력하세요.'); return; } } }
if( asinsertFrm.subject.value == ""){ alert("글제목은 필수항목입니다."); asinsertFrm.subject.focus(); return; }
if (asinsertFrm.subject.value.replace(blank_pattern,'') == "") { alert("글제목에 공백만 입력되었습니다."); asinsertFrm.subject.focus(); return; }
if( asinsertFrm.Msw1.value == ""){ alert("프로그램선택은 필수항목입니다."); asinsertFrm.Msw1.focus(); return; } if( asinsertFrm.content.value == ""){ alert("문의내용은 필수항목입니다."); asinsertFrm.content.focus(); return; } if (asinsertFrm.content.value.replace(blank_pattern,'') =="") { alert("문의내용에 공백만 입력되었습니다."); asinsertFrm.content.focus(); return; }
if($("#formText1").is(":checked")==false){ alert("개인정보 수집 및 이용동의에 동의하시기 바랍니다."); return; } if( confirm("등록하신 내용으로 접수 하시겠습니까?")){ asinsertFrm.action = "<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/asBoardProcess.php<?php } else {?>asBoardProcess.php<?php }?>?&filedir="+filedir; asinsertFrm.submit(); } } </script>
<?include("./include/footer.php");?>
|