151 lines
5.8 KiB
Smarty
151 lines
5.8 KiB
Smarty
{if $SESS_LOGGED == true}
|
|
|
|
{assign var=meth value=':'|explode:$VAR._page}
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
<!-- Quick Search -->
|
|
<form id="quick_search" method="post" action="" enctype="multipart/form-data">
|
|
<div>
|
|
<span style="text-decoration: underline;">{t}Account Quick Search{/t}</span> {osb f=autoselect module=account return=id field=id}
|
|
<input type="hidden" name="_page" value="account:view"/>
|
|
</div>
|
|
</form>
|
|
|
|
{$method->exe('invoice','performance')}
|
|
{if $method->result == true}
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td class="body">
|
|
<div style="text-align: center;">
|
|
<a href="?_page=core:admin&period=w"><b>{t module=invoice}Weekly{/t}</b></a> |
|
|
<a href="?_page=core:admin&period=m"><b>{t module=invoice}Monthly{/t}</b></a> |
|
|
<a href="?_page=core:admin&period=y"><b>{t module=invoice}Yearly{/t}</b></a>
|
|
</div>
|
|
<br/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<form id="performance" method="post" action="" enctype="multipart/form-data">
|
|
|
|
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
<tr>
|
|
<td>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="3">
|
|
<tr valign="middle" align="center" class="table_heading">
|
|
<td style="width: 25%;" class="table_heading">{t}Indicator{/t}</td>
|
|
<td style="width: 30%;" class="table_heading">{t}Period{/t}</td>
|
|
<td style="width: 15%;" class="table_heading"><b>{t}Current{/t}</b></td>
|
|
<td style="width: 15%;" class="table_heading">{t}Previous{/t}</td>
|
|
<td style="width: 15%;" class="table_heading"><b>{t}Change{/t}</b></td>
|
|
</tr>
|
|
<tr class="row{cycle values="1,2"}">
|
|
<td style="background: #ECFAEB;"><b>{t}Sales{/t}</b></td>
|
|
<td>{$period_compare}</td>
|
|
<td><b>{$list->format_currency_num($sales_current)}</b></td>
|
|
<td>{$list->format_currency_num($sales_previous)}</td>
|
|
<td style="text-align: center;">
|
|
{if $sales_change < 0}
|
|
<font color="#990000">{$sales_change|number_format:2}%</font>
|
|
{else}
|
|
+{$sales_change|number_format:2}%
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr class="row{cycle}">
|
|
<td style="background: #ECFAEB;"><b>{t}Forcast{/t}</b></td>
|
|
<td>{$period_forcast}</td>
|
|
<td><b>{$list->format_currency_num($forcast_current)}</b></td>
|
|
<td>-</td>
|
|
<td style="text-align: center;">
|
|
{if $forcast_change < 0}
|
|
<font color="#990000">{$forcast_change|number_format:2}%</font>
|
|
{else}
|
|
+{$forcast_change|number_format:2}%
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr class="row{cycle}">
|
|
<td style="background: #ECFAEB;"><b>{t}Quota{/t}</b></td>
|
|
<td>{t}Today{/t}</td>
|
|
<td><b>{$list->format_currency_num($quota_current)}</b></td>
|
|
<td>-</td>
|
|
<td style="text-align: center;"><b>-</b></td>
|
|
</tr>
|
|
<tr class="row{cycle}">
|
|
<td style="background: #ECFAEB;"><b>{t}A/R Credits{/t}</b></td>
|
|
<td>{$period_compare}</td>
|
|
<td><b>{$list->format_currency_num($ar_credits_current)}</b></td>
|
|
<td>{$list->format_currency_num($ar_credits_previous)}</td>
|
|
<td style="text-align: center;">
|
|
{if $ar_credit_change < 0}
|
|
<font color="#990000">{$ar_credit_change|number_format:2}%</font>
|
|
{else}
|
|
+{$ar_credit_change|number_format:2}%
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<tr class="row{cycle}">
|
|
<td style="background: #ECFAEB;"><b>{t}A/R Balance{/t}</b></td>
|
|
<td>{$period_compare}</td>
|
|
<td><b>{$list->format_currency_num($ar_balance_current)}</b></td>
|
|
<td>{$list->format_currency_num($ar_balance_last)}</td>
|
|
<td style="text-align: center;"><b>-</b></td>
|
|
</tr>
|
|
<tr class="row{cycle}">
|
|
<td style="background: #ECFAEB;"><b>{t}Users{/t}</b></td>
|
|
<td>{$period_compare}</td>
|
|
<td><b>{$users_current}</b></td>
|
|
<td>{$users_previous}</td>
|
|
<td style="text-align: center;">
|
|
{if $users_change < 0}
|
|
<font color="#990000">{$users_change|number_format:2}%</font>
|
|
{else}
|
|
+{$users_change|number_format:2}%
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
<!-- @todo this test should be is-installed, and show_affliates from the affliate config, not the core config -->
|
|
{if $show_affiliates == true}
|
|
<tr class="row{cycle}">
|
|
<td style="background: #ECFAEB;"><b>{t module=invoice}affiliatesales{/t}</b></td>
|
|
<td>{$period_compare}</td>
|
|
<td><b>{$list->format_currency_num($affiliate_sales_current)}</b></td>
|
|
<td>{$list->format_currency_num($affiliate_sales_previous)}</td>
|
|
<td style="text-align: center;">
|
|
{if $affiliate_sales_change < 0}
|
|
<font color="#990000">{$affiliate_sales_change|number_format:2}%</font>
|
|
{else}
|
|
+{$affiliate_sales_change|number_format:2}%
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
{$calendar}
|
|
{/if}
|
|
|
|
{if $list->is_installed('account_message')}
|
|
{$method->exe_noauth('account_message','view')}
|
|
<br/>
|
|
<b>{t}Update System Message{/t}</b><br/>
|
|
<form id="account_message_view" method="post" action="" enctype="multipart/form-data">
|
|
<textarea name="message" cols="50" rows="5">{$message}</textarea>
|
|
<input type="hidden" name="do[]" value="account_message:add"/>
|
|
<input type="hidden" name="_page" value="core:admin"/>
|
|
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
|
|
</form>
|
|
{/if}
|
|
|
|
{else}
|
|
{$block->display('account:main')}
|
|
{/if}
|