<fh-function>
$C=getrs("select * from sl_config");
mysqli_query($conn, "update sl_product set P_view=P_view+1 where P_id=".$id);
$sql="select * from sl_product,sl_psort where P_sort=S_id and P_id=".$id;
  $result = mysqli_query($conn, $sql);
  $row = mysqli_fetch_assoc($result);
  if (mysqli_num_rows($result) > 0) {
    $S_id=$row["S_id"];
    $P_id=$row["P_id"];
    $P_pic=$row["P_pic"];
    $P_tag=$row["P_tag"];
    $P_mid=$row["P_mid"];
    $P_shuxing=$row["P_shuxing"];
    $P_vip=$row["P_vip"];
    $P_price=$row["P_price"];

    switch ($row["P_selltype"]) {
    case 0:
    $P_rest=1;
    break;

    case 1:
    $P_rest=getrs("select count(C_id) as C_count from sl_card where C_sort=".intval($row["P_sell"])." and C_use=0","C_count");
    break;

    case 2:
    $P_rest=$row["P_rest"];
    break;
  }
  }
</fh-function>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="https://gmpg.org/xfn/11">
<title>[P_title] - [fh_title]</title>
<link href="media/[fh_ico]" rel="shortcut icon" />
<meta name="description" content="[P_description]" />
<meta name="keywords" content="[P_keywords]" />

	<meta name='robots' content='max-image-preview:large' />
<link rel='stylesheet' id='app-css'  href='template/t15/wp-content/themes/fh/assets/css/app.css?ver=8.7.0' type='text/css' media='all' />
<link rel='stylesheet' id='ripro_chlid_style-css'  href='template/t15/wp-content/themes/fh2/diy.css?ver=5.7.2' type='text/css' media='all' />
<link rel='stylesheet' id='pure-highlightjs-style-css'  href='template/t15/wp-content/plugins/Pure-Highlightjs-master/highlight/styles/default.css?ver=0.9.2' type='text/css' media='all' />
<link rel='stylesheet' id='pure-highlightjs-css-css'  href='template/t15/wp-content/plugins/Pure-Highlightjs-master/assets/pure-highlight.css?ver=0.1.0' type='text/css' media='all' />
<link rel='stylesheet' id='external-css'  href='template/t15/wp-content/themes/fh/assets/css/external.css?ver=8.7.0' type='text/css' media='all' />
<link rel='stylesheet' id='sweetalert2-css'  href='template/t15/wp-content/themes/fh/assets/css/sweetalert2.min.css?ver=8.7.0' type='text/css' media='all' />
<link rel='stylesheet' id='diy-css'  href='template/t15/wp-content/themes/fh/assets/css/diy.css?ver=8.7.0' type='text/css' media='all' />
<link rel='stylesheet' id='fancybox-css'  href='template/t15/wp-content/themes/fh/assets/css/jquery.fancybox.min.css?ver=8.7.0' type='text/css' media='all' />
<script type='text/javascript' src='template/t15/wp-content/themes/fh/assets/js/jquery-2.2.4.min.js?ver=2.2.4' id='jquery-js'></script>
<script type='text/javascript' src='template/t15/wp-content/themes/fh/assets/js/plugins/sweetalert2.min.js?ver=8.7.0' id='sweetalert2-js'></script>

<style type="text/css">@media (min-width: 1200px) { .container,.container-lg,.container-md,.container-sm,.container-xl { max-width:1300px } }
.footer-links {
    text-align: center;
}</style>	<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
      <script src="template/t15/wp-content/themes/fh/assets/js/html5shiv.js"></script>
      <script src="template/t15/wp-content/themes/fh/assets/js/respond.min.js"></script>
    <![endif]-->
    <script>
	if(("standalone" in window.navigator) && window.navigator.standalone){
		var noddy, remotes = false;
		document.addEventListener('click', function(event) {
			noddy = event.target;
			while(noddy.nodeName !== "A" && noddy.nodeName !== "HTML") {
				noddy = noddy.parentNode;
			}
			if('href' in noddy && noddy.href.indexOf('http') !== -1 && (noddy.href.indexOf(document.location.host) !== -1 || remotes)){
				event.preventDefault();
				document.location.href = noddy.href;
			}
	
		},false);
	}
	</script>
</head>

<body class="post-template-default single single-post postid-365 single-format-standard  max_width navbar-sticky navbar-slide sidebar-right pagination-infinite_button">

<div class="site">
    
[fh_header]
<fh-function>
if($P_mid==0){
  $P_author="官网自营";
  $author_pic=pic($C["C_ico"]);
}else{
  $M=getrs("select * from sl_member where M_id=$P_mid");
  $P_author=$M["M_shop"];
  $author_pic=pic($M["M_head"]);
}
</fh-function>
<div class="header-gap"></div>    
    <div class="site-content">
    

<div class="container">
	<div class="breadcrumbs">
	当前位置：<a href="./">[fh_title]</a> <small>></small> <a href="?type=product&id=[S_subid]">[S_subtitle]</a> <small>></small> <a href="?type=product&id=[S_id]">[S_title]</a> <small>></small> [P_title]	</div>
	<div class="row">
		<div class="content-column col-lg-9">
			<div class="content-area">
				<main class="site-main">
					<article id="post-365" class="article-content">
    <div class="container">
  <div class="cao_entry_header">

  <header class="entry-header">          <div class="entry-meta">
                  <span class="meta-author">
            <a>
              <img  data-src='<fh-function>$api=$author_pic;</fh-function>' class='lazyload avatar avatar-40 photo qq' height='40' width='40' /><fh-function>$api=$P_author;</fh-function>            </a>
          </span>
                  <span class="meta-category">
                          <a target="_blank" href="?type=product&id=[S_subid]" rel="category">
                  <i class="dot"></i>[S_subtitle]              </a>


                          <a target="_blank" href="?type=product&id=[S_id]" rel="category">
                  <i class="dot"></i>[S_title]              </a>
                      </span>
                  <span class="meta-date">
            <a href="">
              <time datetime="[P_time]">
                [P_time]              </time>
            </a>
          </span>
                    <span class="meta-edit"></span>
        
      </div>
    
    <h1 class="entry-title">[P_title]</h1>  </header></div></div>  <div class="container">
    <div class="entry-wrapper">
            <div class="entry-content u-text-format u-clearfix">[P_content]</div>
      <div id="pay-single-box"></div>
<div class="entry-tags">
<fh-function>

if($P_tag!=""){
  $tag=explode(" ",$P_tag);
  for($i=0;$i<count($tag);$i++){
  $api=$api.'<a href="?type=product&tag='.$tag[$i].'" rel="tag">'.$tag[$i].'</a>';
}
}

</fh-function>

      </div>

<div class="ripro_gg_wrap pc"></div>


<div class="article-footer">
    <div class="author-box">
    
    <div class="author-info">
      
    </div>
  </div>
      <div class="xshare">
      <span class="xshare-title">分享到：</span>
                 <a href="javascript:;" title="收藏文章" etap="star" data-postid="product_[P_id]" class="ripro-star <fh-function>if(getrs('select * from sl_colletion where C_mid='.intval($_SESSION['M_id']).' and C_cid='.$id.' and C_type=0','C_id')!=''){$api='ok';}</fh-function>"><i class="fa fa-star-o"></i></a>
            <a href="" etap="share" data-share="qq" class="share-qq"><i class="fa fa-qq"></i></a>
      <a href="" etap="share" data-share="weibo" class="share-weibo"><i class="fa fa-weibo"></i></a>
              <a href="conn/poster.php?type=product&id=[P_id]&from=<fh-function>$api=intval($_SESSION['M_id']);</fh-function>" class="share-weixin" ><i class="fa fa-paper-plane"></i></a>
        </div>
   
</div>    </div>
  </div>
</article>


  <div class="entry-navigation">
    <nav class="article-nav">
        <span class="article-nav-prev">上一篇<br><a href="[P_Purl]" rel="prev">[P_Ptitle]</a></span>
        <span class="article-nav-next">下一篇<br><a href="[P_Nurl]" rel="next">[P_Ntitle]</a></span>
    </nav>
    
  </div>

      <!-- # 标准网格模式... -->
      <div class="related-posts-grid">
        <h4 class="u-border-title">相关推荐</h4>
        <div class="row">

<fh-function>
            $sql="select * from sl_product where P_del=0 ".$M_pinfo."  and P_sort=$S_id and P_sh=1 order by P_order,P_id desc limit 4";
                s[[

                $api=$api."<div class=\"col-6 col-sm-3 col-md-3 mt-10 mb-10\">
              <article class=\"post\">
                  <div class=\"entry-media\">
    <div class=\"placeholder\" style=\"padding-bottom: 46.551724137931%;\">
      <a target=\"_blank\"  href=\"?type=productinfo&id=".$row["P_id"]."\">
        <img class=\"lazyload\" data-src=\"".pic(splitx($row["P_pic"],"|",0))."\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" alt=\"".$row["P_title"]."\">  
      </a>
            <a target=\"_blank\"  href=\"?type=productinfo&id=".$row["P_id"]."\"><div class=\"cao-cover\"><img src=\"https://www.98lock.com/wp-content/themes/ripro/assets/images/svg/rings.svg\" width=\"50\" height=\"50px\"></div></a>
          </div>
    <div class=\"entry-star\"><a href=\"javascript:;\" title=\"收藏文章\" etap=\"star\" data-postid=\"455\" class=\"ripro-star\"><i class=\"fa fa-star-o\"></i></a></div><div class=\"entry-format\"><i class=\"fa fa-lock\"></i></div>  </div>
                  <div class=\"entry-wrapper\">
                  
  <header class=\"entry-header\">    
    <h4 class=\"entry-title\"><a target=\"_blank\" href=\"?type=productinfo&id=".$row["P_id"]."\" title=\"".$row["P_title"]."\" rel=\"bookmark\">".$row["P_title"]."</a></h4>  </header>                </div>
              </article>
            </div>";
                ]]
                </fh-function>

                  </div>
      </div>
    
  
				</main>
			</div>
		</div>
					<div class="sidebar-column col-lg-3">
				
<aside class="widget-area">

	<div id="cao_widget_pay-4" class="widget widget-pay">
    <div class="pay--content"><img src="[P_pic]" style="width: 100%"></div>

    <div class="pay--rateinfo"><b><span class="price">原价：￥[P_price]<sup> </sup></span></b></div>
  <ul class="pricing-options">
    <li><i class="fa fa-circle-o"></i> 普通用户购买价格 : <span class="pricing__opt">￥[P_price]</span></li>
<fh-function>
  if($P_vip==1){
  $api=$api.'<li><i class="fa fa-circle-o"></i> VIP会员购买价格 : <span class="pricing__opt">￥'.p($P_price*$C["C_p_discount"]/10).'</span></li>
    <li><i class="fa fa-circle-o"></i> 永久VIP购买价格 : <span class="pricing__opt">￥'.p($P_price*$C["C_p_discount2"]/10).'</span></li>';
}
</fh-function>

  </ul>

  <div class="pay--content"><div class="pay-box">

<a class="btn btn--danger btn--block" href='buy.php?type=productinfo&id=[P_id]'">点击下载</a>


  </div></div><div class="agent--contact">
  	<ul class="list-paybody">


  		<fh-function>

		if($P_shuxing!=""){
			$sx=explode("\r\n",$P_shuxing);
			for($i=0;$i<count($sx);$i++){
				$api=$api."<li><span>".splitx($sx[$i],":",0)."</span><span>".splitx($sx[$i],":",1)."</span></li>";
			}
		}

  		</fh-function>

  		<li><span>已下载</span><span>[P_sold]次</span></li>
  		<li><span>最近更新</span><span>[P_time]</span></li>


  	</ul></div><div class="ac_qqhao"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<fh-function>
$kefu=explode("|",$C_kefu);
for($i=0;$i<count($kefu);$i++){
  if(strpos($kefu[$i],"_qq_")!==false){
    $qq=splitx($kefu[$i],"_",0);
  }
}
$api=$qq;
</fh-function>&site=qq&menu=yes"><i class="fa fa-qq"></i> QQ咨询</a></div></div><div id="cao_widget_userstop-3" class="widget widget-userstop"><h5 class="widget-title">积分排行榜</h5>

    <ul>

        <fh-function>
$i=1;
$sql="select * from sl_member where M_del=0 and not M_login='未登录帐号' order by M_fen desc limit 10";
$result = mysqli_query($conn,  $sql);
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
        $api=$api.'<li><span class="index num-'.$i.'">'.$i.'</span><span class="avatar"><img alt="" data-src="'.pic($row['M_head']).'" class="lazyload avatar avatar-96 photo qq" height="96" width="96" /></span><span class="name">'.$row['M_login'].'</span><span class="credits"><span class="num">'.$row['M_fen'].'</span>积分</span></li>';
        $i=$i+1;
    }
} 

        </fh-function>

    </ul>

  </div><div id="cao_widget_post-4" class="widget cao-widget-posts"><h5 class="widget-title">相关文章展示</h5><div class="posts">

<fh-function>

$sql="select * from sl_news where N_sh=1 and N_del=0 order by rand() limit 5";
$result = mysqli_query($conn,  $sql);
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
        $api=$api.'<div class="left">  <div class="entry-media">
    <div class="placeholder" style="padding-bottom: 60%;">
      <a  href="?type=newsinfo&id='.$row['N_id'].'" >
        <img class="lazyload" data-src="'.pic($row['N_pic']).'" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="'.$row['N_title'].'">  
      </a>
          </div>
      </div>
  <a href="?type=newsinfo&id='.$row['N_id'].'" rel="bookmark" title="'.$row['N_title'].'">'.$row['N_title'].'</a></div>';
    }
} 

</fh-function>
</div></div>

<div id="magsy_category_widget-2" class="widget widget_magsy_category_widget">    <ul>


<fh-function>
$sql="select * from sl_psort where S_del=0 and S_sub>0 order by S_order,S_id desc";
          s[[

$count=getrs("select count(p_id) as P_count from sl_product where P_del=0 and P_sort=".$row["S_id"],"P_count");

$api=$api.'<li class="category-item">
            <a href="?type=product&id='.$row['S_id'].'" title="'.$row["S_title"].'">
              <span class="category-name">
                <i class="dot" style="background-color: #ff7473;"></i>
                '.$row["S_title"].'              </span>
              <span class="category-count">'.$count.'</span>
            </a>
          </li>';


          ]]

</fh-function>


        
        </ul> </div><div id="cao_widget_ads-7" class="widget widget-adss"></div></aside>			</div>
			</div>
</div>


</div><!-- end sitecoent --> 

	
[fh_footer]
</body>
</html>