{if $myarray.email_use_html}

 {include "header.inc"}
 <div id="content">
  <p>{$lg.EMAIL_TEXT_ORDER_NUMBER} {$myarray._oID}</p>
  <p>{$lg.EMAIL_TEXT_INVOICE_URL_VIEW} <a href="{$myarray._oLinks}"> {$lg.EMAIL_TEXT_INVOICE}</a></p>
  <br />
  <p>{$lg.EMAIL_TEXT_ORDER_NUMBER} {$myarray._oID}</p>
  <p>{$lg.EMAIL_TEXT_DATE_ORDERED} {$myarray.date_purchased}</p>
  <p> {$lg.EMAIL_TEXT_STATUS_UPDATE} {$myarray._ostatus}</p>
  <p>{$myarray.notify_comments}</p>
 </div>
 {include "footer.inc"}

{else}

 {$lg.STORE_NAME}

 {$lg.EMAIL_SEPARATOR}

 {$lg.EMAIL_TEXT_ORDER_NUMBER}{$myarray._oID}

 {$lg.EMAIL_TEXT_INVOICE_URL} {$myarray._oLinks}

 {$lg.EMAIL_TEXT_DATE_ORDERED} {$myarray.date_purchased}

 {$lg.EMAIL_TEXT_STATUS_UPDATE} {$myarray._ostatus}

 {$myarray.notify_comments}

 {$lg.EMAIL_SEPARATOR}
 {$lg.EMAIL_TEXT_INVOICE_FOOTER_LG1}
{/if}
