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
|
<? /* Á¦Ç° Á¤º¸ Ãâ·Â ÆäÀÌÁö
*/ $position = "Á¦Ç°°³¼±.¼öÁ¤»ó´ã"; $page_title = "Á¦Ç°°³¼±.¼öÁ¤»ó´ã"; $sub_title = "Á¦Ç° ÀÚ¼¼È÷º¸±â"; $w_qna_menu = "button8_8.gif"; require "./inc/config.php"; require "./main_file/header.html";
//require_once($ADMIN_DIR . "/upgrade/upgrade_class.php"); $m_board_class = new m_board_class(); require_once($HOME_DIR . "/m_board/page_header.php");
$d_query = "select * from $table_name where uid = '$uid'"; $d_result = mysql_query($d_query); $d_row = mysql_fetch_array($d_result,MYSQL_ASSOC);
$my_ref = $d_row[hit]; $d_content = nl2br(stripslashes($d_row[content]));
//mijin_board_7 $table = explode("_" , $table_name); $tablename = $table[0] . $table[1] . "_"; $t_number = $tablename.$d_row[uid]; if(!eregi($t_number,$qna_number)){ $real_ref = $my_ref +1; $result = mysql_query("update $table_name set hit =$real_ref where uid = $d_row[uid]");
} session_register("qna_number"); $qna_number = "$qna_number:$t_number";
$query = "select * from $table_name order by uid desc limit $first,$page_num"; $result = mysql_query($query);
?> <TABLE height=18 cellSpacing=0 cellPadding=0 width=630 align=center border=0> <TBODY> <TR> <TD width=7><IMG height=18 src="images/bar8.gif" width=7></TD> <TD vAlign=bottom width=623 background="images/bar8_1.gif"> <IMG height=9 src="images/bar8_2.gif" width=5> <FONT color=#ffffff>ÀÚÁÖÇÏ´Â Áú¹®</FONT></TD></TR></TBODY></TABLE><BR> <!-- --> <table cellspacing="0" cellpadding="0" width="630" border="0" height="22" bgcolor="#E0E3E5" align="center"> <tr> <td width="15%" align="center"><font color="#173771"> ¹øÈ£ : <b><?=$d_row[uid]?></b></font></td> <td align="center"><font color="#173771">Á¦¸ñ : <b><?=$d_row[subject]?></b></font></td> <td width="15%" align="center"><font color="#173771">Á¶È¸ : <b><?=$d_row[hit]?></b></font> </td> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" width="630" bgcolor="#F4F4F4" align="center"> <tr> <td width="11"></td> <td style='padding-left:30'><BR> <?=$d_content?> <BR> </td> <td width="11"></td> </tr> </table>
<table cellpadding="0" cellspacing="0" border="0" width="570"> <tr> <td align="center" width="100%" height="30" bgcolor="#ffffff"><a href="w_qna.php?table_name=<?=$table_name?>&page=<?=$page?>"><img SRC="images/list.gif" border="0" WIDTH="54" HEIGHT="21"></a></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="10%" bgcolor="#D1D5D8"><font color="#173771"><b>Á¶È¸</b></font></td> </tr> </table> </td> </tr> </table> <? while($row = mysql_fetch_array($result,MYSQL_ASSOC)){ $reg_date = date("Y-m-d",$row[reg_date]); echo(" <TABLE cellSpacing=0 cellPadding=0 width=630 align=center border=0> <!--°Ô½ÃÆÇµ¥ÀÌÅ͵é¾î¿À´ÂÀÚ¸®--> <TBODY> <TR bgColor=white> <TD align=middle width='9%' height=27>$number</TD> <TD align=left width='60%'> <A href='w_qna.php?mode=view&table_name=$table_name&uid=$row[uid]'> $row[subject]</A></TD> <TD align=middle width='15%'><FONT color='#9098c9'>°ü¸®ÀÚ</FONT></TD> <TD align=middle width='10%'>$row[hit]</TD></TR> <TR> <TD background=images/bg_tb.gif colSpan=4 height=1></TD> </TR> </table> "); $number--; } ?> <BR><TABLE width=630> <TR> <TD align='center'> <? require_once($HOME_DIR . "/m_board/page_footer.php"); ?> </TD> </TR> </TABLE> <BR> <?require "./main_file/footer.html"; ?>
|