Plethora of updates

This commit is contained in:
root 2014-02-27 17:59:02 -07:00
parent fc4ead86cf
commit a50f204939
43 changed files with 554 additions and 554 deletions

4
public/templates/bootstrap/about/donors/default.tpl Normal file → Executable file
View File

@ -5,7 +5,7 @@
Pool Donors
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Name</th>
@ -22,7 +22,7 @@
</tr>
{sectionelse}
<tr>
<td align="center" colspan="3">No confirmed donations yet, please be patient!</td>
<td colspan="3">No confirmed donations yet, please be patient!</td>
</tr>
{/section}
</tbody>

View File

@ -38,16 +38,16 @@
<thead style="font-size:13px;">
<tr>
<th>E-Mail</th>
<th align="center">Sent</th>
<th align="center">Activated</th>
<th>Sent</th>
<th>Activated</th>
</tr>
</thead>
<tbody>
{section name=invite loop=$INVITATIONS}
<tr>
<td>{$INVITATIONS[invite].email}</td>
<td align="center">{$INVITATIONS[invite].time|date_format:"%d/%m/%Y %H:%M:%S"}</td>
<td align="center"><i class="icon-{if $INVITATIONS[invite].is_activated}ok{else}cancel{/if}"></i></td>
<td>{$INVITATIONS[invite].time|date_format:"%d/%m/%Y %H:%M:%S"}</td>
<td><i class="icon-{if $INVITATIONS[invite].is_activated}ok{else}cancel{/if}"></i></td>
</tr>
{/section}
<tbody>

View File

@ -14,11 +14,11 @@
<table width="100%">
<tr>
<th align="left">Type</th>
<th align="center">Active</th>
<th>Type</th>
<th>Active</th>
</tr>
<tr>
<td align="left">IDLE Worker</td>
<td>IDLE Worker</td>
<td>
<label for="data[idle_worker]">
<input type="hidden" name="data[idle_worker]" value="0" />
@ -28,7 +28,7 @@
</tr>
{if $DISABLE_BLOCKNOTIFICATIONS|default:"" != 1}
<tr>
<td align="left">New Blocks</td>
<td>New Blocks</td>
<td>
<label for="data[new_block]">
<input type="hidden" name="data[new_block]" value="0" />
@ -38,7 +38,7 @@
</tr>
{/if}
<tr>
<td align="left">Payout</td>
<td>Payout</td>
<td>
<label for="data[payout]">
<input type="hidden" name="data[payout]" value="0" />
@ -47,7 +47,7 @@
</td>
</tr>
<tr>
<td align="left">Successful Login</td>
<td>Successful Login</td>
<td>
<span class="toggle">
<label for="data[success_login]">
@ -76,18 +76,18 @@
<table class="table table-hover">
<thead>
<tr>
<th align="center">ID</th>
<th align="center">Time</th>
<th align="center">Type</th>
<th align="center">Active</th>
<th>ID</th>
<th>Time</th>
<th>Type</th>
<th>Active</th>
</tr>
</thead>
<tbody style="font-size:12px;">
{section notification $NOTIFICATIONS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$NOTIFICATIONS[notification].id}</td>
<td align="center">{$NOTIFICATIONS[notification].time}</td>
<td align="center">
<tr>
<td>{$NOTIFICATIONS[notification].id}</td>
<td>{$NOTIFICATIONS[notification].time}</td>
<td>
{if $NOTIFICATIONS[notification].type == new_block}New Block
{else if $NOTIFICATIONS[notification].type == auto_payout}Auto Payout
{else if $NOTIFICATIONS[notification].type == idle_worker}IDLE Worker
@ -95,7 +95,7 @@
{else if $NOTIFICATIONS[notification].type == success_login}Successful Login
{/if}
</td>
<td align="center">
<td>
<i class="fa-{if $NOTIFICATIONS[notification].active}check{else}times{/if} fa-fw"></i>
</td>
</tr>

View File

@ -7,7 +7,7 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
{foreach $SUMMARY as $type=>$total}
@ -41,17 +41,17 @@
<form action="{$smarty.server.SCRIPT_NAME}" role="form">
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td align="left">
<td>
{if $smarty.request.start|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="fa fa-chevron-left fa-fw"></i></a>
{else}
<i class="fa fa-chevron-left fa-fw"></i>
{/if}
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="fa fa-chevron-right fa-fw"></i></a>
</td>
</tr>
@ -83,10 +83,10 @@
<table class="table table-hover">
<thead>
<tr>
<th align="center">ID</th>
<th>ID</th>
<th>Date</th>
<th>TX Type</th>
<th align="center">Status</th>
<th>Status</th>
<th>Payment Address</th>
<th>TX #</th>
<th>Block #</th>
@ -95,11 +95,11 @@
</thead>
<tbody style="font-size:12px;">
{section transaction $TRANSACTIONS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$TRANSACTIONS[transaction].id}</td>
<tr>
<td>{$TRANSACTIONS[transaction].id}</td>
<td>{$TRANSACTIONS[transaction].timestamp}</td>
<td>{$TRANSACTIONS[transaction].type}</td>
<td align="center">
<td>
{if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR
$TRANSACTIONS[transaction].type == 'Fee_PPS' OR
$TRANSACTIONS[transaction].type == 'Donation_PPS' OR

28
public/templates/bootstrap/account/workers/default.tpl Normal file → Executable file
View File

@ -41,13 +41,13 @@
<table class="table table-hover">
<thead>
<tr>
<th align="left">Worker Login</th>
<th align="left">Worker Password</th>
<th align="center">Active</th>
{if $GLOBAL.config.disable_notifications != 1}<th align="center">Monitor</th>{/if}
<th align="right">Khash/s</th>
<th align="right">Difficulty</th>
<th align="center" style="padding-right: 25px;">Action</th>
<th>Worker Login</th>
<th>Worker Password</th>
<th>Active</th>
{if $GLOBAL.config.disable_notifications != 1}<th>Monitor</th>{/if}
<th>Khash/s</th>
<th>Difficulty</th>
<th style="padding-right: 25px;">Action</th>
</tr>
</thead>
<tbody>
@ -55,19 +55,19 @@
{section worker $WORKERS}
{assign var="username" value="."|escape|explode:$WORKERS[worker].username:2}
<tr>
<td align="left"{if $WORKERS[worker].hashrate > 0} style="color: orange"{/if}>{$username.0|escape}.<input class="form-control" name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required/></td>
<td align="left"><input class="form-control" type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
<td align="center"><i class="fa fa-{if $WORKERS[worker].hashrate > 0}check{else}times {/if}fa-fw"></i></td>
<td{if $WORKERS[worker].hashrate > 0} style="color: orange"{/if}>{$username.0|escape}.<input class="form-control" name="data[{$WORKERS[worker].id}][username]" value="{$username.1|escape}" size="10" required/></td>
<td><input class="form-control" type="text" name="data[{$WORKERS[worker].id}][password]" value="{$WORKERS[worker].password|escape}" size="10" required></td>
<td><i class="fa fa-{if $WORKERS[worker].hashrate > 0}check{else}times {/if}fa-fw"></i></td>
{if $GLOBAL.config.disable_notifications != 1}
<td align="center">
<td>
<label for="data[{$WORKERS[worker].id}][monitor]">
<input type="checkbox" name="data[{$WORKERS[worker].id}][monitor]" value="1" id="data[{$WORKERS[worker].id}][monitor]" {if $WORKERS[worker].monitor}checked{/if} />
</label>
</td>
{/if}
<td align="right">{$WORKERS[worker].hashrate|number_format}</td>
<td align="right">{$WORKERS[worker].difficulty|number_format:"2"}</td>
<td align="center" style="padding-right: 25px;"><a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&do=delete&id={$WORKERS[worker].id|escape}&ctoken={$CTOKEN}"><i class="fa fa-trash-o fa-fw"></i></a></td>
<td>{$WORKERS[worker].hashrate|number_format}</td>
<td>{$WORKERS[worker].difficulty|number_format:"2"}</td>
<td style="padding-right: 25px;"><a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&do=delete&id={$WORKERS[worker].id|escape}&ctoken={$CTOKEN}"><i class="fa fa-trash-o fa-fw"></i></a></td>
</tr>
{/section}
{/nocache}

View File

@ -4,19 +4,19 @@
<a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=invitations">Invitations</a>
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Total</th>
<th align="center">Activated</th>
<th align="center">Outstanding</th>
<th>Total</th>
<th>Activated</th>
<th>Outstanding</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">{$INVITATION_INFO.total}</td>
<td align="center">{$INVITATION_INFO.activated}</td>
<td align="center">{$INVITATION_INFO.outstanding}</td>
<td>{$INVITATION_INFO.total}</td>
<td>{$INVITATION_INFO.activated}</td>
<td>{$INVITATION_INFO.outstanding}</td>
</tr>
</tbody>
</table>

30
public/templates/bootstrap/admin/dashboard/mpos.tpl Normal file → Executable file
View File

@ -5,33 +5,33 @@
MPOS Version Information
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Component</th>
<th align="center">Current</th>
<th align="center">Installed</th>
<th>Current</th>
<th>Installed</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>MPOS</strong></td>
<td align="center"><font color="green">{$VERSION['CURRENT']['CORE']}</font></td>
<td align="center">
<td><font color="green">{$VERSION['CURRENT']['CORE']}</font></td>
<td>
<font color="{if $VERSION['INSTALLED']['CORE'] == $VERSION['CURRENT']['CORE']}green{else}red{/if}">{$VERSION['INSTALLED']['CORE']}</font>
</td>
</tr>
<tr>
<td><strong>Config</strong></td>
<td align="center"><font color="green">{$VERSION['CURRENT']['CONFIG']}</font></td>
<td align="center">
<td><font color="green">{$VERSION['CURRENT']['CONFIG']}</font></td>
<td>
<font color="{if $VERSION['INSTALLED']['CONFIG'] == $VERSION['CURRENT']['CONFIG']}green{else}red{/if}">{$VERSION['INSTALLED']['CONFIG']}</font>
</td>
</tr>
<tr>
<td><strong>Database</strong></td>
<td align="center"><font color="green">{$VERSION['CURRENT']['DB']}</font></td>
<td align="center">
<td><font color="green">{$VERSION['CURRENT']['DB']}</font></td>
<td>
<font color="{if $VERSION['INSTALLED']['DB'] == $VERSION['CURRENT']['DB']}green{else}red{/if}">{$VERSION['INSTALLED']['DB']}</font>
</td>
</tr>
@ -47,11 +47,11 @@
MPOS Status
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th colspan="2" align="center">Cronjobs</th>
<th align="center">Wallet</th>
<th colspan="2">Cronjobs</th>
<th>Wallet</th>
</tr>
<tr>
<th><strong>Errors</strong></th>
@ -61,13 +61,13 @@
</thead>
<tbody>
<tr>
<td align="center">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=monitoring">{if $CRON_ERROR == 0}None - OK{else}{$CRON_ERROR}{/if}</a>
</td>
<td align="center">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=monitoring">{if $CRON_DISABLED == 0}None - OK{else}{$CRON_DISABLED}{/if}</a>
</td>
<td align="center">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=wallet">{$WALLET_ERROR|default:"None - OK"}</a>
</td>
</tr>

View File

@ -4,24 +4,24 @@
<a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=registrations">Registrations</a>
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">24 hours</th>
<th align="center">7 days</th>
<th align="center">1 month</th>
<th align="center">6 months</th>
<th align="center">1 year</th>
<th>24 hours</th>
<th>7 days</th>
<th>1 month</th>
<th>6 months</th>
<th>1 year</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">{$USER_REGISTRATIONS.24hours}</td>
<td align="center">{$USER_REGISTRATIONS.7days}</td>
<td align="center">{$USER_REGISTRATIONS.1month}</td>
<td align="center">{$USER_REGISTRATIONS.6month}</td>
<td align="center">{$USER_REGISTRATIONS.1year}</td>
<td>{$USER_REGISTRATIONS.24hours}</td>
<td>{$USER_REGISTRATIONS.7days}</td>
<td>{$USER_REGISTRATIONS.1month}</td>
<td>{$USER_REGISTRATIONS.6month}</td>
<td>{$USER_REGISTRATIONS.1year}</td>
</tr>
</tbody>
</table>

44
public/templates/bootstrap/admin/dashboard/user.tpl Normal file → Executable file
View File

@ -5,23 +5,23 @@
Users
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Total</th>
<th align="center">Active</th>
<th align="center">Locked</th>
<th align="center">Admins</th>
<th align="center">No Fees</th>
<th>Total</th>
<th>Active</th>
<th>Locked</th>
<th>Admins</th>
<th>No Fees</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">{$USER_INFO.total}</td>
<td align="center">{$USER_INFO.active}</td>
<td align="center">{$USER_INFO.locked}</td>
<td align="center">{$USER_INFO.admins}</td>
<td align="center">{$USER_INFO.nofees}</td>
<td>{$USER_INFO.total}</td>
<td>{$USER_INFO.active}</td>
<td>{$USER_INFO.locked}</td>
<td>{$USER_INFO.admins}</td>
<td>{$USER_INFO.nofees}</td>
</tr>
</tbody>
</table>
@ -35,23 +35,23 @@
Logins
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">24 hours</th>
<th align="center">7 days</th>
<th align="center">1 month</th>
<th align="center">6 months</th>
<th align="center">1 year</th>
<th>24 hours</th>
<th>7 days</th>
<th>1 month</th>
<th>6 months</th>
<th>1 year</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">{$USER_LOGINS.24hours}</td>
<td align="center">{$USER_LOGINS.7days}</td>
<td align="center">{$USER_LOGINS.1month}</td>
<td align="center">{$USER_LOGINS.6month}</td>
<td align="center">{$USER_LOGINS.1year}</td>
<td>{$USER_LOGINS.24hours}</td>
<td>{$USER_LOGINS.7days}</td>
<td>{$USER_LOGINS.1month}</td>
<td>{$USER_LOGINS.6month}</td>
<td>{$USER_LOGINS.1year}</td>
</tr>
</tbody>
</table>

View File

@ -6,41 +6,41 @@
Top Inviters
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td align="left">
<td>
{if $smarty.request.invitersstart|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&invitersstart={$smarty.request.invitersstart|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}#invitations"><i class="icon-left-open"></i> Previous 10</a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&invitersstart={$smarty.request.invitersstart|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}#invitations">Next 10 <i class="icon-right-open"></i></a>
</td>
</tbody>
</table>
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Username</th>
<th align="left">eMail</th>
<th align="center">Amount</th>
<th align="center">Outstanding</th>
<th align="center">Activated</th>
<th>eMail</th>
<th>Amount</th>
<th>Outstanding</th>
<th>Activated</th>
</tr>
</thead>
<tbody>
{section inviter $TOPINVITERS}
<tr class="{cycle values="odd,even"}">
<td align="left">{$TOPINVITERS[inviter].username|escape}</td>
<td align="left">{$TOPINVITERS[inviter].email}</td>
<td align="center">{$TOPINVITERS[inviter].invitationcount}</td>
<td align="center">{($TOPINVITERS[inviter].invitationcount - $TOPINVITERS[inviter].activated)|number_format:"0"}</td>
<td align="center">{$TOPINVITERS[inviter].activated}</td>
<tr>
<td>{$TOPINVITERS[inviter].username|escape}</td>
<td>{$TOPINVITERS[inviter].email}</td>
<td>{$TOPINVITERS[inviter].invitationcount}</td>
<td>{($TOPINVITERS[inviter].invitationcount - $TOPINVITERS[inviter].activated)|number_format:"0"}</td>
<td>{$TOPINVITERS[inviter].activated}</td>
</tr>
{/section}
</tbody>

18
public/templates/bootstrap/admin/monitoring/default.tpl Normal file → Executable file
View File

@ -5,24 +5,24 @@
Monitoring
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<th>Cronjob</th>
<th align="center">Disabled</th>
<th align="center">Exit Code</th>
<th align="center">Active</th>
<th align="center">Runtime</th>
<th align="center">Start Time</th>
<th align="center">End Time</th>
<th align="center">Message</th>
<th>Disabled</th>
<th>Exit Code</th>
<th>Active</th>
<th>Runtime</th>
<th>Start Time</th>
<th>End Time</th>
<th>Message</th>
</thead>
<tbody>
{foreach $CRONSTATUS as $cron => $data}
<tr>
<td>{$cron}</td>
{foreach $data as $name => $event}
<td align="center">
<td>
{if $event.type == 'okerror'}
{if $event.value == 0}
<font color="green">OK</font>

View File

@ -6,20 +6,20 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<form action="{$smarty.server.SCRIPT_NAME}">
<input type="hidden" name="page" value="{$smarty.request.page|escape}" />
<input type="hidden" name="action" value="{$smarty.request.action|escape}" />
<tbody>
<tr>
<td align="left">
<td>
{if $smarty.request.start|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i></a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-right-open"></i></a>
</td>
</tr>
@ -29,31 +29,31 @@
</div>
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="left">Worker Name</th>
<th align="left">Password</th>
<th align="center">Active</th>
{if $GLOBAL.config.disable_notifications != 1}<th align="center">Monitor</th>{/if}
<th align="right">Khash/s</th>
<th align="right">Difficulty</th>
<th align="right" style="padding-right: 25px;">Avg Difficulty</th>
<th>Worker Name</th>
<th>Password</th>
<th>Active</th>
{if $GLOBAL.config.disable_notifications != 1}<th>Monitor</th>{/if}
<th>Khash/s</th>
<th>Difficulty</th>
<th style="padding-right: 25px;">Avg Difficulty</th>
</tr>
</thead>
{nocache}
{section worker $WORKERS}
<tbody>
<tr>
<td align="left">{$WORKERS[worker].username|escape}</td>
<td align="left">{$WORKERS[worker].password|escape}</td>
<td align="center"><i class="icon-{if $WORKERS[worker].hashrate > 0}ok{else}cancel{/if}"></i></td>
<td>{$WORKERS[worker].username|escape}</td>
<td>{$WORKERS[worker].password|escape}</td>
<td><i class="icon-{if $WORKERS[worker].hashrate > 0}ok{else}cancel{/if}"></i></td>
{if $GLOBAL.config.disable_notifications != 1}
<td align="center"><i class="icon-{if $WORKERS[worker].monitor}ok{else}cancel{/if}"></i></td>
<td><i class="icon-{if $WORKERS[worker].monitor}ok{else}cancel{/if}"></i></td>
{/if}
<td align="right">{$WORKERS[worker].hashrate|number_format|default:"0"}</td>
<td align="right">{if $WORKERS[worker].hashrate > 0}{$WORKERS[worker].difficulty|number_format:"2"|default:"0"}{else}0{/if}</td>
<td align="right" style="padding-right: 25px;">{if $WORKERS[worker].hashrate > 0}{$WORKERS[worker].avg_difficulty|number_format:"2"|default:"0"}{else}0{/if}</td>
<td>{$WORKERS[worker].hashrate|number_format|default:"0"}</td>
<td>{if $WORKERS[worker].hashrate > 0}{$WORKERS[worker].difficulty|number_format:"2"|default:"0"}{else}0{/if}</td>
<td style="padding-right: 25px;">{if $WORKERS[worker].hashrate > 0}{$WORKERS[worker].avg_difficulty|number_format:"2"|default:"0"}{else}0{/if}</td>
</tr>
{/section}
{/nocache}

View File

@ -7,17 +7,17 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td align="left">
<td>
{if $smarty.request.registeredstart|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&registeredstart={$smarty.request.registeredstart|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}#registrations"><i class="fa fa-chevron-left fa-fw"></i> Previous 10</a>
{else}
<i class="fa fa-chevron-left fa-fw"></i>
{/if}
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&registeredstart={$smarty.request.registeredstart|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}#registrations">Next 10 <i class="fa fa-chevron-right fa-fw"></i></a>
</td>
</tr>
@ -26,26 +26,26 @@
</div>
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">ID</th>
<th>ID</th>
<th>Username</th>
<th align="left">eMail</th>
<th align="center">Reg. Date</th>
<th align="center">Invite</th>
<th align="center">Invited from</th>
<th>eMail</th>
<th>Reg. Date</th>
<th>Invite</th>
<th>Invited from</th>
</tr>
</thead>
<tbody>
{section user $LASTREGISTEREDUSERS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$LASTREGISTEREDUSERS[user].id|escape}</td>
<tr>
<td>{$LASTREGISTEREDUSERS[user].id|escape}</td>
<td>{$LASTREGISTEREDUSERS[user].mposuser}</td>
<td align="left">{$LASTREGISTEREDUSERS[user].email}</td>
<td align="center">{$LASTREGISTEREDUSERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td>
<td align="center">{if !$LASTREGISTEREDUSERS[user].inviter}<i class="icon-cancel">{else}<i class="icon-ok">{/if}</td>
<td align="center"><a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=user&do=query&filter[account]={$LASTREGISTEREDUSERS[user].inviter}">{$LASTREGISTEREDUSERS[user].inviter}</a></td>
<td>{$LASTREGISTEREDUSERS[user].email}</td>
<td>{$LASTREGISTEREDUSERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td>
<td>{if !$LASTREGISTEREDUSERS[user].inviter}<i class="icon-cancel">{else}<i class="icon-ok">{/if}</td>
<td><a href="{$smarty.server.SCRIPT_NAME}?page=admin&action=user&do=query&filter[account]={$LASTREGISTEREDUSERS[user].inviter}">{$LASTREGISTEREDUSERS[user].inviter}</a></td>
</tr>
{/section}
</tbody>

View File

@ -5,10 +5,10 @@
<header><h3>Earnings Information</h3></header>
<table class="tablesorter">
<tbody>
<td align="left">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={if is_array($REPORTDATA) && count($REPORTDATA) > ($BLOCKLIMIT - 1)}{$REPORTDATA[$BLOCKLIMIT - 1].height}{/if}&prev=1&limit={$BLOCKLIMIT}&id={$USERID}&filter={$FILTER}"<i class="icon-left-open"></i></a>
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={if is_array($REPORTDATA) && count($REPORTDATA) > 0}{$REPORTDATA[0].height}{/if}&next=1&limit={$BLOCKLIMIT}&id={$USERID}&filter={$FILTER}"><i class="icon-right-open"></i></a>
</td>
</tr>

View File

@ -4,20 +4,20 @@
<thead>
<tr>
<th >Block</th>
<th align="right">Round Shares</th>
<th align="right">Round Valid</th>
<th align="right">Invalid</th>
<th align="right">Invalid %</th>
<th align="right">Round %</th>
<th>Round Shares</th>
<th>Round Valid</th>
<th>Invalid</th>
<th>Invalid %</th>
<th>Round %</th>
{if $GLOBAL.config.payout_system == 'pplns'}
<th align="right">PPLNS Shares</th>
<th align="right">PPLNS Valid</th>
<th align="right">Invalid</th>
<th align="right">Invalid %</th>
<th align="right">PPLNS %</th>
<th align="right">Variance</th>
<th>PPLNS Shares</th>
<th>PPLNS Valid</th>
<th>Invalid</th>
<th>Invalid %</th>
<th>PPLNS %</th>
<th>Variance</th>
{/if}
<th align="right" style="padding-right: 25px;">Amount</th>
<th style="padding-right: 25px;">Amount</th>
</tr>
</thead>
<tbody>
@ -50,41 +50,41 @@
{/if}
<tr>
<td><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$REPORTDATA[txs].height}">{$REPORTDATA[txs].height|default:"0"}</a></td>
<td align="right">{$REPORTDATA[txs].shares|default:"0"}</td>
<td align="right">{$REPORTDATA[txs]['user'].valid|number_format|default:"0"}</td>
<td align="right">{$REPORTDATA[txs]['user'].invalid|number_format|default:"0"}</td>
<td align="right">{if $REPORTDATA[txs]['user'].invalid > 0 }{($REPORTDATA[txs]['user'].invalid / $REPORTDATA[txs]['user'].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $REPORTDATA[txs]['user'].valid > 0 }{(( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid)|number_format:"2"}{else}0.00{/if}</td>
<td>{$REPORTDATA[txs].shares|default:"0"}</td>
<td>{$REPORTDATA[txs]['user'].valid|number_format|default:"0"}</td>
<td>{$REPORTDATA[txs]['user'].invalid|number_format|default:"0"}</td>
<td>{if $REPORTDATA[txs]['user'].invalid > 0 }{($REPORTDATA[txs]['user'].invalid / $REPORTDATA[txs]['user'].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $REPORTDATA[txs]['user'].valid > 0 }{(( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid)|number_format:"2"}{else}0.00{/if}</td>
{if $GLOBAL.config.payout_system == 'pplns'}
<td align="right">{$REPORTDATA[txs].pplns_shares|number_format|default:"0"}</td>
<td align="right">{$REPORTDATA[txs]['user'].pplns_valid|number_format|default:"0"}</td>
<td align="right">{$REPORTDATA[txs]['user'].pplns_invalid|number_format|default:"0"}</td>
<td align="right">{if $REPORTDATA[txs]['user'].pplns_invalid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0 }{($REPORTDATA[txs]['user'].pplns_invalid / $REPORTDATA[txs]['user'].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $REPORTDATA[txs].shares > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{(( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $REPORTDATA[txs]['user'].valid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid) / (( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)))}{else if $REPORTDATA[txs]['user'].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
<td>{$REPORTDATA[txs].pplns_shares|number_format|default:"0"}</td>
<td>{$REPORTDATA[txs]['user'].pplns_valid|number_format|default:"0"}</td>
<td>{$REPORTDATA[txs]['user'].pplns_invalid|number_format|default:"0"}</td>
<td>{if $REPORTDATA[txs]['user'].pplns_invalid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0 }{($REPORTDATA[txs]['user'].pplns_invalid / $REPORTDATA[txs]['user'].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $REPORTDATA[txs].shares > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{(( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $REPORTDATA[txs]['user'].valid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid) / (( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)))}{else if $REPORTDATA[txs]['user'].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
<font color="{if ($percentage1 >= 100)}green{else}red{/if}">{$percentage1|number_format:"2"|default:"0"}</font></b></td>
{/if}
<td align="right" style="padding-right: 25px;">{$REPORTDATA[txs].user_credit|default:"0"|number_format:"8"}</td>
<td style="padding-right: 25px;">{$REPORTDATA[txs].user_credit|default:"0"|number_format:"8"}</td>
{assign var=percentage1 value=0}
</tr>
{/section}
<tr>
<td><b>Totals</b></td>
<td align="right">{$totalshares|number_format}</td>
<td align="right">{$totalvalid|number_format}</td>
<td align="right">{$totalinvalid|number_format}</td>
<td align="right">{if $totalinvalid > 0 && $totalvalid > 0 }{($totalinvalid / $totalvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $usertotalshares > 0 && $totalvalid > 0}{(( 100 / $usertotalshares) * $totalvalid)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{$totalshares|number_format}</td>
<td>{$totalvalid|number_format}</td>
<td>{$totalinvalid|number_format}</td>
<td>{if $totalinvalid > 0 && $totalvalid > 0 }{($totalinvalid / $totalvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $usertotalshares > 0 && $totalvalid > 0}{(( 100 / $usertotalshares) * $totalvalid)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
{if $GLOBAL.config.payout_system == 'pplns'}
<td align="right">{$pplnsshares|number_format}</td>
<td align="right">{$pplnsvalid|number_format}</td>
<td align="right">{$pplnsinvalid|number_format}</td>
<td align="right">{if $pplnsinvalid > 0 && $pplnsvalid > 0 }{($pplnsinvalid / $pplnsvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $userpplnsshares > 0 && $pplnsvalid > 0}{(( 100 / $userpplnsshares) * $pplnsvalid)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $totalvalid > 0 && $pplnsvalid > 0}{math assign="percentage2" equation=(100 / ((( 100 / $usertotalshares) * $totalvalid) / (( 100 / $userpplnsshares) * $pplnsvalid)))}{else if $pplnsvalid == 0}{assign var=percentage2 value=0}{else}{assign var=percentage2 value=100}{/if}
<td>{$pplnsshares|number_format}</td>
<td>{$pplnsvalid|number_format}</td>
<td>{$pplnsinvalid|number_format}</td>
<td>{if $pplnsinvalid > 0 && $pplnsvalid > 0 }{($pplnsinvalid / $pplnsvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $userpplnsshares > 0 && $pplnsvalid > 0}{(( 100 / $userpplnsshares) * $pplnsvalid)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $totalvalid > 0 && $pplnsvalid > 0}{math assign="percentage2" equation=(100 / ((( 100 / $usertotalshares) * $totalvalid) / (( 100 / $userpplnsshares) * $pplnsvalid)))}{else if $pplnsvalid == 0}{assign var=percentage2 value=0}{else}{assign var=percentage2 value=100}{/if}
<font color="{if ($percentage2 >= 100)}green{else}red{/if}">{$percentage2|number_format:"2"|default:"0"}</font></b></td>
{/if}
<td align="right" style="padding-right: 25px;">{$amount|default:"0"|number_format:"8"}</td>
<td style="padding-right: 25px;">{$amount|default:"0"|number_format:"8"}</td>
{assign var=percentage2 value=0}
</tr>
</tbody>

View File

@ -7,7 +7,7 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
{foreach $SUMMARY as $type=>$total}
@ -43,14 +43,14 @@
<table cellspacing="0" class="tablesorter">
<tbody>
<tr>
<td align="left">
<td>
{if $smarty.request.start|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i></a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-right-open"></i></a>
</td>
</tr>
@ -91,11 +91,11 @@
<table class="table table-hover">
<thead>
<tr>
<th align="center">ID</th>
<th>ID</th>
<th>Account</th>
<th>Date</th>
<th>TX Type</th>
<th align="center">Status</th>
<th>Status</th>
<th>Payment Address</th>
<th>TX #</th>
<th>Block #</th>
@ -104,12 +104,12 @@
</thead>
<tbody style="font-size:12px;">
{section transaction $TRANSACTIONS}
<tr class="{cycle values="odd,even"}">
<td align="center">{$TRANSACTIONS[transaction].id}</td>
<tr>
<td>{$TRANSACTIONS[transaction].id}</td>
<td>{$TRANSACTIONS[transaction].username}</td>
<td>{$TRANSACTIONS[transaction].timestamp}</td>
<td>{$TRANSACTIONS[transaction].type}</td>
<td align="center">
<td>
{if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR
$TRANSACTIONS[transaction].type == 'Fee_PPS' OR
$TRANSACTIONS[transaction].type == 'Donation_PPS' OR

60
public/templates/bootstrap/admin/user/default.tpl Normal file → Executable file
View File

@ -32,14 +32,14 @@
<table cellspacing="0" class="tablesorter">
<tbody>
<tr>
<td align="left">
<td>
{if $smarty.request.start|default:"0" > 0}
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" - $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}"><i class="icon-left-open"></i> Previous 30</a>
{else}
<i class="icon-left-open"></i>
{/if}
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&start={$smarty.request.start|escape|default:"0" + $LIMIT}{if $FILTERS|default:""}{$FILTERS}{/if}">Next 30 <i class="icon-right-open"></i></a>
</td>
</tbody>
@ -83,54 +83,54 @@
<table cellspacing="0" width="100%" class="tablesorter">
<thead>
<tr>
<th align="center">ID</th>
<th align="left">Username</th>
<th align="left">E-Mail</th>
<th align="right" style="padding-right:10px">Shares</th>
<th align="right" style="padding-right:10px">Hashrate</th>
<th>ID</th>
<th>Username</th>
<th>E-Mail</th>
<th style="padding-right:10px">Shares</th>
<th style="padding-right:10px">Hashrate</th>
{if $GLOBAL.config.payout_system != 'pps'}
<th align="right" style="padding-right:10px">Est. Donation</th>
<th align="right" style="padding-right:10px">Est. Payout</th>
<th style="padding-right:10px">Est. Donation</th>
<th style="padding-right:10px">Est. Payout</th>
{else}
<th align="right" colspan="2" style="padding-right:10px">Est. 24 Hours</th>
<th colspan="2" style="padding-right:10px">Est. 24 Hours</th>
{/if}
<th align="right" style="padding-right:10px">Balance</th>
<th align="right" style="padding-right:10px">Reg. Date</th>
<th align="right" style="padding-right:10px">Last Login</th>
<th align="center">Admin</th>
<th align="center">Locked</th>
<th align="center">No Fees</th>
<th style="padding-right:10px">Balance</th>
<th style="padding-right:10px">Reg. Date</th>
<th style="padding-right:10px">Last Login</th>
<th>Admin</th>
<th>Locked</th>
<th>No Fees</th>
</tr>
</thead>
<tbody>
{nocache}
{section name=user loop=$USERS|default}
<tr>
<td align="center">{$USERS[user].id}</td>
<td align="left">{$USERS[user].username|escape}</td>
<td align="left">{$USERS[user].email|escape}</td>
<td align="right">{$USERS[user].shares.valid}</td>
<td align="right">{$USERS[user].hashrate}</td>
<td>{$USERS[user].id}</td>
<td>{$USERS[user].username|escape}</td>
<td>{$USERS[user].email|escape}</td>
<td>{$USERS[user].shares.valid}</td>
<td>{$USERS[user].hashrate}</td>
{if $GLOBAL.config.payout_system != 'pps'}
<td align="right">{$USERS[user].estimates.donation|number_format:"8"}</td>
<td align="right">{$USERS[user].estimates.payout|number_format:"8"}</td>
<td>{$USERS[user].estimates.donation|number_format:"8"}</td>
<td>{$USERS[user].estimates.payout|number_format:"8"}</td>
{else}
<td align="right" colspan="2">{$USERS[user].estimates.hours24|number_format:"8"}</td>
<td colspan="2">{$USERS[user].estimates.hours24|number_format:"8"}</td>
{/if}
<td align="right">{$USERS[user].balance|number_format:"8"}</td>
<td align="right">{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td>
<td align="right">{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"}</td>
<td align="center">
<td>{$USERS[user].balance|number_format:"8"}</td>
<td>{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}</td>
<td>{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"}</td>
<td>
<input type="hidden" name="admin[{$USERS[user].id}]" value="0"/>
<input type="checkbox" onclick="storeAdmin({$USERS[user].id})" name="admin[{$USERS[user].id}]" value="1" id="admin[{$USERS[user].id}]" {if $USERS[user].is_admin}checked{/if} />
<label for="admin[{$USERS[user].id}]"></label>
</td>
<td align="center">
<td>
<input type="hidden" name="locked[{$USERS[user].id}]" value="0"/>
<input type="checkbox" onclick="storeLock({$USERS[user].id})" name="locked[{$USERS[user].id}]" value="1" id="locked[{$USERS[user].id}]" {if $USERS[user].is_locked}checked{/if} />
<label for="locked[{$USERS[user].id}]"></label>
</td>
<td align="center">
<td>
<input type="hidden" name="nofee[{$USERS[user].id}]" value="0"/>
<input type="checkbox" onclick="storeFee({$USERS[user].id})" name="nofee[{$USERS[user].id}]" value="1" id="nofee[{$USERS[user].id}]" {if $USERS[user].no_fees}checked{/if} />
<label for="nofee[{$USERS[user].id}]"></label>

56
public/templates/bootstrap/admin/wallet/default.tpl Normal file → Executable file
View File

@ -5,27 +5,27 @@
Balance Summary
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tr>
<td align="left">Wallet Balance</td>
<td align="left">{$BALANCE|number_format:"8"}</td>
<td>Wallet Balance</td>
<td>{$BALANCE|number_format:"8"}</td>
</tr>
<tr>
<td align="left">Locked for users</td>
<td align="left">{$LOCKED|number_format:"8"}</td>
<td>Locked for users</td>
<td>{$LOCKED|number_format:"8"}</td>
</tr>
<tr>
<td align="left">Unconfirmed</td>
<td align="left">{$UNCONFIRMED|number_format:"8"}</td>
<td>Unconfirmed</td>
<td>{$UNCONFIRMED|number_format:"8"}</td>
</tr>
<tr>
<td align="left">Liquid Assets</td>
<td align="left">{($BALANCE - $LOCKED - $UNCONFIRMED + $NEWMINT|default:"0")|number_format:"8"}</td>
<td>Liquid Assets</td>
<td>{($BALANCE - $LOCKED - $UNCONFIRMED + $NEWMINT|default:"0")|number_format:"8"}</td>
</tr>
{if $NEWMINT >= 0}
<tr>
<td align="left">PoS New Mint</td>
<td align="left">{$NEWMINT|number_format:"8"}</td>
<td>PoS New Mint</td>
<td>{$NEWMINT|number_format:"8"}</td>
</tr>
{/if}
</table>
@ -39,21 +39,21 @@
Wallet Status
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<th align="center">Version</th>
<th align="center">Protocol Version</th>
<th align="center">Wallet Version</th>
<th align="center">Connections</th>
<th align="center">Errors</th>
<th>Version</th>
<th>Protocol Version</th>
<th>Wallet Version</th>
<th>Connections</th>
<th>Errors</th>
</thead>
<tbody>
<tr>
<td align="center">{$COININFO.version|default:""}</td>
<td align="center">{$COININFO.protocolversion|default:""}</td>
<td align="center">{$COININFO.walletversion|default:""}</td>
<td align="center">{$COININFO.connections|default:""}</td>
<td align="center"><font color="{if $COININFO.errors}red{else}green{/if}">{$COININFO.errors|default:"OK"}</font></td>
<td>{$COININFO.version|default:""}</td>
<td>{$COININFO.protocolversion|default:""}</td>
<td>{$COININFO.walletversion|default:""}</td>
<td>{$COININFO.connections|default:""}</td>
<td><font color="{if $COININFO.errors}red{else}green{/if}">{$COININFO.errors|default:"OK"}</font></td>
</tr>
</tbody>
</table>
@ -88,10 +88,10 @@
</h4>
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tr>
<td align="left">Balance</td>
<td align="left">{$VALUE|number_format:"8"}</td>
<td>Balance</td>
<td>{$VALUE|number_format:"8"}</td>
</tr>
</table>
</div>
@ -109,15 +109,15 @@
</h4>
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
{foreach from=$ACCOUNTADDRESSES[$ACCOUNT] key=ACCOUNT1 item=ADDRESS1}
{if $ADDRESS1@iteration is even by 1}
<td align="left" style="padding-right: 25px;">{$ADDRESS1}</td>
<td style="padding-right: 25px;">{$ADDRESS1}</td>
</tr>
{else}
<tr>
<td align="left" style="padding-right: 25px;">{$ADDRESS1}</td>
<td style="padding-right: 25px;">{$ADDRESS1}</td>
{/if}
{/foreach}
<tbody>

16
public/templates/bootstrap/dashboard/account_data.tpl Normal file → Executable file
View File

@ -23,25 +23,25 @@
<tr><th colspan="2"><b>{$GLOBAL.config.currency} Account Balance</b></th></tr>
</thead>
<tr>
<td align="left" style="font-weight: bold;">Confirmed</td>
<td align="right"><span id="b-confirmed" class="confirmed" style="width: calc(140px); font-size: 12px;">{$GLOBAL.userdata.balance.confirmed|number_format:"6"}</span></td>
<td style="font-weight: bold;">Confirmed</td>
<td><span id="b-confirmed" class="confirmed" style="width: calc(140px); font-size: 12px;">{$GLOBAL.userdata.balance.confirmed|number_format:"6"}</span></td>
</tr>
<tr>
<td align="left" style="font-weight: bold;">Unconfirmed</td>
<td align="right"><span id="b-unconfirmed" class="unconfirmed" style="width: calc(140px); font-size: 12px;">{$GLOBAL.userdata.balance.unconfirmed|number_format:"6"}</span></td>
<td style="font-weight: bold;">Unconfirmed</td>
<td><span id="b-unconfirmed" class="unconfirmed" style="width: calc(140px); font-size: 12px;">{$GLOBAL.userdata.balance.unconfirmed|number_format:"6"}</span></td>
</tr>
</table>
{if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API}
<table class="tablesorter" cellspacing="0">
<thead>
<tr>
<th align="left">Worker</th>
<th align="right">Hashrate</th>
<th align="right" style="padding-right: 10px;">Difficulty</th>
<th>Worker</th>
<th>Hashrate</th>
<th style="padding-right: 10px;">Difficulty</th>
</tr>
</thead>
<tbody id="b-workers">
<td colspan="3" align="center">No worker information available</td>
<td colspan="3">No worker information available</td>
</tbody>
</tr>
</table>

4
public/templates/bootstrap/dashboard/js_api.tpl Normal file → Executable file
View File

@ -172,10 +172,10 @@ $(document).ready(function(){
for (var i = j = 0; i < length; i++) {
if (workers[i].hashrate > 0) {
j++;
$('#b-workers').append('<tr><td>' + workers[i].username + '</td><td align="right">' + workers[i].hashrate + '</td><td align="right">' + workers[i].difficulty + '</td></tr>');
$('#b-workers').append('<tr><td>' + workers[i].username + '</td><td>' + workers[i].hashrate + '</td><td>' + workers[i].difficulty + '</td></tr>');
}
}
if (j == 0) { $('#b-workers').html('<tr><td colspan="3" align="center">No active workers</td></tr>'); }
if (j == 0) { $('#b-workers').html('<tr><td colspan="3">No active workers</td></tr>'); }
}
// Our worker process to keep gauges and graph updated

View File

@ -22,22 +22,22 @@
{else}
<tr>
<td><b>in 1 hour</b></td>
<td id="b-est1hour" align="left">{$GLOBAL.userdata.estimates.hours1|number_format:"8"}</td>
<td id="b-est1hour">{$GLOBAL.userdata.estimates.hours1|number_format:"8"}</td>
</tr>
<tr>
<td><b>in 24 hours</b></td>
<td id="b-est24hours" align="left">{($GLOBAL.userdata.estimates.hours24)|number_format:"8"}</td>
<td id="b-est24hours">{($GLOBAL.userdata.estimates.hours24)|number_format:"8"}</td>
</tr>
<tr>
<td><b>in 7 days</b></td>
<td id="b-est7days" align="left">{($GLOBAL.userdata.estimates.days7)|number_format:"8"}</td>
<td id="b-est7days">{($GLOBAL.userdata.estimates.days7)|number_format:"8"}</td>
</tr>
<tr>
<td><b>in 14 days</b></td>
<td id="b-est14days" align="left">{($GLOBAL.userdata.estimates.days14)|number_format:"8"}</td>
<td id="b-est14days">{($GLOBAL.userdata.estimates.days14)|number_format:"8"}</td>
</tr>
<tr>
<td><b>in 30 days</b></td>
<td id="b-est30days" align="left">{($GLOBAL.userdata.estimates.days30)|number_format:"8"}</td>
<td id="b-est30days">{($GLOBAL.userdata.estimates.days30)|number_format:"8"}</td>
</tr>
{/if}

8
public/templates/bootstrap/dashboard/workers.tpl Normal file → Executable file
View File

@ -3,13 +3,13 @@
<table class="tablesorter" cellspacing="0">
<thead>
<tr>
<th align="left">Worker</th>
<th align="right">Hashrate</th>
<th align="right">Difficulty</th>
<th>Worker</th>
<th>Hashrate</th>
<th>Difficulty</th>
</tr>
</thead>
<tbody id="b-workers">
<td colspan="3" align="center">Loading worker information</td>
<td colspan="3">Loading worker information</td>
</tbody>
</tr>
</table>

View File

@ -1,6 +1,6 @@
<div class="row">
{include file="statistics/blockfinder/finder_top.tpl"}
{if $smarty.session.AUTHENTICATED|default}
{include file="statistics/blockfinder/finder_own.tpl" ALIGN="right" SHORT=true}
{include file="statistics/blockfinder/finder_own.tpl" SHORT=true}
{/if}
</div>

View File

@ -4,23 +4,23 @@
Blocks found by own Workers
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Rank</th>
<th>Rank</th>
<th>Worker</th>
<th align="center">Blocks</th>
<th align="right" style="padding-right: 25px;">Coins Generated</th>
<th>Blocks</th>
<th style="padding-right: 25px;">Coins Generated</th>
</tr>
</thead>
<tbody>
{assign var=rank value=1}
{section block $BLOCKSSOLVEDBYWORKER}
<tr class="{cycle values="odd,even"}">
<td align="center">{$rank++}</td>
<tr>
<td>{$rank++}</td>
<td>{$BLOCKSSOLVEDBYWORKER[block].finder|default:"unknown/deleted"|escape}</td>
<td align="center">{$BLOCKSSOLVEDBYWORKER[block].solvedblocks}</td>
<td align="right" style="padding-right: 25px;">{$BLOCKSSOLVEDBYWORKER[block].generatedcoins|number_format}</td>
<td>{$BLOCKSSOLVEDBYWORKER[block].solvedblocks}</td>
<td style="padding-right: 25px;">{$BLOCKSSOLVEDBYWORKER[block].generatedcoins|number_format}</td>
</tr>
{/section}
</tbody>

View File

@ -4,23 +4,23 @@
Top 25 Blockfinder
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Rank</th>
<th>Rank</th>
<th>Username</th>
<th align="center">Blocks</th>
<th align="right" style="padding-right: 25px;">Coins Generated</th>
<th>Blocks</th>
<th style="padding-right: 25px;">Coins Generated</th>
</tr>
</thead>
<tbody>
{assign var=rank value=1}
{section block $BLOCKSSOLVEDBYACCOUNT}
<tr class="{cycle values="odd,even"}">
<td align="center">{$rank++}</td>
<tr>
<td>{$rank++}</td>
<td>{if $BLOCKSSOLVEDBYACCOUNT[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSSOLVEDBYACCOUNT[block].finder|default:"unknown"|escape}{/if}</td>
<td align="center">{$BLOCKSSOLVEDBYACCOUNT[block].solvedblocks}</td>
<td align="right" style="padding-right: 25px;">{$BLOCKSSOLVEDBYACCOUNT[block].generatedcoins|number_format}</td>
<td>{$BLOCKSSOLVEDBYACCOUNT[block].solvedblocks}</td>
<td style="padding-right: 25px;">{$BLOCKSSOLVEDBYACCOUNT[block].generatedcoins|number_format}</td>
</tr>
{/section}
</tbody>

View File

@ -5,172 +5,172 @@
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="left"></th>
<th align="center">Gen Est.</th>
<th align="center">Found</th>
<th align="center">Valid</th>
<th align="center">Orphan</th>
<th align="center">Avg Diff</th>
<th align="center">Shares Est.</th>
<th align="center">Shares</th>
<th align="center">Percentage</th>
<th align="center">Amount</th>
<th align="center">Rate Est.</th>
<th></th>
<th>Gen Est.</th>
<th>Found</th>
<th>Valid</th>
<th>Orphan</th>
<th>Avg Diff</th>
<th>Shares Est.</th>
<th>Shares</th>
<th>Percentage</th>
<th>Amount</th>
<th>Rate Est.</th>
</tr>
</thead>
<tbody>
<tr>
<th align="left" style="padding-left: 15px">All Time</td>
<td align="center">{($FIRSTBLOCKFOUND / $COINGENTIME)|number_format:"0"}</td>
<td align="center">{$LASTBLOCKSBYTIME.Total}</td>
<td align="center">{$LASTBLOCKSBYTIME.TotalValid}</td>
<td align="center">{$LASTBLOCKSBYTIME.TotalOrphan}</td>
<td align="center">
<th style="padding-left: 15px">All Time</td>
<td>{($FIRSTBLOCKFOUND / $COINGENTIME)|number_format:"0"}</td>
<td>{$LASTBLOCKSBYTIME.Total}</td>
<td>{$LASTBLOCKSBYTIME.TotalValid}</td>
<td>{$LASTBLOCKSBYTIME.TotalOrphan}</td>
<td>
{if $LASTBLOCKSBYTIME.TotalValid > 0}
{($LASTBLOCKSBYTIME.TotalDifficulty / $LASTBLOCKSBYTIME.TotalValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.TotalEstimatedShares}</td>
<td align="center">{$LASTBLOCKSBYTIME.TotalShares}</td>
<td align="center">
<td>{$LASTBLOCKSBYTIME.TotalEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.TotalShares}</td>
<td>
{if $LASTBLOCKSBYTIME.TotalEstimatedShares > 0}
<font color="{if (($LASTBLOCKSBYTIME.TotalShares / $LASTBLOCKSBYTIME.TotalEstimatedShares * 100) <= 100)}green{else}red{/if}">{($LASTBLOCKSBYTIME.TotalShares / $LASTBLOCKSBYTIME.TotalEstimatedShares * 100)|number_format:"2"}%</font></b>
{else}
0.00%
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.TotalAmount}</td>
<td align="center">{($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td>{$LASTBLOCKSBYTIME.TotalAmount}</td>
<td>{($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th align="left" style="padding-left: 15px">Last Hour</td>
<td align="center">{(3600 / $COINGENTIME)}</td>
<td align="center">{$LASTBLOCKSBYTIME.1HourTotal}</td>
<td align="center">{$LASTBLOCKSBYTIME.1HourValid}</td>
<td align="center">{$LASTBLOCKSBYTIME.1HourOrphan}</td>
<td align="center">
<th style="padding-left: 15px">Last Hour</td>
<td>{(3600 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.1HourTotal}</td>
<td>{$LASTBLOCKSBYTIME.1HourValid}</td>
<td>{$LASTBLOCKSBYTIME.1HourOrphan}</td>
<td>
{if $LASTBLOCKSBYTIME.1HourValid > 0}
{($LASTBLOCKSBYTIME.1HourDifficulty / $LASTBLOCKSBYTIME.1HourValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.1HourEstimatedShares}</td>
<td align="center">{$LASTBLOCKSBYTIME.1HourShares}</td>
<td align="center">
<td>{$LASTBLOCKSBYTIME.1HourEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.1HourShares}</td>
<td>
{if $LASTBLOCKSBYTIME.1HourEstimatedShares > 0}
<font color="{if (($LASTBLOCKSBYTIME.1HourShares / $LASTBLOCKSBYTIME.1HourEstimatedShares * 100) <= 100)}green{else}red{/if}">{($LASTBLOCKSBYTIME.1HourShares / $LASTBLOCKSBYTIME.1HourEstimatedShares * 100)|number_format:"2"}%</font></b>
{else}
0.00%
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.1HourAmount}</td>
<td align="center">{($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td>{$LASTBLOCKSBYTIME.1HourAmount}</td>
<td>{($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th align="left" style="padding-left: 15px">Last 24 Hours</td>
<td align="center">{(86400 / $COINGENTIME)}</td>
<td align="center">{$LASTBLOCKSBYTIME.24HourTotal}</td>
<td align="center">{$LASTBLOCKSBYTIME.24HourValid}</td>
<td align="center">{$LASTBLOCKSBYTIME.24HourOrphan}</td>
<td align="center">
<th style="padding-left: 15px">Last 24 Hours</td>
<td>{(86400 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.24HourTotal}</td>
<td>{$LASTBLOCKSBYTIME.24HourValid}</td>
<td>{$LASTBLOCKSBYTIME.24HourOrphan}</td>
<td>
{if $LASTBLOCKSBYTIME.24HourValid > 0}
{($LASTBLOCKSBYTIME.24HourDifficulty / $LASTBLOCKSBYTIME.24HourValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.24HourEstimatedShares}</td>
<td align="center">{$LASTBLOCKSBYTIME.24HourShares}</td>
<td align="center">
<td>{$LASTBLOCKSBYTIME.24HourEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.24HourShares}</td>
<td>
{if $LASTBLOCKSBYTIME.24HourEstimatedShares > 0}
<font color="{if (($LASTBLOCKSBYTIME.24HourShares / $LASTBLOCKSBYTIME.24HourEstimatedShares * 100) <= 100)}green{else}red{/if}">{($LASTBLOCKSBYTIME.24HourShares / $LASTBLOCKSBYTIME.24HourEstimatedShares * 100)|number_format:"2"}%</font></b>
{else}
0.00%
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.24HourAmount}</td>
<td align="center">{($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td>{$LASTBLOCKSBYTIME.24HourAmount}</td>
<td>{($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th align="left" style="padding-left: 15px">Last 7 Days</td>
<td align="center">{(604800 / $COINGENTIME)}</td>
<td align="center">{$LASTBLOCKSBYTIME.7DaysTotal}</td>
<td align="center">{$LASTBLOCKSBYTIME.7DaysValid}</td>
<td align="center">{$LASTBLOCKSBYTIME.7DaysOrphan}</td>
<td align="center">
<th style="padding-left: 15px">Last 7 Days</td>
<td>{(604800 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.7DaysTotal}</td>
<td>{$LASTBLOCKSBYTIME.7DaysValid}</td>
<td>{$LASTBLOCKSBYTIME.7DaysOrphan}</td>
<td>
{if $LASTBLOCKSBYTIME.7DaysValid > 0}
{($LASTBLOCKSBYTIME.7DaysDifficulty / $LASTBLOCKSBYTIME.7DaysValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.7DaysEstimatedShares}</td>
<td align="center">{$LASTBLOCKSBYTIME.7DaysShares}</td>
<td align="center">
<td>{$LASTBLOCKSBYTIME.7DaysEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.7DaysShares}</td>
<td>
{if $LASTBLOCKSBYTIME.7DaysEstimatedShares > 0}
<font color="{if (($LASTBLOCKSBYTIME.7DaysShares / $LASTBLOCKSBYTIME.7DaysEstimatedShares * 100) <= 100)}green{else}red{/if}">{($LASTBLOCKSBYTIME.7DaysShares / $LASTBLOCKSBYTIME.7DaysEstimatedShares * 100)|number_format:"2"}%</font></b>
{else}
0.00%
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.7DaysAmount}</td>
<td align="center">{($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td>{$LASTBLOCKSBYTIME.7DaysAmount}</td>
<td>{($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th align="left" style="padding-left: 15px">Last 4 Weeks</td>
<td align="center">{(2419200 / $COINGENTIME)}</td>
<td align="center">{$LASTBLOCKSBYTIME.4WeeksTotal}</td>
<td align="center">{$LASTBLOCKSBYTIME.4WeeksValid}</td>
<td align="center">{$LASTBLOCKSBYTIME.4WeeksOrphan}</td>
<td align="center">
<th style="padding-left: 15px">Last 4 Weeks</td>
<td>{(2419200 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksTotal}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksValid}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksOrphan}</td>
<td>
{if $LASTBLOCKSBYTIME.4WeeksValid > 0}
{($LASTBLOCKSBYTIME.4WeeksDifficulty / $LASTBLOCKSBYTIME.4WeeksValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.4WeeksEstimatedShares}</td>
<td align="center">{$LASTBLOCKSBYTIME.4WeeksShares}</td>
<td align="center">
<td>{$LASTBLOCKSBYTIME.4WeeksEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksShares}</td>
<td>
{if $LASTBLOCKSBYTIME.4WeeksEstimatedShares > 0}
<font color="{if (($LASTBLOCKSBYTIME.4WeeksShares / $LASTBLOCKSBYTIME.4WeeksEstimatedShares * 100) <= 100)}green{else}red{/if}">{($LASTBLOCKSBYTIME.4WeeksShares / $LASTBLOCKSBYTIME.4WeeksEstimatedShares * 100)|number_format:"2"}%</font></b>
{else}
0.00%
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.4WeeksAmount}</td>
<td align="center">{($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td>{$LASTBLOCKSBYTIME.4WeeksAmount}</td>
<td>{($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th align="left" style="padding-left: 15px">Last 12 Month</td>
<td align="center">{(29030400 / $COINGENTIME)}</td>
<td align="center">{$LASTBLOCKSBYTIME.12MonthTotal}</td>
<td align="center">{$LASTBLOCKSBYTIME.12MonthValid}</td>
<td align="center">{$LASTBLOCKSBYTIME.12MonthOrphan}</td>
<td align="center">
<th style="padding-left: 15px">Last 12 Month</td>
<td>{(29030400 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.12MonthTotal}</td>
<td>{$LASTBLOCKSBYTIME.12MonthValid}</td>
<td>{$LASTBLOCKSBYTIME.12MonthOrphan}</td>
<td>
{if $LASTBLOCKSBYTIME.12MonthValid > 0}
{($LASTBLOCKSBYTIME.12MonthDifficulty / $LASTBLOCKSBYTIME.12MonthValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.12MonthEstimatedShares}</td>
<td align="center">{$LASTBLOCKSBYTIME.12MonthShares}</td>
<td align="center">
<td>{$LASTBLOCKSBYTIME.12MonthEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.12MonthShares}</td>
<td>
{if $LASTBLOCKSBYTIME.12MonthEstimatedShares > 0}
<font color="{if (($LASTBLOCKSBYTIME.12MonthShares / $LASTBLOCKSBYTIME.12MonthEstimatedShares * 100) <= 100)}green{else}red{/if}">{($LASTBLOCKSBYTIME.12MonthShares / $LASTBLOCKSBYTIME.12MonthEstimatedShares * 100)|number_format:"2"}%</font></b>
{else}
0.00%
{/if}
</td>
<td align="center">{$LASTBLOCKSBYTIME.12MonthAmount}</td>
<td align="center">{($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td>{$LASTBLOCKSBYTIME.12MonthAmount}</td>
<td>{($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
</tbody>
</table>

View File

@ -39,10 +39,10 @@
<table class="tablesorter">
<tbody>
<tr>
<td align="left">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={if is_array($BLOCKSFOUND) && count($BLOCKSFOUND) > ($BLOCKLIMIT - 1)}{$BLOCKSFOUND[$BLOCKLIMIT - 1].height}{/if}&prev=1"><i class="fa fa-chevron-left fa"></i></a>
</td>
<td align="right">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={if is_array($BLOCKSFOUND) && count($BLOCKSFOUND) > 0}{$BLOCKSFOUND[0].height}{/if}&next=1"><i class="fa fa-chevron-right fa"></i></a>
</td>
</tr>

View File

@ -8,16 +8,16 @@
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th align="center">Block</th>
<th align="center">Validity</th>
<th>Block</th>
<th>Validity</th>
<th>Finder</th>
<th align="center">Time</th>
<th align="right">Difficulty</th>
<th align="right">Amount</th>
<th align="right">Expected Shares</th>
{if $GLOBAL.config.payout_system == 'pplns'}<th align="right">PPLNS Shares</th>{/if}
<th align="right">Actual Shares</th>
<th align="right" style="padding-right: 25px;">Percentage</th>
<th>Time</th>
<th>Difficulty</th>
<th>Amount</th>
<th>Expected Shares</th>
{if $GLOBAL.config.payout_system == 'pplns'}<th>PPLNS Shares</th>{/if}
<th>Actual Shares</th>
<th style="padding-right: 25px;">Percentage</th>
</tr>
</thead>
<tbody>
@ -29,13 +29,13 @@
{assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares}
{assign var="count" value=$count+1}
{if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if}
<tr class="{cycle values="odd,even"}">
<tr>
{if ! $GLOBAL.website.blockexplorer.disabled}
<td align="center"><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$BLOCKSFOUND[block].height}">{$BLOCKSFOUND[block].height}</a></td>
<td><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$BLOCKSFOUND[block].height}">{$BLOCKSFOUND[block].height}</a></td>
{else}
<td align="center">{$BLOCKSFOUND[block].height}</td>
<td>{$BLOCKSFOUND[block].height}</td>
{/if}
<td align="center">
<td>
{if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations}
<span class="confirmed">Confirmed</span>
{else if $BLOCKSFOUND[block].confirmations == -1}
@ -45,27 +45,27 @@
{/if}
</td>
<td>{if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}</td>
<td align="center">{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
<td align="right">{$BLOCKSFOUND[block].difficulty|number_format:"2"}</td>
<td align="right">{$BLOCKSFOUND[block].amount|number_format:"2"}</td>
<td align="right">
<td>{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
<td>{$BLOCKSFOUND[block].difficulty|number_format:"2"}</td>
<td>{$BLOCKSFOUND[block].amount|number_format:"2"}</td>
<td>
{assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares}
{$BLOCKSFOUND[block].estshares|number_format}
</td>
{if $GLOBAL.config.payout_system == 'pplns'}<td align="right">{$BLOCKSFOUND[block].pplns_shares|number_format}</td>{/if}
<td align="right">{$BLOCKSFOUND[block].shares|number_format}</td>
<td align="right" style="padding-right: 25px;">
{if $GLOBAL.config.payout_system == 'pplns'}<td>{$BLOCKSFOUND[block].pplns_shares|number_format}</td>{/if}
<td>{$BLOCKSFOUND[block].shares|number_format}</td>
<td style="padding-right: 25px;">
{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
<font color="{if ($percentage <= 100)}green{else}red{/if}">{$percentage|number_format:"2"}</font>
</td>
</tr>
{/section}
<tr>
<td colspan="6" align="right"><b>Totals</b></td>
<td align="right">{$totalexpectedshares|number_format}</td>
{if $GLOBAL.config.payout_system == 'pplns'}<td align="right">{$pplnsshares|number_format}</td>{/if}
<td align="right">{$totalshares|number_format}</td>
<td align="right" style="padding-right: 25px;">{if $count > 0}<font color="{if (($totalshares / $totalexpectedshares * 100) <= 100)}green{else}red{/if}">{($totalshares / $totalexpectedshares * 100)|number_format:"2"}</font>{else}0{/if}</td>
<td colspan="6"><b>Totals</b></td>
<td>{$totalexpectedshares|number_format}</td>
{if $GLOBAL.config.payout_system == 'pplns'}<td>{$pplnsshares|number_format}</td>{/if}
<td>{$totalshares|number_format}</td>
<td style="padding-right: 25px;">{if $count > 0}<font color="{if (($totalshares / $totalexpectedshares * 100) <= 100)}green{else}red{/if}">{($totalshares / $totalexpectedshares * 100)|number_format:"2"}</font>{else}0{/if}</td>
</tr>
</tbody>
</table>

View File

@ -4,7 +4,7 @@
Last Found Blocks
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Block</th>
@ -16,15 +16,15 @@
<tbody>
{assign var=rank value=1}
{section block $BLOCKSFOUND}
<tr class="{cycle values="odd,even"}">
<tr>
{if ! $GLOBAL.website.blockexplorer.disabled}
<td align="center"><a href="{$GLOBAL.website.blockexplorer.url}{$BLOCKSFOUND[block].blockhash}" target="_new">{$BLOCKSFOUND[block].height}</a></td>
<td><a href="{$GLOBAL.website.blockexplorer.url}{$BLOCKSFOUND[block].blockhash}" target="_new">{$BLOCKSFOUND[block].height}</a></td>
{else}
<td align="center">{$BLOCKSFOUND[block].height}</td>
<td>{$BLOCKSFOUND[block].height}</td>
{/if}
<td>{if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}</td>
<td align="left">{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
<td align="left">{$BLOCKSFOUND[block].shares|number_format}</td>
<td>{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
<td>{$BLOCKSFOUND[block].shares|number_format}</td>
</tr>
{/section}
</tbody>

2
public/templates/bootstrap/statistics/default.tpl Normal file → Executable file
View File

@ -4,7 +4,7 @@
General Statistics
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td class="leftheader">Pool Hash Rate</td>

View File

@ -4,15 +4,15 @@
Contributor Hashrates
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Rank</th>
<th align="center">Donor</th>
<th align="center" scope="col">User Name</th>
<th align="right" style="padding-right: 7px;" scope="col">KH/s</th>
<th align="right">{$GLOBAL.config.currency}/Day</th>
{if $GLOBAL.config.price.currency}<th align="right" style="padding-right: 25px;">{$GLOBAL.config.price.currency}/Day</th>{/if}
<th>Rank</th>
<th>Donor</th>
<th scope="col">User Name</th>
<th style="padding-right: 7px;" scope="col">KH/s</th>
<th>{$GLOBAL.config.currency}/Day</th>
{if $GLOBAL.config.price.currency}<th style="padding-right: 25px;">{$GLOBAL.config.price.currency}/Day</th>{/if}
</tr>
</thead>
<tbody>
@ -20,24 +20,24 @@
{assign var=listed value=0}
{section contrib $CONTRIBHASHES}
{math assign="estday" equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$CONTRIBHASHES[contrib].hashrate}
<tr{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<td align="center">{$rank++}</td>
<td align="center">{if $CONTRIBHASHES[contrib].donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw">{elseif $CONTRIBHASHES[contrib].donate_percent|default:"0" < 2 AND $CONTRIBHASHES[contrib].donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw">{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td align="center" style="padding-right: 0px;">{if $CONTRIBHASHES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBHASHES[contrib].account|escape}{/if}</td>
<td align="right" style="padding-right: 0px;">{$CONTRIBHASHES[contrib].hashrate|number_format}</td>
<td align="right" style="padding-right: 0px;">{$estday|number_format:"3"}</td>
{if $GLOBAL.config.price.currency}<td align="right" style="padding-right: 30px;">{($estday * $GLOBAL.price)|default:"n/a"|number_format:"4"}</td>{/if}
<tr{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1} style="background-color:#99EB99;"{else}{/if}>
<td>{$rank++}</td>
<td>{if $CONTRIBHASHES[contrib].donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw">{elseif $CONTRIBHASHES[contrib].donate_percent|default:"0" < 2 AND $CONTRIBHASHES[contrib].donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw">{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td style="padding-right: 0px;">{if $CONTRIBHASHES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBHASHES[contrib].account|escape}{/if}</td>
<td style="padding-right: 0px;">{$CONTRIBHASHES[contrib].hashrate|number_format}</td>
<td style="padding-right: 0px;">{$estday|number_format:"3"}</td>
{if $GLOBAL.config.price.currency}<td style="padding-right: 30px;">{($estday * $GLOBAL.price)|default:"n/a"|number_format:"4"}</td>{/if}
</tr>
{/section}
{if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.rawhashrate|default:"0" > 0}
{math assign="myestday" equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$GLOBAL.userdata.rawhashrate}
<tr>
<td align="center">n/a</td>
<td align="center">{if $GLOBAL.userdata.donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw"></i>{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw"></i>{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td align="center" style="padding-right: 0px;">{$GLOBAL.userdata.username|escape}</td>
<td align="right" style="padding-right: 0px;">{$GLOBAL.userdata.rawhashrate|number_format}</td>
<td align="right" style="padding-right: 0px;">{$myestday|number_format:"3"|default:"n/a"}</td>
{if $GLOBAL.config.price.currency}<td align="right" style="padding-right: 30px;">{($myestday * $GLOBAL.price)|default:"n/a"|number_format:"4"}</td>{/if}
<td>n/a</td>
<td>{if $GLOBAL.userdata.donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw"></i>{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw"></i>{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td style="padding-right: 0px;">{$GLOBAL.userdata.username|escape}</td>
<td style="padding-right: 0px;">{$GLOBAL.userdata.rawhashrate|number_format}</td>
<td style="padding-right: 0px;">{$myestday|number_format:"3"|default:"n/a"}</td>
{if $GLOBAL.config.price.currency}<td style="padding-right: 30px;">{($myestday * $GLOBAL.price)|default:"n/a"|number_format:"4"}</td>{/if}
</tr>
{/if}
</tbody>

View File

@ -4,32 +4,32 @@
Contributor Shares
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Rank</th>
<th align="center">Donor</th>
<th align="center">User Name</th>
<th align="right" style="padding-right: 30px;">Shares</th>
<th>Rank</th>
<th>Donor</th>
<th>User Name</th>
<th style="padding-right: 30px;">Shares</th>
</tr>
</thead>
<tbody>
{assign var=rank value=1}
{assign var=listed value=0}
{section shares $CONTRIBSHARES}
<tr{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBSHARES[shares].account|lower}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<td align="center">{$rank++}</td>
<td align="center">{if $CONTRIBSHARES[shares].donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw">{else if $CONTRIBSHARES[shares].donate_percent|default:"0" < 2 AND $CONTRIBSHARES[shares].donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw">{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td align="center">{if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}</td>
<td align="right" style="padding-right: 30px;">{$CONTRIBSHARES[shares].shares|number_format}</td>
<tr{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBSHARES[shares].account|lower}{assign var=listed value=1} style="background-color:#99EB99;"{else}{/if}>
<td>{$rank++}</td>
<td>{if $CONTRIBSHARES[shares].donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw">{else if $CONTRIBSHARES[shares].donate_percent|default:"0" < 2 AND $CONTRIBSHARES[shares].donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw">{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td>{if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}</td>
<td style="padding-right: 30px;">{$CONTRIBSHARES[shares].shares|number_format}</td>
</tr>
{/section}
{if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.shares.valid|default:"0" > 0}
<tr>
<td align="center">n/a</td>
<td align="center">{if $GLOBAL.userdata.donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw"></i>{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw"></i>{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td align="center">{$GLOBAL.userdata.username|escape}</td>
<td align="right" style="padding-right: 30px;">{$GLOBAL.userdata.shares.valid|number_format}</td>
<td>n/a</td>
<td>{if $GLOBAL.userdata.donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw"></i>{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw"></i>{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
<td>{$GLOBAL.userdata.username|escape}</td>
<td style="padding-right: 30px;">{$GLOBAL.userdata.shares.valid|number_format}</td>
</tr>
{/if}
</tbody>

View File

@ -4,22 +4,22 @@
General Statistics
</div>
<div class="panel-body">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<th align="left" width="50%">Pool Hash Rate</th>
<th width="50%">Pool Hash Rate</th>
<td width="70%"><span id="b-hashrate">{$GLOBAL.hashrate|number_format:"3"}</span> {$GLOBAL.hashunits.pool}</td>
</tr>
<tr>
<th align="left">Pool Efficiency</td>
<th>Pool Efficiency</td>
<td>{if $GLOBAL.roundshares.valid > 0}{($GLOBAL.roundshares.valid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%{else}0%{/if}</td>
</tr>
<tr>
<th align="left">Current Active Workers</td>
<th>Current Active Workers</td>
<td id="b-workers">{$GLOBAL.workers}</td>
</tr>
<tr>
<th align="left">Current Difficulty</td>
<th>Current Difficulty</td>
{if ! $GLOBAL.website.chaininfo.disabled}
<td><a href="{$GLOBAL.website.chaininfo.url}" target="_new"><font size="2"><span id="b-diff">{$NETWORK.difficulty}</span></font></a></td>
{else}
@ -27,7 +27,7 @@
{/if}
</tr>
<tr>
<th align="left">Est. Next Difficulty</td>
<th>Est. Next Difficulty</td>
{if ! $GLOBAL.website.chaininfo.disabled}
<td><a href="{$GLOBAL.website.chaininfo.url}" target="_new"><font size="2">{$NETWORK.EstNextDifficulty} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)</font></a></td>
{else}
@ -35,34 +35,34 @@
{/if}
</tr>
<tr>
<th align="left">Est. Avg. Time per Round (Network)</td>
<th>Est. Avg. Time per Round (Network)</td>
<td><font size="2">{$NETWORK.EstTimePerBlock|seconds_to_words}</font></td>
</tr>
<tr>
<th align="left">Est. Avg. Time per Round (Pool)</td>
<th>Est. Avg. Time per Round (Pool)</td>
<td>{$ESTTIME|seconds_to_words}</td>
</tr>
<tr>
<th align="left">Est. Shares this Round</td>
<th>Est. Shares this Round</td>
<td id="b-target">{$ESTIMATES.shares} (done: {$ESTIMATES.percent}%)</td>
</tr>
{if ! $GLOBAL.website.blockexplorer.disabled}
<tr>
<th align="left" width="50%">Next Network Block</td>
<th width="50%">Next Network Block</td>
<td colspan="3">{$CURRENTBLOCK + 1} &nbsp;&nbsp;<font size="1"> (Current: <a href="{$GLOBAL.website.blockexplorer.url}{$CURRENTBLOCKHASH}" target="_new">{$CURRENTBLOCK})</a></font></td>
</tr>
{else}
<tr>
<th align="left">Next Network Block</td>
<th>Next Network Block</td>
<td colspan="3">{$CURRENTBLOCK + 1} &nbsp;&nbsp; (Current: {$CURRENTBLOCK})</td>
</tr>
{/if}
<tr>
<th align="left">Last Block Found</td>
<th>Last Block Found</td>
<td colspan="3"><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$LASTBLOCK}" target="_new">{$LASTBLOCK|default:"0"}</a></td>
</tr>
<tr>
<th align="left">Time Since Last Block</td>
<th>Time Since Last Block</td>
<td colspan="3">{$TIMESINCELAST|seconds_to_words}</td>
</tr>
</tbody>

View File

@ -3,10 +3,10 @@
<table class="tablesorter">
<tbody>
<tr>
<td align="left">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page}&action={$smarty.request.action}&height={$BLOCKDETAILS.height}&prev=1"><i class="icon-left-open"></i></a>
</td>
<td colspan="7" align="right">
<td colspan="7">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page}&action={$smarty.request.action}&height={$BLOCKDETAILS.height}&next=1"><i class="icon-right-open"></i></a>
</td>
</tr>

View File

@ -6,24 +6,24 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<tbody>
<tr>
<td align="left">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&prev=1"><i class="fa fa-chevron-left fa-fw"></i></a>
</td>
<td align="right" colspan="4">
<td colspan="4">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&next=1"><i class="fa fa-chevron-right fa-fw"></i></a>
</td>
</tr>
</tbody>
</table>
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center" colspan="2">Block Statistics</th>
<th align="center" colspan="2">PPLNS Round Statistics</th>
<th colspan="2">Block Statistics</th>
<th colspan="2">PPLNS Round Statistics</th>
</tr>
</thead>
<tbody>

View File

@ -3,10 +3,10 @@
<table class="tablesorter">
<tbody>
<tr>
<td align="left">
<td>
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&prev=1"><i class="icon-left-open"></i></a>
</td>
<td align="right" colspan="4">
<td colspan="4">
<a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&height={$BLOCKDETAILS.height}&next=1"><i class="icon-right-open"></i></a>
</td>
</tr>
@ -16,8 +16,8 @@
<tbody>
<thead>
<tr>
<th align="center" colspan="4">Block Statistics</th>
<th align="center" colspan="4">PPLNS Round Statistics</th>
<th colspan="4">Block Statistics</th>
<th colspan="4">PPLNS Round Statistics</th>
</tr>
</thead>
<tr class="odd">

View File

@ -5,25 +5,25 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Rank</th>
<th align="left" >User Name</th>
<th align="right" >Valid</th>
<th align="right" >Invalid</th>
<th align="right" style="padding-right: 25px;">Invalid %</th>
<th>Rank</th>
<th >User Name</th>
<th >Valid</th>
<th >Invalid</th>
<th style="padding-right: 25px;">Invalid %</th>
</tr>
</thead>
<tbody>
{assign var=rank value=1}
{section contrib $PPLNSROUNDSHARES}
<tr{if $GLOBAL.userdata.username|default:"" == $PPLNSROUNDSHARES[contrib].username} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<td align="center">{$rank++}</td>
<tr{if $GLOBAL.userdata.username|default:"" == $PPLNSROUNDSHARES[contrib].username} style="background-color:#99EB99;"{else}{/if}>
<td>{$rank++}</td>
<td>{if $PPLNSROUNDSHARES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$PPLNSROUNDSHARES[contrib].username|default:"unknown"|escape}{/if}</td>
<td align="right">{$PPLNSROUNDSHARES[contrib].pplns_valid|number_format}</td>
<td align="right">{$PPLNSROUNDSHARES[contrib].pplns_invalid|number_format}</td>
<td align="right" style="padding-right: 25px;">{if $PPLNSROUNDSHARES[contrib].pplns_invalid > 0 && $PPLNSROUNDSHARES[contrib].pplns_valid > 0}{($PPLNSROUNDSHARES[contrib].pplns_invalid / $PPLNSROUNDSHARES[contrib].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{$PPLNSROUNDSHARES[contrib].pplns_valid|number_format}</td>
<td>{$PPLNSROUNDSHARES[contrib].pplns_invalid|number_format}</td>
<td style="padding-right: 25px;">{if $PPLNSROUNDSHARES[contrib].pplns_invalid > 0 && $PPLNSROUNDSHARES[contrib].pplns_valid > 0}{($PPLNSROUNDSHARES[contrib].pplns_invalid / $PPLNSROUNDSHARES[contrib].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
</tr>
{/section}
</tbody>

View File

@ -6,30 +6,30 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th >User Name</th>
<th align="right">Round Shares</th>
<th align="right">Round %</th>
<th align="right">PPLNS Shares</th>
<th align="right">PPLNS Round %</th>
<th align="right">Variance</th>
<th align="right" style="padding-right: 25px;">Amount</th>
<th>Round Shares</th>
<th>Round %</th>
<th>PPLNS Shares</th>
<th>PPLNS Round %</th>
<th>Variance</th>
<th style="padding-right: 25px;">Amount</th>
</tr>
</thead>
<tbody>
{assign var=percentage1 value=0}
{section txs $ROUNDTRANSACTIONS}
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username}{assign var=listed value=1} style="background-color:#99EB99;"{else}{/if}>
<td>{if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}</td>
<td align="right">{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}</td>
<td align="right">{if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid > 0 }{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|number_format:"2"}{else}0.00{/if}</td>
<td align="right">{$PPLNSROUNDSHARES[txs].pplns_valid|number_format|default:"0"}</td>
<td align="right">{if $PPLNSROUNDSHARES[txs].pplns_valid > 0 }{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"|default:"0"}{else}0{/if}</td>
<td align="right">{if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid > 0 && $PPLNSROUNDSHARES[txs].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
<td>{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}</td>
<td>{if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid > 0 }{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|number_format:"2"}{else}0.00{/if}</td>
<td>{$PPLNSROUNDSHARES[txs].pplns_valid|number_format|default:"0"}</td>
<td>{if $PPLNSROUNDSHARES[txs].pplns_valid > 0 }{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"|default:"0"}{else}0{/if}</td>
<td>{if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid > 0 && $PPLNSROUNDSHARES[txs].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
<font color="{if ($percentage1 >= 100)}green{else}red{/if}">{$percentage1|number_format:"2"}</font></b></td>
<td align="right" style="padding-right: 25px;">{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
<td style="padding-right: 25px;">{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
{assign var=percentage1 value=0}
</tr>
{/section}

View File

@ -6,37 +6,37 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th >User Name</th>
<th align="right">Round Valid</th>
<th align="right">Invalid</th>
<th align="right">Invalid %</th>
<th align="right">Round %</th>
<th align="right">PPLNS Valid</th>
<th align="right">Invalid</th>
<th align="right">Invalid %</th>
<th align="right">PPLNS Round %</th>
<th align="right">Variance</th>
<th align="right" style="padding-right: 25px;">Amount</th>
<th>Round Valid</th>
<th>Invalid</th>
<th>Invalid %</th>
<th>Round %</th>
<th>PPLNS Valid</th>
<th>Invalid</th>
<th>Invalid %</th>
<th>PPLNS Round %</th>
<th>Variance</th>
<th style="padding-right: 25px;">Amount</th>
</tr>
</thead>
<tbody>
{section txs $ROUNDTRANSACTIONS}
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username}{assign var=listed value=1} style="background-color:#99EB99;"{else}{/if}>
<td>{if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}</td>
<td align="right">{$SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid|number_format}</td>
<td align="right">{$SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid|number_format}</td>
<td align="right">{if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid > 0 }{($SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid / $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid > 0 }{(( 100 / $BLOCKDETAILS.shares) * $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid)|number_format:"2"}{else}0.00{/if}</td>
<td align="right">{$PPLNSROUNDSHARES[txs].pplns_valid|number_format}</td>
<td align="right">{$PPLNSROUNDSHARES[txs].pplns_invalid|number_format}</td>
<td align="right">{if $PPLNSROUNDSHARES[txs].pplns_invalid > 0 }{($PPLNSROUNDSHARES[txs].pplns_invalid / $PPLNSROUNDSHARES[txs].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td align="right">{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"}</td>
<td align="right">{if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid > 0 }{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
<td>{$SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid|number_format}</td>
<td>{$SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid|number_format}</td>
<td>{if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid > 0 }{($SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid / $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid > 0 }{(( 100 / $BLOCKDETAILS.shares) * $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid)|number_format:"2"}{else}0.00{/if}</td>
<td>{$PPLNSROUNDSHARES[txs].pplns_valid|number_format}</td>
<td>{$PPLNSROUNDSHARES[txs].pplns_invalid|number_format}</td>
<td>{if $PPLNSROUNDSHARES[txs].pplns_invalid > 0 }{($PPLNSROUNDSHARES[txs].pplns_invalid / $PPLNSROUNDSHARES[txs].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"}</td>
<td>{if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid > 0 }{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
<font color="{if ($percentage1 >= 100)}green{else}red{/if}">{$percentage1|number_format:"2"}</font></b></td>
<td align="right" style="padding-right: 25px;">{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
<td style="padding-right: 25px;">{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
{assign var=percentage1 value=0}
</tr>
{/section}

View File

@ -5,26 +5,26 @@
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th align="center">Rank</th>
<th align="left">User Name</th>
<th align="right">Valid</th>
<th align="right">Invalid</th>
<th align="right" style="padding-right: 25px;">Invalid %</th>
<th>Rank</th>
<th>User Name</th>
<th>Valid</th>
<th>Invalid</th>
<th style="padding-right: 25px;">Invalid %</th>
</tr>
</thead>
<tbody>
{assign var=rank value=1}
{assign var=listed value=0}
{foreach key=id item=data from=$ROUNDSHARES}
<tr{if $GLOBAL.userdata.username|default:"" == $data.username}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<td align="center">{$rank++}</td>
<tr{if $GLOBAL.userdata.username|default:"" == $data.username}{assign var=listed value=1} style="background-color:#99EB99;"{else}{/if}>
<td>{$rank++}</td>
<td>{if $data.is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$data.username|default:"unknown"|escape}{/if}</td>
<td align="right">{$data.valid|number_format}</td>
<td align="right">{$data.invalid|number_format}</td>
<td align="right" style="padding-right: 25px;">{if $data.invalid > 0 }{($data.invalid / $data.valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
<td>{$data.valid|number_format}</td>
<td>{$data.invalid|number_format}</td>
<td style="padding-right: 25px;">{if $data.invalid > 0 }{($data.invalid / $data.valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}</td>
</tr>
{/foreach}
</tbody>

View File

@ -9,20 +9,20 @@
<thead>
<tr>
<th>User Name</th>
<th align="center">Type</th>
<th align="right">Round Shares</th>
<th align="right" scope="col">Round %</th>
<th align="right" style="padding-right: 25px;">Amount</th>
<th>Type</th>
<th>Round Shares</th>
<th scope="col">Round %</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
{section txs $ROUNDTRANSACTIONS}
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
<tr{if $GLOBAL.userdata.username|default:"" == $ROUNDTRANSACTIONS[txs].username} style="background-color:#99EB99;"{else}{/if}>
<td>{if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}</td>
<td align="center">{$ROUNDTRANSACTIONS[txs].type|default:""}</td>
<td align="right">{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}</td>
<td align="right">{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|default:"0"|number_format:"2"}</td>
<td align="right" style="padding-right: 25px;">{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
<td>{$ROUNDTRANSACTIONS[txs].type|default:""}</td>
<td>{$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}</td>
<td>{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|default:"0"|number_format:"2"}</td>
<td style="padding-right: 25px;">{$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}</td>
</tr>
{/section}
</tbody>

View File

@ -5,11 +5,11 @@
<table class="tablesorter" width="80%" cellspacing="0">
<thead>
<tr>
<th align="center">Location</th>
<th align="center">Service</th>
<th align="center">Status</th>
<th align="center">Status Since</th>
<th align="center" colspan="4" style="padding-right: 10px">Uptime</th>
<th>Location</th>
<th>Service</th>
<th>Status</th>
<th>Status Since</th>
<th colspan="4" style="padding-right: 10px">Uptime</th>
</tr>
<tr>
<th colspan="4"></th>
@ -23,14 +23,14 @@
{foreach key=key item=item from=$STATUS}
{assign var=node value="."|explode:$item.friendlyname}
<tr>
<td align="center"><img src="{$GLOBALASSETS}/images/flags/{$node.0}.png"/></td>
{if $node|count > 1}<td align="center">{$node.1}</td>{/if}
<td align="center"><span class="ur-status-{$CODES[$item.status]|lower}">{$CODES[$item.status]}</span></td>
<td align="center">{$item.log.1.datetime|date_format:"%b %d, %Y %H:%M"}</td>
<td align="center"><span class="chart" data-percent="{$item.customuptimeratio.0}"><span class="percent"></span></span></td>
<td align="center"><span class="chart" data-percent="{$item.customuptimeratio.1}"><span class="percent"></span></span></td>
<td align="center"><span class="chart" data-percent="{$item.customuptimeratio.2}"><span class="percent"></span></span></td>
<td align="center"><span class="chart" data-percent="{$item.alltimeuptimeratio}"><span class="percent"></span></span></td>
<td><img src="{$GLOBALASSETS}/images/flags/{$node.0}.png"/></td>
{if $node|count > 1}<td>{$node.1}</td>{/if}
<td><span class="ur-status-{$CODES[$item.status]|lower}">{$CODES[$item.status]}</span></td>
<td>{$item.log.1.datetime|date_format:"%b %d, %Y %H:%M"}</td>
<td><span class="chart" data-percent="{$item.customuptimeratio.0}"><span class="percent"></span></span></td>
<td><span class="chart" data-percent="{$item.customuptimeratio.1}"><span class="percent"></span></span></td>
<td><span class="chart" data-percent="{$item.customuptimeratio.2}"><span class="percent"></span></span></td>
<td><span class="chart" data-percent="{$item.alltimeuptimeratio}"><span class="percent"></span></span></td>
</tr>
{/foreach}
</tbody>

16
public/templates/bootstrap/system/debugger.tpl Normal file → Executable file
View File

@ -16,17 +16,17 @@
</thead>
<tbody>
{section name=debug loop=$DebuggerInfo}
<tr class="{cycle values="even,odd"}">
<td align="center">{$DebuggerInfo[debug].level}</td>
<td align="right">{$DebuggerInfo[debug].time}</td>
<td align="left">{$DebuggerInfo[debug].message}</td>
<td align="left">
<tr>
<td>{$DebuggerInfo[debug].level}</td>
<td>{$DebuggerInfo[debug].time}</td>
<td>{$DebuggerInfo[debug].message}</td>
<td>
<table border="0">
{foreach from=$DebuggerInfo[debug].backtrace item=backtrace}
<tr>
<td style="display:inline-block; width:25px;">{$backtrace.line}</td>
<td style="display:inline-block; width:200px">{$backtrace.file}</td>
<td style="display:inline-block;">{$backtrace.function}</td>
<td>{$backtrace.line}</td>
<td>{$backtrace.file}</td>
<td>{$backtrace.function}</td>
</tr>
{/foreach}
</table>