2 Star 1 Fork 2

徐子玉 / 品贷网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
confirmOrder.php 2.76 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
<?php
include_once 'config.php';
include_once 'user_head.php';
include_once 'user_right.php';
include_once 'userinfo_head.php';
include_once 'sidebar.php';
include_once 'foot.php';
include_once 'ad_head.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)
{
$parms = array("userProxyId"=>$user_id);
$result = $client->userGetInfo($parms);
if(!is_soap_fault($result)) {
//获取用户信息
$userGetInfoResult = $result->userGetInfoResult;
$userGetInfoResultArray = json_decode($userGetInfoResult, TRUE);
//开始解析
//获取用户信息
$userGetInfo_totalCount = $userGetInfoResultArray[0]['totalCount'];
$userGetInfo_success = $userGetInfoResultArray[0]['success'];
$userGetInfo_data = $userGetInfoResultArray[0]['data'];
if ($userGetInfo_totalCount > 0 && $userGetInfo_success == true)
{
$userinfohtml = '';
foreach($userGetInfo_data as $key=>$d){
$phoneNumber = $userGetInfo_data[$key]['phoneNumber'];
$ProxyName = $userGetInfo_data[$key]['ProxyName'];
$ProvinceName = $userGetInfo_data[$key]['ProvinceName'];
$CityName = $userGetInfo_data[$key]['CityName'];
$DistrictName = $userGetInfo_data[$key]['DistrictName'];
$TownName = $userGetInfo_data[$key]['TownName'];
$Address = $userGetInfo_data[$key]['Address'];
$PostAddress = $userGetInfo_data[$key]['PostAddress'];
$PostName = $userGetInfo_data[$key]['PostName'];
$PostPhone = $userGetInfo_data[$key]['PostPhone'];
$ZipCode = $userGetInfo_data[$key]['ZipCode'];
}
}
}
//输出模板
$filename = "confirmOrder.html";
$file = @fopen($filename,"r");
if ($file) {
$contents = @fread($file, filesize($filename));
$contents = str_replace("{\$userId}", $user_id, $contents);
$contents = str_replace("{\$ad_head_html}", $ad_head_html, $contents);
// $contents = str_replace("{\$userright_html}", $userright_html, $contents);
$contents = str_replace("{\$userinfo_head_html}", $userinfo_head_html, $contents);
$contents = str_replace("{\$PostAddress}", $PostAddress, $contents);
$contents = str_replace("{\$PostName}", $PostName, $contents);
$contents = str_replace("{\$PostPhone}", $PostPhone, $contents);
$contents = str_replace("{\$ZipCode}", $ZipCode, $contents);
$contents = str_replace("{\$sidebar_html}", $sidebar_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

搜索帮助