{include file="scripts/form_scripts.tpl"} {************************************************** P A Y M E N T ****************************************} {if $element.code == 'payment'} {/if}
{if $payments} {foreach from=$payments item=payment name="pf"} {cycle values='class="manage-row", ' assign='class'} {/foreach}
{$lang.payment} {$lang.processor} {$lang.membership}
{assign var="pay_id" value=$payment.payment_id} {$payment.payment|escape:html} {foreach from=$payment_processors item="processor"} {if $payment.processor_id == $processor.processor_id}{$processor.processor}{/if} {/foreach} {if $payment.membership}{$payment.membership}{else}-all-{/if}

{include file="buttons/update.tpl" but_onclick="javascript: document.table_condition_payment.submit(); setTimeout('window.close()', 500);"}

{else}

{$lang.text_no_items_found|replace:'[items]':$lang.payment_methods}

{************************************************** L O C A T I O N ****************************************} {elseif $element.code == 'location'}
{foreach from=$destinations item=destination} {/foreach}
{$lang.destination_name}
{assign var="dest_id" value=$destination.destination_id} {$destination.destination|escape:html}

{include file="buttons/update.tpl" but_onclick="javascript:document.table_condition_location.submit(); setTimeout('window.close()', 500);" but_type="input"}

{************************************************** S T A T U S ****************************************} {elseif $element.code == 'status'}
{foreach from=$order_status_descr key=id item=status} {/foreach}
{$lang.status}
{$status|escape:html}

{include file="buttons/button.tpl" but_text=$lang.update but_type="input" but_onclick="document.table_condition_status.submit(); setTimeout('window.close()', 500);"}

{************************************************** C A T E G O R Y ****************************************} {elseif $element.code == 'category'}
{assign var="level" value="0"} {include file="discounts_pages/categories_tree.tpl" parent_id="0" header="1" form_name="table_condition_category" checkbox_name="add_parameter" path=$element.conditions.path conditions=$element.conditions}

{include file="buttons/update.tpl" but_type="input" but_onclick="document.table_condition_category.submit(); setTimeout('window.close()', 500);"}

{************************************************** O R D E R ****************************************} {elseif $element.code == 'order'}
{************** defined Orders ****************}

{include file="common_templates/subheader.tpl" title=$lang.defined_orders}

{if $element.conditions} {foreach from=$element.conditions item="o"} {/foreach}
{$lang.id} {$lang.status} {$lang.customer} {$lang.date} {$lang.total}
 #{$o.order_id}  {include file="orders_pages/order_status.tpl" status=$o.status display="view" 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}

{include file="buttons/delete_selected.tpl" but_onclick="javascript: fn_delete_selected('condition_orders_form','table', true);"}

{else}

{$lang.text_no_orders}

{/if}
{************** search for Orders ****************} {include file="common_templates/subheader.tpl" title=$lang.add_orders_to_section} {capture name="section"} {include file="orders_pages/orders_search_form.tpl" target="statistics" mode="table" action="parameter_details" search_orders="Y" report_id=$report_id table_id=$table_id element_hash=$element_hash} {/capture} {include file="common_templates/section.tpl" section_title=$lang.search section_content=$smarty.capture.section} {************** List of found Orders ****************} {if $orders}
{include file="common_templates/pagination.tpl"} {foreach from=$orders item="o"} {/foreach}
{$lang.id} {$lang.status} {$lang.customer} {$lang.date} {$lang.total}
 #{$o.order_id}  {include file="orders_pages/order_status.tpl" status=$o.status display="view" 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}
{include file="common_templates/pagination.tpl"}

{include file="buttons/button.tpl" but_onclick="javascript: if (fn_check_selected('add_condition_orders','add_condition_orders_checkbox')) document.add_condition_orders.submit();" but_text=$lang.add_orders but_type="input" action_but="action_"}
{/if}

{include file="buttons/button.tpl" but_text=$lang.close but_type="input" but_onclick="document.table_condition_order.submit(); setTimeout('window.close()', 500);"}
{************************************************** P R O D U C T ****************************************} {elseif $element.code == 'product'}

{include file="common_templates/subheader.tpl" title=$lang.defined_products}

{if $element.conditions}
{/if} {include file="products_pages/products_list_update.tpl" products=$element.conditions form_name="condition_products_form" no_pos="Y" no_href="Y"}

{if $element.conditions} {include file="buttons/delete_selected.tpl" but_onclick="javascript: fn_delete_selected('condition_products_form','table', true);"}


{/if} {include file="common_templates/subheader.tpl" title=$lang.add_products_to_section} {capture name="section"} {include file="products_pages/products_search_form.tpl" target=$target mode=$mode report_id=$report_id table_id=$table_id search_products="Y" element_hash=$element_hash} {/capture} {include file="common_templates/section.tpl" section_title=$lang.search_for_products section_content=$smarty.capture.section} {if $smarty.get.search_products == 'Y'} {if $products}
{/if} {include file="products_pages/products_list.tpl" products=$products form_name="add_condition_products" checkbox_id="add_condition_product_checkbox" checkbox_name="add_parameter" no_href="Y"} {if $products} {** Form submit section **}

{include file="buttons/add_products.tpl" but_onclick="javascript: if (fn_check_selected('add_condition_products','add_condition_product_checkbox')) document.add_condition_products.submit();"} {** /Form submit section **}

{/if} {/if}

{include file="buttons/button.tpl" but_text=$lang.close but_type="input" but_onclick="document.table_condition_products.submit(); setTimeout('window.close()', 500);"}
{************************************************** U S E R ****************************************} {elseif $element.code == 'user'}
{include file="profiles_pages/profiles_scripts.tpl"}

{include file="common_templates/subheader.tpl" title=$lang.defined_users}

{if $element.conditions}
{/if} {if $element.conditions} {foreach from=$element.conditions item=user} {/foreach}
{$lang.id} {$lang.username} {$lang.name} {$lang.registered} {$lang.type} {$lang.active}
 {$user.user_id}  {$user.user_login} {$user.firstname} {$user.lastname} {$user.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"} {if $user.user_type == 'A'}{$lang.administrator}{elseif $user.user_type == 'C'}{$lang.customer}{/if} {if $user.active == 'Y'}+{/if}

{include file="buttons/delete_selected.tpl" but_onclick="javascript: fn_delete_selected('condition_users_form','table', true);"}

{else}

{$lang.text_no_users_defined}

{/if}
{include file="common_templates/subheader.tpl" title=$lang.add_users_to_section} {include file="profiles_pages/user_search.tpl" target=$target mode=$mode search_users="Y" report_id=$report_id table_id=$table_id element_hash=$element_hash} {if $users}

{include file="common_templates/pagination.tpl"} {foreach from=$users item=user} {/foreach}
{$lang.id} {$lang.username} {$lang.name} {$lang.registered} {$lang.type} {$lang.active}
 {$user.user_id}  {$user.user_login} {$user.firstname} {$user.lastname} {$user.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"} {if $user.user_type == 'A'}{$lang.administrator}{elseif $user.user_type == 'C'}{$lang.customer}{/if} {if $user.active == 'Y'}+{/if}
{include file="common_templates/pagination.tpl"}

{include file="buttons/button.tpl" but_onclick="javascript: if (fn_check_selected('add_condition_users','add_condition_users_checkbox')) document.add_condition_users.submit();" but_text=$lang.add_users but_type="input" action_but="action_"}

{/if}

{include file="buttons/button.tpl" but_text=$lang.close but_type="input" but_onclick="document.table_condition_products.submit(); setTimeout('window.close()', 500);"}
{/if} {********************************* /// ***********************************}