-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdetail.php
87 lines (79 loc) · 3.47 KB
/
pdetail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
require_once("include/init.php");
//设置模块权限
$sections = array("contact" => 0, "company" => 0, "sort" => 1, "recommend" => 1, "case" => 1, "news" => 0);
$navIndex = 1;
?>
<?php //产品信息
$productId = isset($_REQUEST["id"]) ? $_REQUEST["id"] : 0;
$productDetail = new Product(_QUERY_ALL);
$productDetail->productId = $productId;
$productDetail = Product::first($productDetail);
$detailContent = Product::content($productDetail->productId);
if(empty($detailContent)) $detailContent = "<b>暂无详细</b>";
//当前位置
$location = sprintf("当前位置 > <span><a href='product.php?sort=%u'>%s</a></span> > <span>%s</span>", $productDetail->productType, $productDetail->typeName, $productDetail->productName);
$page_title = $productDetail->productName;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once("include/page.php"); ?>
</head>
<body>
<script language="javascript" type="text/javascript">
$(function(){
//产品详细图片固定宽度
$(".d_detail").find("img[src*='attached/image']").width("100%");
});
</script>
<!-- head & nav & share-->
<?php include_once("include/head.php"); ?>
<!-- banner & location & hot -->
<?php include_once("include/banner.php"); ?>
<!-- main start -->
<div id="content_box">
<div class="content">
<!-- menu start -->
<div class="ct_left f_left">
<!-- contact & recommend & sort & company -->
<?php include_once("mleft.php"); ?>
</div>
<!-- menu end -->
<!-- content start -->
<div class="ct_r_box f_right">
<div class="ct_right">
<div class="clear">
</div>
<div class="m_title">
<div class="m_title_name">产品详细</div>
<div class="m_title_more_link hidden">
<a href="">
<img src="images/small_24.jpg" width="44"
height="13" /></a></div>
<div class="clear"></div>
</div>
<div class="ct_r_content">
<div class="d_title_pnl">
<div class="f_left">
<img class="d_m_img" src='<?php echo empty($productDetail->mImage) ? "images/noimg.jpg" : str_replace("../", "", $productDetail->mImage); ?>' alt='<?php echo $productDetail->productName; ?>' title='<?php echo $productDetail->productName; ?>' class='mm' />
</div>
<div class='d_title f_left'>
<div class="d_t_name"><a href='<?php echo $productDetail->aliUrl; ?>' title='<?php echo $productDetail->productName; ?>'><?php echo $productDetail->productName; ?></a></div>
<div><a href='<?php echo $productDetail->aliUrl; ?>' target='_blank'><img src='images/buy_b.png' style='width: 180px; height: 50px; margin-top: 10px;' alt='<?php echo $productDetail->productName; ?>' /></a></div>
</div>
<div class="clear"></div>
</div>
<div class="d_detail"><?php echo $detailContent; ?></div>
<div class="d_d_links"><?php echo Util::linkOtherProduct($productDetail->productId); ?></div>
</div>
</div>
</div>
<!-- content end -->
</div>
</div>
<!-- main end -->
<!-- barcode & contact & link & reply -->
<?php include_once("include/foot.php"); ?>
</body>
</html>