{assign var=title value="User Payments/Subscriptions"} {include file="admin/header.inc.html"} {include file="admin/user_nb.inc.html" selected="payments"}

{$title}

{foreach from=$payments item=p} {/foreach}
Product Period Payment System Receipt # Amount, {$config.currency|default:"$"} Paid Status  
{if (not $p.completed)} {if ($p.items_count > 1)} {$config.multi_title} ({$p.items_count} items) {else} {lookup arr=$products key=$p.product_id} {/if} {else} {* completed *} {if ($p.items_count > 1)} {lookup arr=$products key=$p.product_id} {else} {lookup arr=$products key=$p.product_id} {/if} {/if} {$p.begin_date|amember_date_format} - {$p.expire_date|amember_date_format:$config.date_format} {lookup arr=$paysystems key=$p.paysys_id} {$p.receipt_id} {$config.currency|default:"$"}{$p.amount} {if $p.completed}YES{else}NO{/if} {if $p.completed} {if $p.expire_date >= date('Y-m-d') and $p.begin_date <= date('Y-m-d') } Active {elseif $p.expire_date < date('Y-m-d') } Expired {elseif $p.begin_date > date('Y-m-d') } Future {/if} {else} Not-Paid {/if} {if $p.data.CANCELLED}
CANCELLED{/if} {if $p.cancel_url && $p.completed}
Stop Recurring{/if}
Edit Del

ADD NEW PAYMENT/SUBSCRIPTION
{html_select_date all_extra="class=small" prefix="begin_date" time=$p.begin_date start_year="-10" end_year="2037" time=""} - {html_select_date all_extra="class=small" prefix="expire_date" time=$p.exipre_date start_year="-10" end_year="2037" time=""}

{include file="admin/footer.inc.html"}