{* $Id: history_order.tpl,v 1.83.2.21 2007/04/27 05:53:08 max Exp $ *} {include file="page_title.tpl" title=$lng.lbl_order_details_label} {$lng.txt_order_details_top_text}

{if $usertype eq 'A' && $is_merchant_password ne 'Y' && $config.Security.blowfish_enabled eq 'Y'} {capture name=dialog}
{$lng.txt_enter_merchant_password_note}

{$lng.lbl_merchant_password}
{/capture} {include file="dialog.tpl" title=$lng.lbl_enter_merchant_password content=$smarty.capture.dialog extra='width="100%"'}
{/if} {capture name=dialog}
{if $usertype ne "C"}
{$lng.lbl_order} #{$order.orderid}
{$lng.lbl_date}: {$order.date|date_format:$config.Appearance.datetime_format}
{/if}

{if $orderid_prev ne ""}<< {$lng.lbl_order} #{$orderid_prev}{/if} {if $orderid_next ne ""}{if $orderid_prev ne ""} | {/if}{$lng.lbl_order} #{$orderid_next} >>{/if}

{if $usertype eq "P" || $usertype eq 'A'} {/if} {if $active_modules.RMA ne '' && $current_membership_flag ne 'FS'} {if ($usertype eq 'C' || $usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode)) && $return_products ne ''} {/if} {if ($usertype eq 'C' || $usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode)) && $order.is_returns} {/if} {/if} {if $active_modules.Shipping_Label_Generator ne '' && ($usertype eq 'A' || $usertype eq 'P')} {/if} {if ($usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)) and $active_modules.Advanced_Order_Management} {/if}
{include file="buttons/button.tpl" button_title=$lng.lbl_print_order target="_blank" href="order.php?orderid=`$order.orderid`&mode=printable"}{include file="buttons/button.tpl" button_title=$lng.lbl_create_return href="#returns"}{include file="buttons/button.tpl" button_title=$lng.lbl_order_returns href="returns.php?mode=search&search[orderid]=`$order.orderid`"}{include file="buttons/button.tpl" button_title=$lng.lbl_shipping_label href="generator.php?orderid=`$order.orderid`"}{include file="buttons/button.tpl" button_title=$lng.lbl_print_invoice target="_blank" href="order.php?orderid=`$order.orderid`&mode=invoice"}{include file="buttons/button.tpl" button_title=$lng.lbl_modify href="order.php?orderid=`$order.orderid`&mode=edit"}

{if $usertype eq "C"}


{include file="mail/html/order_invoice.tpl" is_nomail='Y'} {else} {include file="main/order_info.tpl"} {/if}
{include file="main/include_js.tpl" src="main/history_order.js"}
{* REDLIME *} Gift Message:
{if $usertype ne "C"}

{$lng.lbl_customer_notes}:

{$lng.lbl_status}:
{if $usertype eq "A"} {if $active_modules.Google_Checkout ne '' and $order.extra.goid ne ''} {include file="main/order_status.tpl" status=$order.status mode="select" name="status" extra="disabled='disabled'"}
{$lng.txt_gcheckout_order_status_note} {else} {include file="main/order_status.tpl" status=$order.status mode="select" name="status"} {/if} {else} {include file="main/order_status.tpl" status=$order.status mode="static"} {/if}

{$lng.lbl_tracking_number}:
{/if} {if $usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)} {if $order.extra.ip ne ''}

{$lng.lbl_ip_address}: {$order.extra.ip}{if $order.extra.proxy_ip ne ''} ({$order.extra.proxy_ip}){/if}
{if $active_modules.Stop_List ne ''} {if $order.blocked eq 'Y'} {$lng.lbl_ip_address_blocked}
{else} {/if} {/if} {* $active_modules.Stop_List ne '' *} {/if} {if $active_modules.Anti_Fraud ne ''} {/if}{* $active_modules.Anti_Fraud ne '' *}

{$lng.lbl_order_details}: {if !$order.details_encrypted}

{/if} {if $order.details_encrypted eq ''} {/if} {/if} {if $usertype ne "C"}

{$lng.lbl_order_notes}:
{/if} {if $usertype eq "A" || $usertype eq "P"}


{if $usertype eq "A"} {$lng.txt_change_order_status} {else} {$lng.txt_apply_changes} {/if} {/if} {if $active_modules.Special_Offers ne "" && ($usertype eq "A" or $usertype eq "P")}


{include file="modules/Special_Offers/order_extra_data.tpl" data=$order.extra} {/if} {if ($usertype eq "A" or ($usertype eq "P" and $active_modules.Simple_Mode)) && $active_modules.Anti_Fraud}


{include file="modules/Anti_Fraud/extra_data.tpl" data=$order.extra.Anti_Fraud} {/if} {if ($usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode)) && $order.is_egood ne '' && $active_modules.Egoods}


{$lng.txt_prolong_ttl} {/if}

{if $usertype eq "P" and $order.status ne "C"}

{$lng.txt_complete_order}
{/if} {if $active_modules.Order_Tracking ne "" and $order.tracking ne ""}


{include file="main/subheader.tpl" title=$lng.lbl_tracking_order} {assign var="postal_service" value=$order.shipping|truncate:3:"":true} {$lng.lbl_tracking_number}: {$order.tracking}

{if $postal_service eq "UPS"} {include file="modules/Order_Tracking/ups.tpl"} {elseif $postal_service eq "USP"} {include file="modules/Order_Tracking/usps.tpl"} {elseif $postal_service eq "Fed"} {include file="modules/Order_Tracking/fedex.tpl"} {elseif $postal_service eq "Aus"} {include file="modules/Order_Tracking/australia_post.tpl"} {/if} {/if}
{/capture} {include file="dialog.tpl" title=$lng.lbl_order_details_label content=$smarty.capture.dialog extra='width="100%"'} {if $active_modules.RMA ne '' && ($usertype eq 'C' || ($usertype eq 'A' && $current_membership_flag ne 'FS') || ($usertype eq 'P' && $active_modules.Simple_Mode))}
{include file="modules/RMA/add_returns.tpl"} {/if} {if ($usertype eq 'A' or $usertype eq 'P') and $active_modules.Google_Checkout ne '' and $order.extra.goid ne ''}
{include file="modules/Google_Checkout/gcheckout_order.tpl"} {/if} {if $order.paypal && ($usertype eq 'A' || $usertype eq 'P')} {include file="main/paypal_trans.tpl" data=$order.paypal} {/if }