本文整理匯總了PHP中Area::getaddress方法的典型用法代碼示例。如果您正苦於以下問題:PHP Area::getaddress方法的具體用法?PHP Area::getaddress怎麽用?PHP Area::getaddress使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Area
的用法示例。
在下文中一共展示了Area::getaddress方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: remindService
public static function remindService($params)
{
$service = ' select OrganName,Phone from jpd_organ where ID=' . $params['OrganID'];
$serviceres = Yii::app()->jpdb->createCommand($service)->queryRow();
$scheme = 'SELECT SchID FROM `pap_quotation_scheme` where QuoID=' . $params['quoID'];
$schemeres = Yii::app()->papdb->createCommand($scheme)->queryRow();
//獲取支付方式折扣率
$discount = PapOrderDiscount::model()->find('OrderType=:OrderType', array(':OrderType' => 2));
if ($discount) {
if ($params['Payment'] == 1) {
$factdiscount = $discount['OrderAlipay'] ? $discount['OrderAlipay'] : 100;
} else {
if ($params['Payment'] == 2) {
$factdiscount = $discount['OrderLogis'] ? $discount['OrderLogis'] : 100;
}
}
} else {
$factdiscount = 100;
}
$totalprices = self::Getsumprices($schemeres['SchID'], $factdiscount, trim($params['DealerID'], ','));
$msg = '尊敬的' . $serviceres['OrganName'] . '客戶,您的報價單方案已生成,總計' . $totalprices . '元。回複 ' . $params['checkSN'] . 'Y 確認、' . $params['checkSN'] . 'N 拒絕。詳情:';
$dealerinfo = QuotationService::getorganinfo(array('organID' => trim($params['DealerID'], ','), 'identity' => 2));
//收貨地址
$addressql = ' select ContactName,State,City,District,Address from jpd_receive_address where ID=' . $params['AddressID'];
$address = Yii::app()->jpdb->createCommand($addressql)->queryRow();
$address['site'] = Area::getaddress($address['State'], $address['City'], $address['District']) . $address['Address'];
//獲取報價單商品
$goodssql = ' SELECT GoodsID,Num from pap_quotation_goods where SchID=' . $schemeres['SchID'];
$goodses = Yii::app()->papdb->createCommand($goodssql)->queryAll();
foreach ($goodses as $g) {
$sql = ' select Name from pap_goods where ID=' . $g['GoodsID'];
$gres = Yii::app()->papdb->createCommand($sql)->queryRow();
$msg .= $gres['Name'] . ',' . $g['Num'] . '個;';
}
$msg .= '收貨地址:' . $address['site'] . ';收貨人:' . $address['ContactName'] . '。若有疑問請聯係經銷商:' . $dealerinfo['OrganName'] . ',電話:' . $dealerinfo['Phone'] . '。';
$res = F::sendSMS(array('msg' => $msg, 'phone' => $serviceres['Phone']));
if ($res['code'] == 0) {
//發送成功,添加報價單短信確認數據
$time = $_SERVER['REQUEST_TIME'];
$insertsql = ' insert into pap_quotation_confirm (QuoID,DealerID,ServiceID,CreateTime) values(' . $params['quoID'] . $params['DealerID'] . $params['OrganID'] . ',' . $time . ')';
$count = Yii::app()->papdb->createCommand($insertsql)->execute();
}
return $res;
}
示例2:
</p>
<div class="info-box">
<div id="serviceinfo" style="display:none">
<p class="m-top20"><b>修理廠信息</b></p>
<ul class="zdyul m-top">
<li>修理廠名稱:<span name="name"><?php
echo $service['OrganName'];
?>
</span></li>
<li>聯係電話:<span name="phone"><?php
echo $service['Phone'];
?>
</span></li>
<li style="width:650px;padding-left:30px;text-indent:-30px">地址:<span name="address"><?php
echo Area::getaddress($service[Province], $service[City], $service[Area]) . $service[Address];
?>
</span></li>
<li style="width:650px;">客戶類別及折扣:<span name="type"><?php
echo $service['type'];
?>
</span></li>
<div style="clear:both"></div>
<p class=" m-top5"></p>
</ul>
</div>
<div style="clear:both"></div>
<p class="m-top20"><b>經銷商信息</b></p>
<ul class="zdyul m-top">
<li>經銷商名稱:<span><?php
echo $dealer['OrganName'];
示例3: showAddress
public static function showAddress($province, $city, $area)
{
$address = Area::getaddress($province, $city, $area);
return $address;
}
示例4: showaddress
public static function showaddress($data)
{
return Area::getaddress($data['State'], $data['City'], $data['District']) . $data['Address'];
}
示例5: getDealerinfodizhi
public static function getDealerinfodizhi($id)
{
$sql = 'select Province,City,Area from jpd_organ where ID="' . $id . '"';
$result = Yii::app()->jpdb->createCommand($sql)->queryRow();
return Area::getaddress($result['Province'], $result['City'], $result['Area']);
}