代码拉取完成,页面将自动刷新
同步操作将从 徐子玉/品贷网 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'ad_head.php';
include_once 'search_head.php';
include_once 'user_right.php';
include_once 'foot.php';
header ("Content-Type: text/html; charset=UTF-8");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$id = isset($_GET["id"]) ? $_GET["id"] : "0"; //新闻内容ID
$factoryId = isset($_GET["factoryId"]) ? $_GET["factoryId"] : "0"; //厂商ID
$factoryInfo = array("factoryId"=>$factoryId);
$factoryInfo_result = $client->PD_getFactoryInfoById($factoryInfo);
if(!is_soap_fault($factoryInfo_result))
{
//根据厂商id获取厂商产品类型
$factoryInfoResult = $factoryInfo_result->PD_getFactoryInfoByIdResult;
$factoryInfoResultArray = json_decode($factoryInfoResult, TRUE);
//开始解析
//产品类型
$factoryInfo_totalCount = $factoryInfoResultArray[0]['totalCount'];
$factoryInfo_success = $factoryInfoResultArray[0]['success'];
$factoryInfo_data = $factoryInfoResultArray[0]['data'];
foreach($factoryInfo_data as $i=>$fi){
$Abbreviation = $factoryInfo_data[$i]['Abbreviation'];
$Slogan = $factoryInfo_data[$i]['Slogan'];
$Address = $factoryInfo_data[$i]['Address'];
$Telphone = $factoryInfo_data[$i]['Telphone'];
$Logo = $factoryInfo_data[$i]['Logo'];
$Banner = $factoryInfo_data[$i]['Banner'];
$Email = $factoryInfo_data[$i]['Email'];
$Website = $factoryInfo_data[$i]['Website'];
if($HomeAD != ""){
$factoryInfohtml = '<a class="dp-logo" href="store.php?id=' . $id . '"><img src="' . $Logo . '"></a><div class="dp-img"><img src="' . $HomeAD . '"></div>';
}
else{
$factoryInfohtml = '<a class="dp-logo" href="store.php?id=' . $id . '"><img src="' . $Logo . '"></a><div class="dp-img"><img src="images/storedd.png"></div>';
}
$factoryInfoBannerhtml = '<img width="1000" height="350" src="'.$Banner.'">';
$factoryInfoMemohtml = base64_decode($factoryInfo_data[$i]['Memo']);
$factoryAbbreviation = $Abbreviation;
}
$typeCert = 0;
$typeShow = 1;
$factoryCertificate = array("factoryId"=>$factoryId, "type"=>$typeCert);
$factoryCertificate_result = $client->PD_getCertificateByFid($factoryCertificate);
$factoryCertificateResult = $factoryCertificate_result->PD_getCertificateByFidResult;
$factoryCertificateResultArray = json_decode($factoryCertificateResult, TRUE);
$factoryCertificate_totalCount = $factoryCertificateResultArray[0]['totalCount'];
$factoryCertificate_success = $factoryCertificateResultArray[0]['success'];
$factoryCertificate_data = $factoryCertificateResultArray[0]['data'];
if ($factoryCertificate_data)
{
foreach($factoryCertificate_data as $i=>$fi){
$picUrl = $factoryCertificate_data[$i]['picUrl'];
$description = $factoryCertificate_data[$i]['description'];
$factoryCartificatehtmlArr[] = '<li><a href="' . $picUrl . '" class="fancybox" rel="gallery" title="' . $description . '"><img src="' . $picUrl . '" /><p>' . $description . '</p></a></li>';
}
$factoryCartificatehtml = implode('', $factoryCartificatehtmlArr);
}
//获取商品内容
$getInfoDetail = array("infoId"=>$id);
$result = $client->getInfoDetail($getInfoDetail);
$PgetInfoDetailResult = $result->getInfoDetailResult;
$PgetInfoDetailResultArray = json_decode($PgetInfoDetailResult, TRUE);
$PgetInfoDetail_totalCount = $PgetInfoDetailResultArray[0]['totalCount'];
$PgetInfoDetail_success = $PgetInfoDetailResultArray[0]['success'];
$PgetInfoDetail_data = $PgetInfoDetailResultArray[0]['data'];
//echo $id;
if ($PgetInfoDetail_data)
{
$newspage_InfoTitle = $PgetInfoDetail_data[0]['InfoTitle'];
$newspage_InfoContent= base64_decode($PgetInfoDetail_data[0]['InfoContent']);
$newspage_AddDate = $PgetInfoDetail_data[0]['AddDate'];
}
//输出模板
$filename = "store_newspage.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
$contents = str_replace("{\$factoryId}", $factoryId, $contents);
$contents = str_replace("{\$userId}", $user_id, $contents);
$contents = str_replace("{\$factoryAbbreviation}", $factoryAbbreviation, $contents);
$contents = str_replace("{\$factoryInfohtml}", $factoryInfohtml, $contents);
$contents = str_replace("{\$factoryInfoBannerhtml}", $factoryInfoBannerhtml, $contents);
$contents = str_replace("{\$factoryInfoMemohtml}", $factoryInfoMemohtml, $contents);
$contents = str_replace("{\$factoryCartificatehtml}", $factoryCartificatehtml, $contents);
$contents = str_replace("{\$newspage_InfoTitle}", $newspage_InfoTitle, $contents);
$contents = str_replace("{\$newspage_InfoContent}", $newspage_InfoContent, $contents);
$contents = str_replace("{\$user_head_html}", $user_head_html, $contents);
$contents = str_replace("{\$ad_head_html}", $ad_head_html, $contents);
$contents = str_replace("{\$search_head_html}", $search_head_html, $contents);
$contents = str_replace("{\$userright_html}", $userright_html, $contents);
$contents = str_replace("{\$foot_html}", $foot_html, $contents);
echo $contents;
fclose($file);
}
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。