2 Star 2 Fork 1

子弹兄 / lycms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
news_list.php 761 Bytes
一键复制 编辑 原始数据 按行查看 历史
子弹兄 提交于 2014-10-20 01:04 . This is first update files
<?php
include_once 'global.php';
//Ʒ
$sql= "SELECT A.*,B.name FROM `n_productbase` A,`n_productclass` B WHERE A.cid=B.id and A.cid=8";
if($_GET[cid]){
$sql.=" and A.cid=".$_GET[cid];
}
$sql.=" ORDER BY A.id DESC";
$res = $db->query($sql);
while($row_product=$db->fetch_array($res)){
$ly_product[] = array(
'id'=>$row_product['id'],
'title'=>$row_product['title'],
'litpic'=>$row_product['litpic'],
'datetime'=>$row_product['datetime'],
'name'=>$row_product['name']
);
}
$smarty->assign("ly_product",$ly_product);
//ҳ
$total= $db->db_num_rows();
$page=new page(array('total'=>$total,'perpage'=>10));
$pageall = $page->show(5);
$smarty->assign("pageall",$pageall);
//ģ
$smarty->display("news_list.html");
?>
PHP
1
https://gitee.com/hongweizhiyuan/lycms.git
git@gitee.com:hongweizhiyuan/lycms.git
hongweizhiyuan
lycms
lycms
master

搜索帮助