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
|
<? if (!isset($filedir)) $filedir = ""; //20131008 ¼öÁ¤ if (!isset($_COOKIE['USERID']) || $_COOKIE['USERID'] == ""){ ?> <script> alert("ȸ¿ø ·Î±×ÀÎ ÈÄ¿¡ À̿밡´ÉÇÕ´Ï´Ù."); location.href = "./intro.php"; </script> <? } include("./include/header.php"); ?>
<script> function FrmCh(filedir){
if( asinsertFrm.subject.value == ""){ alert("±ÛÁ¦¸ñÀº ÇʼöÇ׸ñÀÔ´Ï´Ù."); asinsertFrm.subject.focus(); return; } if( asinsertFrm.Msw1.value == ""){ alert("ÇÁ·Î±×·¥¼±ÅÃÀº ÇʼöÇ׸ñÀÔ´Ï´Ù."); asinsertFrm.Msw1.focus(); return; } if( asinsertFrm.content.value == ""){ alert("±Û³»¿ëÀº ÇʼöÇ׸ñÀÔ´Ï´Ù."); asinsertFrm.content.focus(); return; } if( confirm("µî·ÏÇϽг»¿ëÀ¸·Î Á¢¼ö ÇϽðڽÀ´Ï±î?")){ asinsertFrm.action = "asBoardProcess.php?&filedir="+filedir; asinsertFrm.submit(); } } </script>
<table style="margin:0 auto;width:942px;"> <tr> <td style="height:30px;" colspan="3"></td> </tr> <tr> <td width="212" valign="top"> <table> <caption class="sound_only">ÁÂÃø¸Þ´º</caption> <tr> <td> <? include("./include/aside_mypage.html"); ?> </td> </tr> <tr> <td height="25"> </td> </tr> </table> </td> <td width="12"><span class="sound_only">¸Þ´º¿©¹é</span></td> <td valign="top"> <table> <caption class="sound_only">³»¿ë¿µ¿ª</caption> <tr> <td> <table background="./img/titlebar/mypageqna.gif" width="718" height="44"> <tr> <td class="txt04" style="text-align:right">HOME > <font color="000000"><b>Áú¹®°ú´äº¯</b></td> </tr> <tr> <td colspan="2" height="12"></td> </tr> </table> </td> </tr> <tr> <td> <!-- Á¦Ç°¼Ò°³»ó´Ü --> <div class="asSection" style="margin:0 0 50px;"> <h2><? if( $_COOKIE['USERID'] == "" ) { ?> <img src="../millennium/img/mypage/asinfo.gif"> <? } else { ?> <img src="../millennium/img/mypage/asinfo_login.gif"> <? } ?></h2>
<table class="vertiTable txt03"> <caption>³ªÀÇ ¹®Àdz»¿ª</caption> <colgroup> <col style="width:62px;" /><col style="width:360px;" /><col style="width:110px;" /> <col style="width:71px;" /><col style="width:97px;" /> </colgroup> <tr> <th colspan="5"><img src="./img/mypage/board_01.gif" alt="¹øÈ£"><img src="./img/mypage/board_02.gif" alt="Á¦¸ñ"><img src="./img/mypage/board_03.gif" alt="´äº¯ÀÚ"><img src="./img/mypage/board_04.gif" alt="»óÅÂ"><img src="./img/mypage/board_05.gif" alt="ÀÛ¼ºÀÏ"></th> </tr>
<? $sql = " select * from mBoard_as where id = '$_COOKIE[USERID]' and thread = 'A' order by uid desc "; $result = mysql_query($sql) or die (mysql_error()); if($num = mysql_num_rows($result)){ while($row = mysql_fetch_array($result)) { if( $row[21] == "A") $proResult = "´ë±â"; if( $row[21] == "B") $proResult = "Á¢¼ö"; if( $row[21] == "C") $proResult = "ó¸®"; if( $row[21] == "D") $proResult = "º¸·ù"; if( $row[21] == "E") $proResult = "¿Ï·á"; if( $row[21] == "F") $proResult = "Áú¹®"; if( $row[21] == "G") $proResult = "¿äû"; $Reg_date = date('Y-m-d',$row['reg_date'] ); ?> <tr> <td><?=$row['uid'];?></td> <td class="alignL"><a href="mypageqna_03_01.php?pType=up&uid=<?=$row['uid'];?>"><?=stripcslashes($row['subject']);?></a></td> <td></td> <td><?=$proResult;?></td> <td><?=$Reg_date;?></td> </tr>
<? $replyQry = " select a.uid, a.name , a.proResult, a.fid , a.subject, a.reg_date from mBoard_as a where a.fid = '$row[fid]' and a.id = '$_COOKIE[USERID]' and thread = 'AA' order by a.uid desc limit 20 ";
$replyResult = mysql_query( $replyQry); ///////////////////////////ù¹øÂ° ÀÀ´ä////////////////////////////// if( mysql_num_rows($replyResult) > 0 ){
while( $replyRow = mysql_fetch_array($replyResult)){
if($replyRow['ch_view'] == "y") $_confirm = "ÀÐÀ½"; $replyReg_date = date('Y-m-d',$replyRow['reg_date'] );
?> <tr> <td></td> <td class="alignL"><img src="./img/mypage/post_icon.gif" style="padding-left:10px;"><a href="mypageqna_03_01.php?uid=<?=$replyRow['uid'];?>"><?=$replyRow['subject'];?></a></td> <td><?=$replyRow['name'];?></td> <td></td> <td><?=$replyReg_date;?></td> </tr> <? } $replyQry2 = " select * from mBoard_as where fid = '$row[fid]' and id = '$_COOKIE[USERID]' and thread = 'AAA' "; $replyResult2 = mysql_query( $replyQry2); ///////////////////////////µÎ¹øÂ° ÀÀ´ä////////////////////////////// if( mysql_num_rows($replyResult2) > 0 ){ while( $replyRow2 = mysql_fetch_array($replyResult2)){ $replyReg_date2 = date('Y-m-d',$replyRow2['reg_date'] ); if($replyRow2['ch_view'] == "y") $_confirm2 = "ÀÐÀ½"; ?> <tr> <td></td> <td class="alignL"><img src="./img/mypage/post_icon.gif" style="padding-left:30px;"><a href="mypageqna_03_01.php?uid=<?=$replyRow2['uid'];?>"><?=$replyRow2['subject'];?></a></td> <td><?=$replyRow2['name'];?></td> <td></td> <td><?=$replyReg_date2;?></td> </tr>
<? } } } } } ?>
</table> </div><!--//asSection--> <table class="boardTable txt04"> <caption>¹®Àǵî·Ï</caption> <colgroup> <col style="width:120px" /><col style="width:580px" /> </colgroup> <tr> <th>Á¦ ¸ñ</td> <td><input name="subject" type="text" class="log" size="50" maxlength="70"></td> </tr> <tr> <td>»ç¿ëÇÁ·Î±×·¥</td> <td> <select name='Msw1'> <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 idx "; $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>÷ºÎÆÄÀÏ</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>¹®Àdz»¿ë</th> <td><textarea name="content" cols="78" rows="10" class="log"></textarea></td> </tr> </table> <div class="btnArea"> <img src="./img/customer/asadd_bt.gif" Onclick="javascript:FrmCh('<?=$filedir?>');" class="Btn"><a href="./customeras.php"><img src="./img/mypage/list_bt.gif" hspace="15" vspace="10"></a> </div> </form> <!--//³»¿ë--> </td> </tr> </table> <!--//Áß°£--> </td> </tr>
<? include('./include/footer.php'); ?>
|