2 Star 2 Fork 1

子弹兄 / lycms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
product_view.php 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
子弹兄 提交于 2014-10-20 01:04 . This is first update files
<?php
include_once 'global.php';
//作品的基本信息
if(!empty($_GET['id'])){
$sql="SELECT a.*,b.*,c.name FROM `n_productbase` as a, `n_productcontent` as b ,`n_productclass` c WHERE a.id=b.nid and a.cid=c.id and a.id='$_GET[id]'";
$query = $db->query($sql);
$row_product = $db->fetch_array($query);
}
$smarty->assign("row_product",$row_product);
//作品的详细图片
if(!empty($_GET['id'])){
$sql="select b.pictures from n_productcontent a,n_uploadpic b where a.sessionid=b.sessionid and a.nid='$_GET[id]'";
$query = $db->query($sql);
while ($row_productpic = $db->fetch_array($query)){
$ly_pictures[] = array(
'pictures'=>$row_productpic['pictures'],
);
}
}
$smarty->assign("ly_pictures",$ly_pictures);
$smarty->display("product_view.html");
?>
PHP
1
https://gitee.com/hongweizhiyuan/lycms.git
git@gitee.com:hongweizhiyuan/lycms.git
hongweizhiyuan
lycms
lycms
master

搜索帮助