當前位置: 首頁>>代碼示例>>PHP>>正文


PHP osC_Order::getStatusHistory方法代碼示例

本文整理匯總了PHP中osC_Order::getStatusHistory方法的典型用法代碼示例。如果您正苦於以下問題:PHP osC_Order::getStatusHistory方法的具體用法?PHP osC_Order::getStatusHistory怎麽用?PHP osC_Order::getStatusHistory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在osC_Order的用法示例。


在下文中一共展示了osC_Order::getStatusHistory方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: listOrdersStatus

 function listOrdersStatus()
 {
     global $toC_Json;
     $osC_Order = new osC_Order($_REQUEST['orders_id']);
     $records = array();
     foreach ($osC_Order->getStatusHistory() as $status_history) {
         $records[] = array('date_added' => osC_DateTime::getShort($status_history['date_added'], true), 'status' => $status_history['status'], 'comments' => nl2br($status_history['comment']), 'customer_notified' => osc_icon($status_history['customer_notified'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif'), 'sms_customer_notified' => osc_icon($status_history['sms_customer_notified'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif'));
     }
     $response = array(EXT_JSON_READER_ROOT => $records);
     echo $toC_Json->encode($response);
 }
開發者ID:sajad1441,項目名稱:TomatoShop-v1,代碼行數:11,代碼來源:invoices.php

示例2: foreach

</td>
      <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_STATUS;
    ?>
</td>
      <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_COMMENTS;
    ?>
</td>
      <td class="dataTableHeadingContent" align="right"><?php 
    echo TABLE_HEADING_CUSTOMER_NOTIFIED;
    ?>
</td>
    </tr>
<?php 
    foreach ($osC_Order->getStatusHistory() as $status_history) {
        ?>
    <tr class="dataTableRow">
      <td class="dataTableContent" valign="top"><?php 
        echo tep_datetime_short($status_history['date_added']);
        ?>
</td>
      <td class="dataTableContent" valign="top"><?php 
        echo $status_history['status'];
        ?>
</td>
      <td class="dataTableContent" valign="top"><?php 
        echo nl2br($status_history['comment']);
        ?>
</td>
      <td class="dataTableContent" align="right" valign="top"><?php 
開發者ID:itnovator,項目名稱:oscommerce_cvs,代碼行數:31,代碼來源:orders_edit.php


注:本文中的osC_Order::getStatusHistory方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。