当前位置: 首页>>代码示例>>PHP>>正文


PHP Area::getaddress方法代码示例

本文整理汇总了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;
 }
开发者ID:zwq,项目名称:unpei,代码行数:44,代码来源:InquiryService.php

示例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'];
开发者ID:zwq,项目名称:unpei,代码行数:31,代码来源:select.php

示例3: showAddress

 public static function showAddress($province, $city, $area)
 {
     $address = Area::getaddress($province, $city, $area);
     return $address;
 }
开发者ID:zwq,项目名称:unpei,代码行数:5,代码来源:RecommendList.php

示例4: showaddress

 public static function showaddress($data)
 {
     return Area::getaddress($data['State'], $data['City'], $data['District']) . $data['Address'];
 }
开发者ID:zwq,项目名称:unpei,代码行数:4,代码来源:InquiryorderService.php

示例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']);
 }
开发者ID:zwq,项目名称:unpei,代码行数:6,代码来源:ReturnorderService.php


注:本文中的Area::getaddress方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。