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
|
<? /* Á¦Ç° Á¤º¸ Ãâ·Â ÆäÀÌÁö
*/ $position = "Á¦Ç°°³¼±.¼öÁ¤»ó´ã"; $page_title = "Á¦Ç°°³¼±.¼öÁ¤»ó´ã"; $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(); $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);
$view_query = "select * from $table_name where id ='$user_id' and uid ='$uid' order by uid desc"; $v_result = mysql_query($view_query); $v_row = mysql_fetch_array($v_result); $v_reg_date = date("Y-m-d",$v_row[reg_date]); $v_content = nl2br(stripslashes($v_row[content]));
if($user_id){ $m_row = $m_board2_class -> search_data("member","Mid",$user_id); $tel = explode("-",$m_row[Mtel1]); $hp = explode("-",$m_row[Mhp]); } $ch_view = "update $table_name set ch_view='y' where id='$user_id' and uid ='$uid'"; $re_ch = mysql_query($ch_view);
?>
<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 border=0 cellpadding="5" cellspacing="1" bgcolor="gray" width="630" align="center"> <tr><td align="center" height="26" bgcolor="#D1D5D8"><b><?=$v_row[subject]?></b></td></tr> <tr> <td height="20" bgcolor="#FFFFFF"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td height="20"> <font color="7C7C7C"><b>¹øÈ£ :</b> <?=$v_row[uid]?></font></td> <td height="20"><font color="7C7C7C"><b>µî·ÏÀÏ :</b> <?=$v_reg_date?></font></td> <td height="20"> <font color="7C7C7C"><b>À̸ÞÀÏ :</b> <?=$v_row[email]?></font></td> <td height="20"><font color="7C7C7C"><b>ÀüȹøÈ£ :</b> <?=$v_row[tel]?></font></td> </tr> </table> </td> </tr> <tr><td bgcolor="#FFFFFF"><?=$v_content?></td></tr> </table><br> <table border="0" cellpadding="0" cellspacing="0" width="630" align=center> <tr> <td align=center> <input type="button" value="¸ñ·ÏÀ¸·Î" style="border:solid 1px;background:7C9A1E;color:#FFFFFF;height:25px;" onclick="javascript:location.href='w_edit.php'" id=button1 name=button1> </td> </tr> </table> <BR><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="60%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>Á¦ ¸ñ</b></font></td> <td align="center" width="15%" bgcolor="#D1D5D8" bordercolorlight="gray"><font color="#173771"><b>±Û¾´ÀÌ</b></font></td> <td align="center" width="15%" 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'>"; }
$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='60%'> $indent $thread_img <A href='w_edit.php?mode=view&uid=$row[uid]'> $row[subject]</A></TD> <TD align=middle width='15%'><FONT color='#9098c9'>$row[name]</FONT></TD> <TD align=middle width='15%'>$reg_date</TD></TR> <TR> <TD background=images/bg_tb.gif colSpan=4 height=1></TD> </TR> </table> "); } ?> <BR> <!--¸ÞÀθ®½ºÆ®³¡--> <?require "./main_file/footer.html"; ?>
|