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
2011-05-03 09:49:01 +10:00

121 lines
5.1 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&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">
<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 width="25%" class="table_heading">{t}Indicator{/t}</td>
<td width="30%" class="table_heading">{t}Period{/t}</td>
<td width="15%" class="table_heading"><b>{t}Current{/t}</b></td>
<td width="15%" class="table_heading">{t}Previous{/t}</td>
<td width="15%" class="table_heading"><b>{t}Change{/t}</b></td>
</tr>
<tr class="row1">
<td width="214" bgcolor="#ECFAEB"><b>{t}Sales{/t}</b></td>
<td width="273">{$period_compare}</td>
<td width="358"><b>{$list->format_currency_num($sales_current,'')}</b></td>
<td width="330">{$list->format_currency_num($sales_previous,'')}</td>
<td width="173" align="center">{$sales_change}</td>
</tr>
<tr class="row2">
<td width="214" bgcolor="#ECFAEB"><b>{t}Forcast{/t}</b></td>
<td width="273">{$period_forcast}</td>
<td width="358"><b>{$list->format_currency_num($forcast_current,'')}</b></td>
<td width="330">-</td>
<td width="173" align="center">{$forcast_change}</td>
</tr>
<tr class="row1">
<td width="214" bgcolor="#ECFAEB"><b>{t}Quota{/t}</b></td>
<td width="273">{t}Today{/t}</td>
<td width="358"><b>{$list->format_currency_num($quota_current,'')}</b></td>
<td width="330">-</td>
<td width="173" align="center"><b>-</b></td>
</tr>
<tr class="row2">
<td width="214" bgcolor="#ECFAEB"><b>{t}A/R Credits{/t}</b></td>
<td width="273">{$period_compare}</td>
<td width="358"><b>{$list->format_currency_num($ar_credits_current,'')}</b></td>
<td width="330">{$list->format_currency_num($ar_credits_previous,'')}</td>
<td width="173" align="center">{$ar_credit_change}</td>
</tr>
<tr class="row1">
<td width="214" bgcolor="#ECFAEB"><b>{t}A/R Balance{/t}</b></td>
<td width="273">{$period_compare}</td>
<td width="358"><b>{$list->format_currency_num($ar_balance_current,'')}</b></td>
<td width="330">{$list->format_currency_num($ar_balance_last,'')}</td>
<td width="173" align="center"><b>-</b></td>
</tr>
<tr class="row2">
<td width="214" bgcolor="#ECFAEB"><b>{t}Users{/t}</b></td>
<td width="273">{$period_compare}</td>
<td width="358"><b>{$users_current}</b></td>
<td width="330">{$users_previous}</td>
<td width="173" align="center">{$users_change}</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="row2">
<td width="214" bgcolor="#ECFAEB"><b>{t module=invoice}affiliatesales{/t}</b></td>
<td width="273">{$period_compare}</td>
<td width="358"><b>{$list->format_currency_num($affiliate_sales_current,'')}</b></td>
<td width="330">{$list->format_currency_num($affiliate_sales_previous,'')}</td>
<td width="173" align="center">{$affiliate_sales_change}</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}