php的factory,factory.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 'sidebar.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";

$typeId = isset($_GET["typeId"]) ? $_GET["typeId"] : "0";

$subTypeId = isset($_GET["subTypeId"]) ? $_GET["subTypeId"] : "0";

$pageIndex = isset($_GET["pageIndex"]) ? $_GET["pageIndex"] : "1";

$pageSize = isset($_GET["pageSize"]) ? $_GET["pageSize"] : "12";

$client = new SoapClient($GLOBAL_REMOTE_API);

//输出模板

$filename = "factory.html";

$file = @fopen($filename, "r");

if ($file) {

$contents = @fread($file, filesize($filename));

$contents = str_replace("{\$factoryId}", $id, $contents);

$contents = str_replace("{\$userId}", $user_id, $contents);

$contents = str_replace("{\$Producthtml}", $Producthtml, $contents);

$contents = str_replace("{\$Productshtml}", $Productshtml, $contents);

$contents = str_replace("{\$factoryInfohtml}", $factoryInfohtml, $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("{\$goodsNumber}", ($Products_totalCount) ? $Products_totalCount : 0, $contents);

$contents = str_replace("{\$sidebar_html}", $sidebar_html, $contents);

$contents = str_replace("{\$foot_html}", $foot_html, $contents);

$contents = str_replace("{\$pageHtml}", $pageHtml, $contents);

echo $contents;

fclose($file);

}

?>

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值