<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w...content-available-to-author-only...3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://w...content-available-to-author-only...3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
</head>
<body>
<?php
$username=$_SESSION[name];
$current_page=$_POST[current_page];
$current_board;
$i=0;
$total=0;
$last_page;
$last_k;
$last_j;
$page;
$myquery = "select current_board from member where username='$username'";
$current_board=$current_board_row[current_board];
}
$myquery = "select current_page from member where username='$username'";
$last_page=$last_page_row[current_page];
}
$myquery = "select id from article";
$total++;
}
if(($total%5)==0)
else
if($current_page==1){
$k=(5*$current_page)-5;
$j=(5*$current_page);
}
else if($current_page==$page){
$k=$total-5;
$j=$total;
}
else if(($last_page-$current_page)>0){
$myquery = "select current_k from member where username='$username'";
$last_k=$last_k_row[current_k];
}
$myquery = "select current_j from member where username='$username'";
$last_j=$last_j_row[current_j];
}
$k=$last_k-5;
$j=$last_j-5;
}
else if(($last_page-$current_page)<0){
$myquery = "select current_k from member where username='$username'";
$last_k=$last_k_row[current_k];
}
$myquery = "select current_j from member where username='$username'";
$last_j=$last_j_row[current_j];
}
$k=$last_k+5;
$j=$last_j+5;
}
$myquery = "select id where board='$current_board' limit $k,$j ";
$k++;
echo "<div onmouseover=\"change_background(".$k.")\" id=\"".$k."\" style=\"background-color:white;\">";
echo "<div id=\"z".($i+1)."\">";
echo $k;
echo " ";
echo "</div>";
echo "</div>";
$i++;
if($i==5)
break;
}
?>
</body>
</html>