技术支持Support |
include_once("left-jishu.php")?>
|
include_once("left.php")?> |
|
|
$sql="select id,title,datetime from news where sortid=3";
$nums=mysql_num_rows(mysql_query($sql));
require_once("Web_KB_Manage/SubPages.php");
$page_size=12; //每页显示的条数
$sub_pages=10; //每次显示的页数
if($_GET['p']!="" and is_numeric($_GET['p'])){
$pageCurrent=$_GET["p"]; //得到当前是第几页
}
else
{
$pageCurrent=1;
}
$page1=($pageCurrent-1)*$page_size;
$sql.=" order by datetime desc limit $page1,$page_size";
$query = mysql_query($sql);
while($row=mysql_fetch_array($query))
{
?>
·=$row[1]?> |
=date("Y-m-d",strtotime($row[2]))?> |
}
?>
$subPages=new SubPages($page_size,$nums,$pageCurrent,$sub_pages,"jishu.php?p=",2);?> |
|
|
|