<script type="text/javascript" src="../includes/jscript/jqueryag.js"></script>

{if $maintenancemode}
<div class="errorbox" style="font-size:14px;">
{$_ADMINLANG.home.maintenancemode}
</div>
<br />
{/if}

{$infobox}

{if $viewincometotals}
<div id="incometotals" class="contentbox" style="font-size:18px;"><a href="transactions.php"><img src="images/icons/transactions.png" align="absmiddle" border="0"> <b>{$_ADMINLANG.billing.income}</b></a> <img src="images/loading.gif" align="absmiddle" /> {$_ADMINLANG.global.loading}</div>
<br />
{/if}

{foreach from=$addons_html item=addon_html}
<div style="margin-bottom:15px;">{$addon_html}</div>
{/foreach}

<div class="homecolumn" id="homecol1">

    <div class="homewidget" id="sysinfo">
        <div class="widget-header">{$_ADMINLANG.global.systeminfo}</div>
        <div class="widget-content">
<table width="100%">
<tr><td width="20%" style="text-align:right;padding-right:5px;">{$_ADMINLANG.license.regto}</td><td width="35%">{$licenseinfo.registeredname}</td><td width="10%" style="text-align:right;padding-right:5px;">{$_ADMINLANG.license.expires}</td><td width="35%">{$licenseinfo.expires}</td></tr>
<tr><td style="text-align:right;padding-right:5px;">{$_ADMINLANG.license.type}</td><td>{$licenseinfo.productname}</td><td style="text-align:right;padding-right:5px;">{$_ADMINLANG.global.version}</td><td>{$licenseinfo.currentversion}{if $licenseinfo.updateavailable} <span class="textred"><b>{$_ADMINLANG.license.updateavailable}</b></span>{/if}</td></tr>
<tr><td style="text-align:right;padding-right:5px;">{$_ADMINLANG.global.staffonline}</td><td colspan="3">{$adminsonline}</td></tr>
</table>
        </div>
    </div>

{foreach from=$widgets item=widget}
    <div class="homewidget" id="{$widget.name}">
        <div class="widget-header">{$widget.title}</div>
        <div class="widget-content">
            {$widget.content}
        </div>
    </div>
{/foreach}

</div>

<div class="homecolumn" id="homecol2">

</div>

<div style="clear:both;"></div>

<div id="geninvoices" title="{$_ADMINLANG.invoices.geninvoices}">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 40px 0;"></span>{$_ADMINLANG.invoices.geninvoicessendemails}</p>
</div>
<div id="cccapture" title="{$_ADMINLANG.invoices.attemptcccaptures}">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 40px 0;"></span>{$_ADMINLANG.invoices.attemptcccapturessure}</p>
</div>