This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default_admin/blocks/core/admin.tpl

151 lines
5.8 KiB
Smarty
Raw Normal View History

{if $SESS_LOGGED == true}
2009-08-03 04:10:16 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
2009-08-03 04:10:16 +00:00
<!-- 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>
2009-08-03 04:10:16 +00:00
{$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&amp;period=w"><b>{t module=invoice}Weekly{/t}</b></a> |
<a href="?_page=core:admin&amp;period=m"><b>{t module=invoice}Monthly{/t}</b></a> |
<a href="?_page=core:admin&amp;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">
2009-08-03 04:10:16 +00:00
<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">
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
<!-- @todo this test should be is-installed, and show_affliates from the affliate config, not the core config -->
{if $show_affiliates == true}
2010-11-29 22:41:08 +00:00
<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>
2009-08-03 04:10:16 +00:00
</tr>
{/if}
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<br/>
{$calendar}
{/if}
2009-08-03 04:10:16 +00:00
{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}