getrow($sql); $price = str_replace('$','',$row['price']); $sql_publisher = "SELECT `id`,`name` FROM `publication` where `id` = '".$row['publisher']."' LIMIT 0,1"; $row_publisher=$db->getrow($sql_publisher); $sql_tag = "SELECT `id`,`name` FROM `tag` where `id` = '".$row['tag']."' LIMIT 0,1"; $row_tag=$db->getrow($sql_tag); $photo = get_attachment("node",$row['id'],"cover"); if(file_exists("./".$photo["path"].'original/'.$photo["file_name"])){ $img = './'.$photo["path"].'original/'.$photo["file_name"]; } else { if($row['cover']!=0&&$row['cover']!='') { $sql_cover = "SELECT * FROM `file_managed` WHERE `fid` = '".$row['cover']."' AND `status` = '1' LIMIT 0,1"; $row_cover = $db->getrow($sql_cover); if($row_cover['filename']!=''){ if( file_exists('./upload/products/original/'.$row_cover['filename'])){ $img = './upload/products/original/'.$row_cover['filename']; } else { $img = 'images/miss.jpg'; } } else { $img = 'images/miss.jpg'; } } else { $img = 'images/miss.jpg'; } } ?>
>
>
作者:
出版社:
供應商:
定價:HK$
ISBN:
出版日期:
產品編號:
重量:

商品資料

query($sql_gallery); while ( $row_gallery = $db->fetch_array($rs_gallery) ){ $main_list .= '
'; $sub_list .= '
'.$gallery_count.'
'; $gallery_count++; } ?>
1
內容簡介