2 Star 1 Fork 2

徐子玉 / 品贷网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
suspense.php 5.29 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'userinfo_head.php';
include_once 'user_right.php';
include_once 'indent_left.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);
if ($user_id > 0)
{
$state = isset($_GET["state"]) ? $_GET["state"] : "0";
$client = new SoapClient($GLOBAL_REMOTE_API);
$parms = array("userProxyId"=>$user_id, "state"=>$state, "type"=>"1", "pageIndex"=>"1", "pageSize"=>"10");
$result = $client->order_QueryNew($parms);
if(!is_soap_fault($result))
{
//获取产品信息
$order_QueryNewResult = $result->order_QueryNewResult;
$order_QueryNewResultArray = json_decode($order_QueryNewResult, TRUE);
//开始解析
//获取产品信息
$order_totalCount = $order_QueryNewResultArray[0]['totalCount'];
$order_success = $order_QueryNewResultArray[0]['success'];
$order_data = $order_QueryNewResultArray[0]['data'];
if ($order_totalCount > 0 && $order_success == true)
{
//我的代理信息
$orderhtml = '';
$filename = "suspense_temp.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
//我的代理信息
foreach($order_data as $key=>$d){
$ProxyName = $order_data[$key]['ProxyName'];
$PhoneNumber = $order_data[$key]['PhoneNumber'];
$Location = $order_data[$key]['Location'];
$LvName = $order_data[$key]['LvName'];
$OwnerRemark = $order_data[$key]['OwnerRemark'];
$OrderId = $order_data[$key]['OrderId'];
$OrderNo = $order_data[$key]['OrderNo'];
$OrderDate = $order_data[$key]['OrderDate'];
$PostAddress = $order_data[$key]['PostAddress'];
$PostName = $order_data[$key]['PostName'];
$PostPhone = $order_data[$key]['PostPhone'];
$ZipCode = $order_data[$key]['ZipCode'];
$Remark = $order_data[$key]['Remark'];
$totalPrice = $order_data[$key]['totalPrice'];
$orderPrice = $order_data[$key]['OrderPrice'];
$products = $order_data[$key]['products'];
if($products != ""){
foreach($products as $k=>$pt){
$Abbreviation = $products[$k]['Abbreviation'];
$PicUrl = $products[$k]['PicUrl'];
$ProductName = $products[$k]['ProductName'];
$Standard = $products[$k]['Standard'];
$Price = $products[$k]['Price'];
$Unit = $products[$k]['Unit'];
$num = $products[$k]['num'];
$products_htmlArr[] = '<li><div class="chanpin_item"><div class="chanpin_img"><img src="'.$PicUrl.'"></div><ul class="chanpin_introduce"><li class="intro_titlt"><span>'.$Abbreviation.'</span></li><li class="intro_titlt"><span>'.$ProductName.'</span></li><li><em>规格:</em>'.$Standard.'</li><li><em>单价:</em>'.$Price.'('.$Unit.')</li><li><em>数量:</em>'.$num.'</li></ul></div></li>';
}
$products_html = implode('', $products_htmlArr);
$products_htmlArr = '';
}
else{
$products_html = '';
}
$order_html = str_replace("{\$ProxyName}", $ProxyName, $contents);
$order_html = str_replace("{\$PhoneNumber}", $PhoneNumber, $order_html);
$order_html = str_replace("{\$Location}", $Location, $order_html);
$order_html = str_replace("{\$LvName}", $LvName, $order_html);
$order_html = str_replace("{\$OwnerRemark}", $OwnerRemark, $order_html);
$order_html = str_replace("{\$OrderId}", $OrderId, $order_html);
$order_html = str_replace("{\$OrderNo}", $OrderNo, $order_html);
$order_html = str_replace("{\$OrderDate}", $OrderDate, $order_html);
$order_html = str_replace("{\$PostName}", $PostName, $order_html);
$order_html = str_replace("{\$PostPhone}", $PostPhone, $order_html);
$order_html = str_replace("{\$PostAddress}", $PostAddress, $order_html);
$order_html = str_replace("{\$ZipCode}", $ZipCode, $order_html);
$order_html = str_replace("{\$Remark}", $Remark, $order_html);
$order_html = str_replace("{\$totalPrice}", $totalPrice, $order_html);
$order_html = str_replace("{\$orderPrice}", $orderPrice, $order_html);
$order_html = str_replace("{\$products_html}", $products_html, $order_html);
$order_htmlArr[] = $order_html;
}
fclose($file);
}
$orderhtml = implode('', $order_htmlArr);
}
//输出模板
$filename = "suspense.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
$contents = str_replace("{\$orderhtml}", $orderhtml, $contents);
$contents = str_replace("{\$indentleft_html}", $indentleft_html, $contents);
$contents = str_replace("{\$user_head_html}", $user_head_html, $contents);
$contents = str_replace("{\$userinfo_head_html}", $userinfo_head_html, $contents);
$contents = str_replace("{\$userright_html}", $userright_html, $contents);
$contents = str_replace("{\$foot_html}", $foot_html, $contents);
echo $contents;
fclose($file);
}
}
}
else
{
header("Location: login.html");
}
?>
1
https://gitee.com/xuqipeter/pdw.git
git@gitee.com:xuqipeter/pdw.git
xuqipeter
pdw
品贷网
master

搜索帮助