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


PHP osC_Order::getAdminComment方法代码示例

本文整理汇总了PHP中osC_Order::getAdminComment方法的典型用法代码示例。如果您正苦于以下问题:PHP osC_Order::getAdminComment方法的具体用法?PHP osC_Order::getAdminComment怎么用?PHP osC_Order::getAdminComment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在osC_Order的用法示例。


在下文中一共展示了osC_Order::getAdminComment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadSummaryData

 function loadSummaryData()
 {
     global $toC_Json, $osC_Language;
     $osC_Order = new osC_Order($_REQUEST['orders_id']);
     $response['customer'] = '<p style="margin-left:10px;">' . osC_Address::format($osC_Order->getCustomer(), '<br />') . '</p>' . '<p style="margin-left:10px;>' . osc_icon('telephone.png') . $osC_Order->getCustomer('telephone') . '<br />' . osc_icon('write.png') . $osC_Order->getCustomer('email_address') . '</p>';
     $response['shippingAddress'] = '<p style="margin-left:10px;">' . osC_Address::format($osC_Order->getDelivery(), '<br />') . '</p>';
     $response['billingAddress'] = '<p style="margin-left:10px;">' . osC_Address::format($osC_Order->getBilling(), '<br />') . '</p>';
     $response['paymentMethod'] = '<p style="margin-left:10px;">' . $osC_Order->getPaymentMethod() . '</p>';
     if ($osC_Order->isValidCreditCard()) {
         $response['paymentMethod'] .= '
       <table border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td>' . $osC_Language->get('credit_card_type') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('type') . '</td>
         </tr>
         <tr>
           <td>' . $osC_Language->get('credit_card_owner_name') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('owner') . '</td>
         </tr>
         <tr>
           <td>' . $osC_Language->get('credit_card_number') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('number') . '</td>
         </tr>
         <tr>
           <td>' . $osC_Language->get('credit_card_expiry_date') . '</td>
           <td>' . $osC_Order->getCreditCardDetails('expires') . '</td>
         </tr>
       </table>';
     }
     $response['status'] = '<p style="margin-left:10px;">' . $osC_Order->getStatus() . '<br />' . ($osC_Order->getDateLastModified() > $osC_Order->getDateCreated() ? osC_DateTime::getShort($osC_Order->getDateLastModified(), true) : osC_DateTime::getShort($osC_Order->getDateCreated(), true)) . '</p>' . '<p style="margin-left:10px;">' . $osC_Language->get('number_of_comments') . ' ' . $osC_Order->getNumberOfComments() . '</p>';
     $response['customers_comment'] = $osC_Order->getCustomersComment();
     $response['admin_comment'] = $osC_Order->getAdminComment();
     $response['total'] = '<p style="margin-left:10px;">' . $osC_Order->getTotal() . '</p>' . '<p style="margin-left:10px;">' . $osC_Language->get('number_of_products') . ' ' . $osC_Order->getNumberOfProducts() . '<br />' . $osC_Language->get('number_of_items') . ' ' . $osC_Order->getNumberOfItems() . '</p>';
     echo $toC_Json->encode($response);
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:35,代码来源:orders.php


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