window.alert('°Ô½Ã¹° ¹øÈ£°¡ ÇÊ¿äÇÕ´Ï´Ù.'); history.go(-1); "); exit; }
//-----------------°Ô ½Ã ¹° ³» ¿ë -------------
$que1="select num,title,name,DATE_FORMAT(w_date,'%Y/%m/%d %k:%i'),thread,pos,depth,content,email,url,hits from $Board_Code where num=$num" ;
$result=mysql_query($que1,$connect);
echo mysql_error();
$row=mysql_fetch_array($result);
$thnum_date = $row[3] ;
$this_num=$row[num];
$this_thread=$row[thread];
$this_pos=$row[pos];
$this_depth=$row[depth];
//---------------- ÀÌ Àü ID ---------------------------
$que3="select num,pos,title from $Board_Code where pos < $this_pos order by pos DESC limit 1" ;
$result3=mysql_query($que3,$connect );
echo mysql_error();
$row3=mysql_fetch_array($result3);
$p_num=$row3[num];
$p_pos=$row3[pos];
$p_title=$row3[title];
//------------------------ ´ÙÀ½ ID ----------------------
$que2="select num,pos,title from $Board_Code where pos > $this_pos order by pos limit 1 ";
$result2=mysql_query($que2,$connect );
$row2=mysql_fetch_array($result2);
$n_num=$row2[num];
$n_pos=$row2[pos];
$n_title =$row2[title];
$todate = date("Y³â m¿ù dÀÏ");
$row[title] = stripslashes($row[title]);
//-----------------------------------------------
echo("
$Board_Title |
¿À´Ã³¯Â¥: $todate |
Á¦ ¸ñ : $row[title] |
±Û¾´ÀÌ : $row[name] ");
if($row[email]) {echo("(E-mail) ");}
if($row[url]) {echo("(Homepage)");}
echo("
|
");
$row[content]=stripslashes($row[content]) ;
echo(" $row[content]
|
");
$que1="select num, title,name,DATE_FORMAT(w_date,'%y/%m/%d'), thread, pos, depth, email, hits from $Board_Code where thread=$row[thread] order by pos " ;
$result=mysql_query($que1,$connect );
$no_thread = mysql_affected_rows();
$row=mysql_fetch_array($result);
$w_date = $row[3] ;
//À±Û,¾Æ·§±Û ȸ鿡 »Ñ¸®±â
echo("
");
$prev_title = stripslashes($p_title);
$next_title = stripslashes($n_title);
if($p_num){ echo("¡â À§ÀÇ±Û : $prev_title "); }
if($n_num){ echo("¡ä ¾Æ·¡±Û : $next_title"); }
echo("
|
");
if($no_thread>1){ $no_t = $no_thread-1 ; echo("°ü·Ã±Û : $no_t °Ç"); }
else{ echo("°ü·Ã±Û : ¾øÀ½");}
echo(" |
±Û¾´½Ã°£ : $thnum_date ±Û¹øÈ£:$row[num]¹ø Á¶È¸:$row[hits]¹ø |
|
");
if($no_thread>1){
echo("
|
Á¦ ¸ñ |
±Û¾´ÀÌ |
Á¶È¸ |
ÀÛ¼ºÀÏ |
");
while($row){
if($this_num==$row[num]){ echo("\n ¢º | "); }
else { echo("
| "); }
echo("");
// --------- ÀÀ´äÀÇ Àε§Æ® -----------------
if($row[depth]>1){
for($j=2;$j<$row[depth];$j++){ echo(" "); }
echo("¢¹ ");
}
$status_txt = htmlspecialchars($row[title]);
echo("$row[title]");
echo("
| ");
if($row[mail]){echo("$row[name] | ");}
else{echo("$row[name]");}
echo("
$row[hits] |
$w_date |
");
$n--;
$row=mysql_fetch_array($result);
}
echo("
|
");
}
//================ ¸Þ ´º ´Â ¿© ±â ¿¡!===========
echo("
");
if($p_num){ echo("\n ÀÌÀü±Û -");}
echo("
±Û¸ñ·Ï -
±Û¾²±â -
ÀÀ´ä±Û -
±Û¼öÁ¤ -
Áö¿ì±â");
if($n_num){ echo("\n - ´ÙÀ½±Û");}
echo("
|
");
//============ Á¶È¸¼ö 1 Áõ°¡ =============
$que1="update $Board_Code set hits=hits+1 where num=$num" ;
$result=mysql_query($que1,$connect );
if(!$result){ echo(" "); exit; }
include "../theme/$Theme/tail.inc";
?>