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
|
<? /* Á¦Ç° Á¤º¸ Ãâ·Â ÆäÀÌÁö
*/ $position = "¹®ÀÇ»çÇ×"; $page_title = "Á¦Ç°AS¿äû/´äº¯º¸±â"; $sub_title = "Á¦Ç° ÀÚ¼¼È÷º¸±â"; $upgrade_menu = "m_b_menber_on.gif"; require "./inc/config.php"; require "./main_file/header.html";
//require_once($ADMIN_DIR . "/m_board2/m_board2_class.php"); $m_board2_class = new m_board2_class(); $ware_class = new ware_class(); //require_once $ADMIN_DIR . "/ware/ware_class.php";
$query = "select * from $table_name where id ='$user_id' order by fid desc,thread asc";
//$query = "select * from $table_name where id ='$user_id' order by uid desc"; $result = mysql_query($query);
if($user_id){ $m_row = $m_board2_class -> search_data("member","Mid",$user_id); $tel = explode("-",$m_row[Mtel1]); $hp = explode("-",$m_row[Mhp]); }
?>
<TABLE height=18 cellSpacing=0 cellPadding=0 width=630 align=center border=0> <TBODY> <TR> <TD width=7><IMG height=18 src="images/q&a_td_1.gif" width=7></TD> <TD vAlign=bottom width=623 background=images/q&a_td_2.gif> <IMG height=9 src="images/bar1_2.gif" width=5> <FONT color=#ffffff><?=$page_title?></FONT> </TD> </TR> </TBODY> </TABLE> <BR>
<table cellpadding="0" cellspacing="1" width="630" align="center"> <tr> <td align="center" valign="top"> <table border cellpadding="2" cellspacing="0" bordercolordark="white" bordercolorlight="gray" width="630" height="20" align="center"> <tr> <td align="center" height="15%" width="8%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>¹ø È£</b></font></td> <td align="center" width="50%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>Á¦ ¸ñ</b></font></td> <td width='10%' align="center" width="50%" bgcolor="#D1D5D8" bordercolorlight="gray">ÆÄÀÏ</td><td align="center" width="13%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>±Û¾´ÀÌ</b></font></td> <td align="center" width="13%" bgcolor="#D1D5D8"><font color="#173771"><b>µî·ÏÀÏ</b></font></td> </tr> </table> </td> </tr> </table> <? $time_limit = 60*60*24*$new_article; while($row = mysql_fetch_array($result,MYSQL_ASSOC)){
$space = strlen($row[thread]) -1; if($space > $reply_indent){$space = $reply_indent;} $indent = ""; for($j=0;$j < $space;$j++){ $indent = $indent." "; }
$date_diff = time() - $row[reg_date]; if($date_diff < $time_limit){ if(!strcmp($row[thread],"A")){ $font_color = "red"; }else { $font_color = "#000000"; } }
if(!strcmp($row[thread],"A")){ $thread_img = " "; }else { $thread_img = "<img src='images/re.gif' border='0'>"; }
if($row[name] == "°ü¸®ÀÚ"){ if($row[add_file]){ $addFile = "<A HREF='/inc/download.php?filename=$row[add_file]&type=as'><img src='/images/file.gif' border='0'></A>"; } }else { if($row[add_file]){ $addFile = "<A HREF='/inc/download.php?filename=$row[add_file]&type=as'><img src='/images/file.gif' border='0'></A>"; } else { $addFile = "<img src='/images/file.gif' border='0'>"; } } if($row[add_file]){ $addFile = "<A HREF='/inc/download.php?filename=$row[add_file]&type=as'><img src='/images/file.gif' border='0'></A>"; }
$reg_date = date("Y-m-d",$row[reg_date]); echo(" <TABLE cellSpacing=0 cellPadding=0 width=630 align=center border=0> <TR bgColor=white> <TD align=middle width='9%' height=27>$row[uid]</TD> <TD align=left width='50%'> $indent $thread_img <A href='as_request.php?mode=view&uid=$row[uid]'> $row[subject]</A></TD> <td width='10%' align='center'>$addFile</td> <TD align=middle width='13%'><FONT color='#9098c9'>$row[name]</FONT></TD> <TD align=middle width='13%'>$reg_date</TD></TR> <TR> <TD background=images/bg_tb.gif colSpan=5 height=1></TD> </TR> </table> "); } ?> <BR><BR> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR height=18> <TD width=15></TD> <TD><FONT color=#808080><IMG height=6 src="images/icon_menber.gif" width=8> ¹®ÀÇ/AS¿äû »çÇ×À» ÀÚ¼¼È÷ Àû¾îÁÖ¼¼¿ä.</FONT><FONT color=red>(³»¿ëÀÌ ¾øÀ¸¸é ó¸® ºÒ°¡) </FONT></TD></TR> <TR height=18> <TD width=15></TD> <TD><FONT color=#808080><IMG height=6 src="images/icon_menber.gif" width=8> µ¥ÀÌÅͰü·Ã a/s´Â ¹Ýµå½Ã µ¥ÀÌÅ͸¦ ¾ÐÃàÇÏ¿© ÷ºÎÇÏ¼Å¾ß Ã³¸®µË´Ï´Ù. </FONT></TD></TR> <TR height=18> <TD width=15></TD> <TD><FONT color=#808080><IMG height=6 src="images/icon_menber.gif" width=8> 󸮻óȲÀº ÁÂÃøÀÇ [¼ºñ½ºÁ¢¼ö.ÁøÇà»óȲ]¿¡¼ È®ÀÎÇϼ¼¿ä. </FONT></TD></TR> <!-- <TR height=18> <TD width=15></TD> <TD><IMG height=6 src="images/icon_menber.gif" width=8><FONT color=red> ´äº¯Àº 1~2Àϳ» ÇöÀç ÆäÀÌÁö¿¡¼ º¼ ¼ö ÀÖ½À´Ï´Ù.</FONT></TD></TR> --> <TR> <TD colSpan=2 height=5></TD></TR></TBODY></TABLE> <BR><!--¸ÞÀθ®½ºÆ®ºÎºÐ--> <FORM name='<?=$table_name?>' action='./m_board2/m_board_save.php?mode=insert' method='post' enctype='multipart/form-data'> <INPUT type='hidden' value='<?=$table_name?>' name='table_name'> <INPUT type='hidden' value='<?=$next_url?>' name='next_url'> <INPUT type='hidden' value='<?=$user_name?>' name='name'> <INPUT type='hidden' value='<?=$user_id?>' name='user_id'> <TABLE height=20 cellSpacing=0 borderColorDark=white cellPadding=2 width=630 align=center borderColorLight=gray border=1> <TBODY> <TR> <TD borderColorLight=gray bgColor=#d1d5d8 height=20> <FONT color=#173771><B>¹®ÀÇ/AS¿äû(¹®¼ÀÛ¼º)</B></FONT> [<IMG height=8 src="images/v_icon.gif" width=8>]´Â ÇʼöÀÔ·Â Ç׸ñÀÔ´Ï´Ù. </TD></TR> </TBODY> </TABLE> <TABLE cellSpacing=0 cellPadding=0 width=630 align=center border=0> <TBODY> <TR> <TD align=middle bgColor=#e9e9e9 colSpan=2><BR> <TABLE cellSpacing=0 cellPadding=3 width=550> <TBODY> <TR> <TD align=right width=110 height=30><IMG height=8 src="images/v_icon.gif" width=8> <FONT color=#173771><B>Á¦ ¸ñ</B></FONT> :</TD> <TD><INPUT maxLength=50 size=47 name=subject> </TD></TR> <TR><TR> <TD align=right width=110 height=30><IMG height=8 src="images/v_icon.gif" width=8> <FONT color=#173771><B>»ó È£</B></FONT> :</TD> <TD><INPUT maxLength=50 size=47 name=company value='<?=$m_row[Mcompany]?>'> </TD></TR> <TR> <TD align=right width=110 height=30><IMG height=8 src="images/v_icon.gif" width=8> <FONT color=#173771><B>¼º ¸í</B></FONT> :</TD> <TD><INPUT maxLength=50 size=47 value='<?=$m_row[Mname]?>' name=name> </TD></TR> <TR><TR> <TD align=right width=110 height=30><IMG height=8 src="images/v_icon.gif" width=8> <FONT color=#173771><B>»ç¿ëÇÁ·Î±×·¥</B></FONT> :</TD> <TD><select name='Msw1'><!-- --> <option value="Msw2">»ç¿ëÇÁ·Î±×·¥</option> <? $ware_class -> cat_list("category",$row[Msw1]); ?> </select> <!-- <select name='Msw2'><!-- Msw1 --> <!-- <option value="">»ç¿ëÇÁ·Î±×·¥</option> --> <?// $ware_class -> cat_list("category",$row[Msw2]); ?> <!-- </select> --> <!-- <INPUT maxLength=50 size=47 value='<?=$m_row[Memail]?>' name=email> --> </TD></TR> <TR> <TD align=right width=110 height=30><IMG height=8 src="images/v_icon.gif" width=8> <FONT color=#173771><B>¿¬¶ôó</B></FONT> :</TD> <TD> <INPUT maxLength=4 size=4 value='<?=$tel[0]?>' name=tel1> - <INPUT maxLength=4 size=4 value='<?=$tel[1]?>' name=tel2> - <INPUT maxLength=4 size=4 value='<?=$tel[2]?>' name=tel3>
</TD></TR> <TR> <TD align=right width=110 height=30><IMG height=8 src="images/v_icon.gif" width=8> <FONT color=#173771><B>ÇÚµåÆù</B></FONT> :</TD> <TD> <INPUT maxLength=4 size=4 value='<?=$hp[0]?>' name=hp1> - <INPUT maxLength=4 size=4 value='<?=$hp[1]?>' name=hp2> - <INPUT maxLength=4 size=4 value='<?=$hp[2]?>' name=hp3> </TD></TR>
<TR> <TD align=right width=110 height=30> <FONT color=#173771><B>÷ºÎÆÄÀÏ</B></FONT> :</TD> <TD><INPUT TYPE='file' NAME='as_file' size='40'> </TD></TR>
</TBODY> </TABLE> <TABLE cellSpacing=0 cellPadding=0 width=550> <TBODY> <TR> <TD align=middle colSpan=2 height=180><TEXTAREA style="HEIGHT: 95%" name='content' cols=80></TEXTAREA> </TD></TR> <TR> <TD align=right colSpan=2><INPUT Onclick="m_board_form('<?=$table_name?>');return false" type=image height=19 width=69 src="images/save_icon.gif" name=submit1> <INPUT id=reset1 onclick="<?=$table_name?>.reset();return false;" type=image height=19 width=69 src="images/cancel_icon.gif" name=reset1> <BR></TD></TR> </TBODY> </TABLE> </TD> </TR> </TBODY> </TABLE> </FORM><!--¸ÞÀθ®½ºÆ®³¡--></TD> <?require "./main_file/footer.html"; ?>
|