</td>
            </tr>
          </table>
<?php 
    }
    ?>
        </div>
      </td>
      <td width="33%" valign="top">
        <div class="infoBoxHeading"><?php 
    echo tep_image('templates/' . $template . '/images/icons/16x16/history.png', ENTRY_STATUS, '16', '16') . ' ' . ENTRY_STATUS;
    ?>
</div>
        <div class="infoBoxContent">
          <p><?php 
    echo $osC_Order->getStatus() . '<br>' . ($osC_Order->getDateLastModified() > $osC_Order->getDateCreated() ? tep_datetime_short($osC_Order->getDateLastModified()) : tep_datetime_short($osC_Order->getDateCreated()));
    ?>
</p>
          <p><?php 
    echo 'Comments: ' . $osC_Order->getNumberOfComments();
    ?>
</p>
        </div>
      </td>
      <td width="33%" valign="top">
        <div class="infoBoxHeading"><?php 
    echo tep_image('templates/' . $template . '/images/icons/16x16/calculator.png', ENTRY_TOTAL, '16', '16') . ' ' . ENTRY_TOTAL;
    ?>
</div>
        <div class="infoBoxContent">
          <p><?php 
Exemple #2
0
 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['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);
 }
            </table>

<?php 
    }
    ?>
          </fieldset>
        </td>
        <td width="33%" valign="top">
          <fieldset style="border: 0; height: 100%;">
            <legend style="margin-left: -20px; font-weight: bold;"><?php 
    echo osc_icon('history.png') . ' ' . $osC_Language->get('subsection_status');
    ?>
</legend>

            <p><?php 
    echo $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><?php 
    echo $osC_Language->get('number_of_comments') . ' ' . $osC_Order->getNumberOfComments();
    ?>
</p>
          </fieldset>
        </td>
        <td width="33%" valign="top">
          <fieldset style="border: 0; height: 100%;">
            <legend style="margin-left: -20px; font-weight: bold;"><?php 
    echo osc_icon('calculator.png') . ' ' . $osC_Language->get('subsection_total');
    ?>
</legend>