{* $Id: orders.tpl 1665 2006-05-05 08:05:15Z zeke $ *} {capture name="mainbox"} {if $mode == "new"} {$lang.text_admin_new_orders}

{/if} {capture name="section"} {include file="orders_pages/orders_search_form.tpl" search_orders="Y"} {/capture} {include file="common_templates/section.tpl" section_title=$lang.search section_content=$smarty.capture.section}
{include file="common_templates/pagination.tpl"} {if $orders} {foreach from=$orders item="o"} {/foreach} {else} {/if}
{$lang.id} {$lang.status} {$lang.customer} {$lang.date} {$lang.total}
 #{$o.order_id}  {include file="orders_pages/order_status.tpl" status=$o.status display="select" name="order_statuses[`$o.order_id`]"} {$o.firstname} {$o.lastname} {$o.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"} {include file="common_templates/price.tpl" value=$o.total}

{$lang.text_no_orders}

{if $orders}
{if $total_pages > 1 && $smarty.get.page != 'full_list'} {/if} {if $total_pages > 1 && $smarty.get.page != 'full_list'} {/if} {if $total_pages > 1 && $smarty.get.page != 'full_list'} {/if}
{$lang.for_this_page_orders}:    {$lang.gross_total}:  {include file="common_templates/price.tpl" value=$display_totals.gross_total}
  {$lang.totally_paid}:  {include file="common_templates/price.tpl" value=$display_totals.totally_paid}

{$lang.for_all_found_orders}:   {$lang.gross_total}:  {include file="common_templates/price.tpl" value=$totals.gross_total}
 {$lang.totally_paid}:  {include file="common_templates/price.tpl" value=$totals.totally_paid}
{include file="common_templates/pagination.tpl"} {if 'change_order_status'|fn_check_privileges:true} {/if} {if 'delete_orders'|fn_check_privileges:true} {/if} {if 'view_orders'|fn_check_privileges:true} {/if} {if 'edit_order'|fn_check_privileges:true} {/if}
{include file="buttons/button.tpl" but_text=$lang.update_status but_onclick="javascript: document.orders_list_form.`$mode_name`.value='update_status'; document.orders_list_form.submit();" but_type="input"}     {include file="buttons/button.tpl" but_text=$lang.delete_selected but_onclick="javascript: fn_delete_selected('orders_list_form','delete_orders');" but_type="input"}     {include file="buttons/button.tpl" but_text=$lang.bulk_print but_onclick="javascript: fn_bulk_print();" but_type="input"}    {include file="buttons/button.tpl" but_text=$lang.remove_cc_info but_onclick="javascript: if (fn_check_selected('orders_list_form', 'delete_checkbox')) `$ldelim` document.orders_list_form.`$mode_name`.value='remove_cc_info'; document.orders_list_form.submit();`$rdelim`" but_type="input"}
{/if}
{/capture} {include file="common_templates/mainbox.tpl" title=$lang.orders content=$smarty.capture.mainbox} {literal} {/literal}