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); }
</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