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
|
<?php include_once("./_common2.php"); ?> <? include("./Page/common/header.php"); ?>
<style> .faqTable td { font-size:11px; } .subContents_mail{padding:17px 10px;font-weight:600;font-size:11pt;} .mail_orange{color:#ff6600;font-weight:600;} .mail_blue{color:#00429d;font-weight:600;} .mt30{margin:0;} .sub_con_tit{font-size: 18px;font-weight: bold;color: #5a5b55;/* margin-top: 30px; */position: relative;top: 20px;height: 30px;} .mypageInfo th{ width: 150px; display: inline-block;} .mypageInfo td textarea { margin: 5px 0; border: 1px solid #e7e7e7; width: 720px; }
.as_tit{height: 320px;background: url('./img/customer/board_title/as_top_new02-2.png') center no-repeat;}
.mypageInfo th{height: 55px;line-height: 55px;font-size: 16px;font-weight: 600;text-align: left;border-bottom: 1px solid #acacac;border-right: 1px solid #acacac;padding-left: 20px;width: 160px;} .mypageInfo td{width: calc(100% - 160px);border-bottom: 1px solid #acacac;} .mypageInfo td input{border: 1px solid #b3b3b3 !important;height: 30px !important;line-height: 30px !important;vertical-align: middle;box-sizing: border-box;font-size: 15px;} .mypageInfo td [type="file"]{border: 0px !important;} .mypageInfo td textarea{resize: none;margin: 10px 0px;padding: 10px;width: 880px;border: 1px solid #b3b3b3 !important;} .mypageInfo td select{height: 30px;line-height: 30px;box-sizing: border-box;}
.tieupAgree textarea{box-sizing: border-box;height: 200px;resize: none;} </style>
<div class="as_tit"></div> <div class="wrap"> <div class="contents" style="margin-top: 50px;"> <!-- <h1> <div class="sub_con_tit" style="font-size: 18px;font-weight: bold;color: #5a5b55;">AS¿äûÄÚ³Ê</div> <p> <span class="home"><a href="intro.php">Home</a></span> <span class="depth">></span> <span class="depth1">°í°´¼¾ÅÍ</span> <span class="depth">></span> <span class="depth2">AS¿äû</span> </p> </h1> -->
<div class="section" style="position: relative;width: 1100px;margin: 0 auto;"> <!--<h2><img src="./img/customer/as_top.jpg" alt="±âÁ¸ ŸÀÌÆ²"></h2>--> <!-- <h2 style="margin-bottom:20px;"><img src="./img/customer/board_title/as_top_new.png" alt="Áú¹®°ú´äº¯ À̹ÌÁö" usemap="#cu_as_top"/></h2> --> <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='uid' value='<?php echo $_COOKIE['USERID'];?>'> <!-- ¹®ÀÇÇϱâ --> <table class="mypageInfo mt30" style="width: 100%;"> <!--<caption><img src="./img/mypage/qna_txt_02.jpg" alt="¹®ÀÇÇϱâ"></caption>--> <caption><span><span class="red">* </span>´Â Çʼö Ç׸ñÀÔ´Ï´Ù.</span></caption> <tr> <th><span class="red">* </span>ÀÛ¼ºÀÚ</th> <td style="width: 510px;border-right: 1px solid #acacac;"><input name="company" id='shop' type="text" size="36" maxlength="70"></td> <th><span class="red">* </span>»óÈ£</th> <td style="width: 510px;"><input name="homepage" id='name' type="text" size="36" maxlength="70"></td> </tr> <tr> <th style="height: 90px;line-height: 90px;"><span class="red">* </span>´äº¯¼ö½Å¹æ½Ä</th> <td colspan="3" style=""> <div style="margin-bottom: 10px;"> <input type='radio' name='as_rep_type' id="as_rep_type_tel" style="position:relative;margin-right:5px;cursor: pointer;" value="tel"><label for="as_rep_type_tel" style="cursor: pointer;">ÀüÈ</label> <input name="tel1" type="text" size="7" maxlength="4" style="margin-left:27px;width: 90px;"> - <input name="tel2" type="text" size="7" maxlength="4" style="width: 90px;"> - <input name="tel3" type="text" size="7" maxlength="4" style="width: 90px;"> </div> <div> <input type='radio' name='as_rep_type' id="as_rep_type_email" style="position: relative;;margin-right:5px;cursor: pointer;" value="email"><label for="as_rep_type_email" style="cursor: pointer;">À̸ÞÀÏ</label> <input name="s_email" type="text" size="28" maxlength="70" style="margin-left:15px;width: 294px;"> (µÑ Áß Çϳª ¼±ÅÃ) </div> </td> </tr> <tr> <th><span class="red">* </span>»ç¿ëÇÁ·Î±×·¥</th> <td colspan="3"> <select name='Msw1' style="width: 250px;"> <option value='' >ÇÁ·Î±×·¥¼±ÅÃ</option> <? //ȸ¿øÅ×À̺í°ú ÇÁ·Î±×·¥ÀÏÄ¡È $memberQry = " select Msw1 from member WHERE Mid = '$_COOKIE[USERID]' "; $memberResult = mysql_query($memberQry); $memberRow = mysql_fetch_array($memberResult);
$qry = " select category_code,category_name from cate3 where category_code <= 100 order by sort "; $cateResult = mysql_query($qry);
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> </td> </tr> <tr> <th><span class="red">* </span>Á¦¸ñ</th> <td colspan="3"><input name="subject" type="text" size="50" maxlength="70"></td> </tr> <tr> <th>÷ºÎÆÄÀÏ</th> <td colspan="3"> <input type="file" name="add_file" size="40" maxlength="40"> <!-- ½ºÅ©¸°¼¦ °æ·Î º¸À̱â --> <? if ($filedir <> "") { ?> <? $Rfiledir = stripslashes($filedir); ?> <br /> <font color="#3366FF">¾Æ·¡ °æ·ÎÀÇ "¿À·ùȸé.jpg" ÆÄÀÏÀ» "ã¾Æº¸±â" ¹öưÀ» ´·¯ ÷ºÎÇϼ¼¿ä.</font><br /> <font color="#FF0033"><? echo ($Rfiledir); ?></font> <? } ?> </td> </tr> <!--<tr> <th>´äº¯¸ÞÀÏ</th> <td colspan="3"> <input type="text" name="Memail" size="30" value='<?php echo $mem_info['Memail'];?>'> <input type='checkbox' name='mail_reply_yn' value='Y' checked> ´äº¯À» ¸ÞÀÏ·Î ¹Þ¾Æº¸°Ú½À´Ï´Ù. </td> </tr>--> <tr> <th style="height: 225px;line-height: 225px;"><span class="red">* </span>¹®Àdz»¿ë</th> <td colspan="3"><textarea name="content" cols="75" rows="10" style="width: 99%;height: 200px;box-sizing: border-box;resize: none;padding: 10px;"></textarea></td> </tr> </table> <div class="tieupAgree"> <h2>°³ÀÎÁ¤º¸ ¼öÁý ¹× À̿뵿ÀÇ <span>(ÀÚ¼¼ÇÑ ³»¿ëÀº '°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§'À» Âü°íÇØÁÖ¼¼¿ä.)</span></h2> <? include("./privacy_text.html"); ?> <p style=" padding-left: 480px;"> <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 class="as_btn_ft as_on" style="margin-left: 440px;padding: 0px 50px;margin-top: 20px;"><a Onclick="javascript:FrmCh('<?=$filedir?>');">µî·ÏÇϱâ</a></div> </div> </form> <!--<div class="qnaBtn"> <p><img src="./img/mypage/add_bt_as.png" Onclick="javascript:FrmCh('<?=$filedir?>');" style="cursor:pointer;" alt="as¿äû"></p> <p><a href="./customeras.php"><img src="./img/mypage/list_bt.jpg" alt="±Û¸ñ·Ï"></a></p> </div>-->
<style> .as_btn_ft{width:120px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;float:left;margin-left:10px;background:#4a4c4e;} .as_btn_ft a{color:#fff;font-weight:600;text-align:center;display: block;padding: 15px 0;} .as_on{background:#0071e5;} </style> <div style="width: 530px;margin: 0 auto;margin-top:50px;"> <div class="as_btn_ft"><a href="#" target="_blank">AS¿äû</a></div> <div class="as_btn_ft"><a href="#" style="cursor:pointer;" <? if( isset($_COOKIE['USERID']) && $_COOKIE['USERID'] !== "" ){ echo "onClick=\"location.href = 'mypageqna.php'\"";} else{ echo "onClick=\"javascript:window.open('login_customeras.php?url=mypageqna.php','','width=440,height=350,menubar=no,location=no,toolbar=no,scrollbars=yes')\"";} ?>>Áú¹®µî·Ï</a></div> <div class="as_btn_ft"><a href="./customerfaq.php" target="_blank">ÀÚÁÖÇÏ´ÂÁú¹®</a></div> <div class="as_btn_ft"><a href="./customeras.php" target="_blank">±Û¸ñ·Ï</a></div> </div> </div><!-- //section -->
</div><!-- //contents --> </div><!-- //wrap --> <script> $(function(){ $(".total_cnt_class span").html("<?php echo number_format($nTotalCount);?>"); //ÃʱⰪ ÀüÈÀԷ¸¸ Ȱ¼ºÈ $('input[name="as_rep_type"]').eq(0).prop('checked', true); $('input[name="s_email"]').prop('disabled', true); $('input[name="s_email"]').val('');
$('input[name="as_rep_type"]').click(function(){ if($(this).val() == 'tel'){ $('input[name="s_email"]').prop('disabled', true); $('input[name="s_email"]').val(''); $('input[name="tel1"]').prop('disabled', false); $('input[name="tel2"]').prop('disabled', false); $('input[name="tel3"]').prop('disabled', false); } else if($(this).val() == 'email'){ $('input[name="s_email"]').prop('disabled', false); $('input[name="tel1"]').val(''); $('input[name="tel2"]').val(''); $('input[name="tel3"]').val(''); $('input[name="tel1"]').prop('disabled', true); $('input[name="tel2"]').prop('disabled', true); $('input[name="tel3"]').prop('disabled', true); } }); }); function FrmCh(filedir){ var blank_pattern = /^\s+|\s+$/g;
if(asinsertFrm.company.value == ""){ //$("#shop").val() alert("ÀÛ¼ºÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä."); asinsertFrm.company.focus(); return; } if(asinsertFrm.homepage.value == ''){ //$("#name").val() alert('»óÈ£¸íÀ» ÀÔ·ÂÇϼ¼¿ä.'); asinsertFrm.homepage.focus(); return; }
if($("input[name='as_rep_type']").eq(0).is(":checked")==false && $("input[name='as_rep_type']").eq(1).is(":checked")==false){ alert('¼ö½Å¹æ½ÄÀ» Àüȳª À̸ÞÀÏÁß¿¡ 1°¡Áö¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä.'); $("input[name='as_rep_type']").eq(0).focus(); return; } else { if($("input[name='as_rep_type']").eq(0).is(":checked")==true){ if($("input[name='tel1']").val()=='' || $("input[name='tel2']").val()=='' || $("input[name='tel3']").val()==''){ alert('ÀüȹøÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); $("input[name='tel1']").focus(); return; } } if($("input[name='as_rep_type']").eq(1).is(":checked")==true){ if($("input[name='s_email']").val()==''){ alert('À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä.'); $("input[name='s_email']").focus(); 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("¹®Àdz»¿ëÀº ÇʼöÇ׸ñÀÔ´Ï´Ù."); asinsertFrm.content.focus(); return; } if (asinsertFrm.content.value.replace(blank_pattern,'') =="") { alert("¹®Àdz»¿ë¿¡ °ø¹é¸¸ ÀԷµǾú½À´Ï´Ù."); 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(); } }
function moveFocus(num, fromform, toform) { var str = fromform.value.length; if(str == num){ toform.focus(); } } </script> <? include("./Page/common/footer.php"); ?>
|