Merge branch 'bootstrap' of https://github.com/MPOS/php-mpos into development

This commit is contained in:
iAmShorty 2014-03-22 11:17:36 +01:00
commit f76b2d564c
16 changed files with 1048 additions and 211 deletions

View File

@ -53,6 +53,10 @@
min-height: 50px;
}
.dropdown-user { min-width:100px;
}
.navbar-top-links .dropdown-menu li {
display: block;
}
@ -405,3 +409,61 @@ span.spark-18 {
span.spark-25 {
margin: -25%;
}
/* Test Edit */
.circle-tile {
margin-bottom: 30px;
}
.circle-tile {
margin-bottom: 15px;
text-align: center;
}
.circle-tile-content {
padding-top: 50px;
border-radius: 8px;
border: 3px solid rgba(255, 255, 255, 0.3);
}
.circle-tile-description {
font-weight: bold;
font-size: 16px;
}
.circle-tile-number {
padding: 0px 1px 4px;
}
.circle-tile-heading {
position: relative;
width: 80px;
height: 80px;
margin: 0px auto -40px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 100%;
color: #FFF;
transition: all 0.3s ease-in-out 0s;
}
.circle-tile-heading .fa {
line-height: 80px;
}
.blue {
background-color: #428BCA;
}
.text-faded {
color: rgba(255, 255, 255, 0.7);
}
p.up {
margin: -14px 0px 0px 0px;
}
div.up {
margin: -10px 0px 6px 0px;
}
/* End Test */

View File

@ -0,0 +1,412 @@
/* Global Styles */
/* ------------------------------- */
body {
background-color: #f8f8f8;
}
/* Wrappers */
/* ------------------------------- */
#wrapper {
width: 100%;
}
#page-wrapper {
padding: 0 15px;
min-height: 568px;
background-color: #fff;
}
@media(min-width:768px) {
#page-wrapper {
position: inherit;
margin: 0 0 0 250px;
padding: 0 30px;
min-height: 1300px;
border-left: 1px solid #e7e7e7;
}
}
.navbar-static-side ul li {
border-bottom: 1px solid #e7e7e7;
}
/* Navigation */
/* ------------------------------- */
/* Top Right Navigation Dropdown Styles */
.navbar-top-links li {
display: inline-block;
}
.navbar-top-links li:last-child {
margin-right: 15px;
}
.navbar-top-links li a {
padding: 15px;
min-height: 50px;
}
.navbar-top-links .dropdown-menu li {
display: block;
}
.navbar-top-links .dropdown-menu li:last-child {
margin-right: 0;
}
.navbar-top-links .dropdown-menu li a {
padding: 3px 20px;
min-height: 0;
}
.navbar-top-links .dropdown-menu li a div {
white-space: normal;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
width: 310px;
min-width: 0;
}
.navbar-top-links .dropdown-messages {
margin-left: 5px;
}
.navbar-top-links .dropdown-tasks {
margin-left: -59px;
}
.navbar-top-links .dropdown-alerts {
margin-left: -123px;
}
.navbar-top-links .dropdown-user {
right: 0;
left: auto;
}
/* Sidebar Menu Styles */
.sidebar-search {
padding: 15px;
}
.arrow {
float: right;
}
.fa.arrow:before {
content: "\f104";
}
.active > a > .fa.arrow:before {
content: "\f107";
}
.nav-second-level li,
.nav-third-level li {
border-bottom: none !important;
}
.nav-second-level li a {
padding-left: 37px;
}
.nav-third-level li a {
padding-left: 52px;
}
@media(min-width:768px) {
.navbar-static-side {
z-index: 1;
position: absolute;
width: 250px;
}
.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
margin-left: auto;
}
}
/* Buttons */
/* ------------------------------- */
.btn-outline {
color: inherit;
background-color: transparent;
transition: all .5s;
}
.btn-primary.btn-outline {
color: #428bca;
}
.btn-success.btn-outline {
color: #5cb85c;
}
.btn-info.btn-outline {
color: #5bc0de;
}
.btn-warning.btn-outline {
color: #f0ad4e;
}
.btn-danger.btn-outline {
color: #d9534f;
}
.btn-primary.btn-outline:hover,
.btn-success.btn-outline:hover,
.btn-info.btn-outline:hover,
.btn-warning.btn-outline:hover,
.btn-danger.btn-outline:hover {
color: #fff;
}
/* Pages */
/* ------------------------------- */
/* Dashboard Chat */
.chat {
margin: 0;
padding: 0;
list-style: none;
}
.chat li {
margin-bottom: 10px;
padding-bottom: 5px;
border-bottom: 1px dotted #B3A9A9;
}
.chat li.left .chat-body {
margin-left: 60px;
}
.chat li.right .chat-body {
margin-right: 60px;
}
.chat li .chat-body p {
margin: 0;
color: #777777;
}
.panel .slidedown .glyphicon,
.chat .glyphicon {
margin-right: 5px;
}
.chat-panel .panel-body {
height: 350px;
overflow-y: scroll;
}
/* Login Page */
.login-panel {
margin-top: 25%;
}
/* Flot Chart Containers */
.flot-chart {
display: block;
height: 400px;
}
.flot-chart-content {
width: 100%;
height: 100%;
}
/* DataTables Overrides */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
background: transparent;
}
table.dataTable thead .sorting_asc:after {
content: "\f0de";
float: right;
font-family: fontawesome;
}
table.dataTable thead .sorting_desc:after {
content: "\f0dd";
float: right;
font-family: fontawesome;
}
table.dataTable thead .sorting:after {
content: "\f0dc";
float: right;
font-family: fontawesome;
color: rgba(50,50,50,.5);
}
/* Circle Buttons */
.btn-circle {
width: 30px;
height: 30px;
padding: 6px 0;
border-radius: 15px;
text-align: center;
font-size: 12px;
line-height: 1.428571429;
}
.btn-circle.btn-lg {
width: 50px;
height: 50px;
padding: 10px 16px;
border-radius: 25px;
font-size: 18px;
line-height: 1.33;
}
.btn-circle.btn-xl {
width: 70px;
height: 70px;
padding: 10px 16px;
border-radius: 35px;
font-size: 24px;
line-height: 1.33;
}
.show-grid [class^="col-"] {
padding-top: 10px;
padding-bottom: 10px;
border: 1px solid #ddd;
background-color: #eee !important;
}
.show-grid {
margin: 15px 0;
}
/* No Padding for Tables */
.no-padding {
padding:0
}
.no-padding table {
margin: 0
}
.no-padding .table-bordered {
border: 0;
}
.borderless > tbody > tr > td {
border: none;
}
.borderless > thead > tr > th {
border: none;
}
.footer {
clear: both;
text-align: center;
padding: 4px 0px 0px;
font-size: 11px;
width: 100%;
}
.margin-bottom-sm {
margin-bottom: 5px !important;
}
p.overview {
font-family: 'Open Sans',sans-serif;
font-weight: 600;
font-size: 11px;
text-transform: uppercase;
display: block;
margin-bottom: 4px;
}
span.overview {
font-size: 20px;
font-weight: bold;
}
div.overview {
margin: 20px 0px 0px;
}
span.bigfont {
font-size: 100%;
}
th.smallwidth {
width: 250px;
}
.col-md-spark, .col-md-spark-2 {
position:relative;
min-height:1px;
padding-left:15px;
padding-right:15px
}
@media (min-width:992px) {
.col-md-spark, .col-md-spark-2 {
float: left;
}
.col-md-spark {
width:16.65%
}
.col-md-spark-2 {
width:20%
}
}
span.overview-mhs {
font-size: 11px;
font-weight: bold;
}
div.black {
color: black;
}
div.progress-fix {
margin: 0px 0px 5px 0px;
}
span.spark-18 {
margin: -20%;
}
span.spark-25 {
margin: -25%;
}
.table-striped>tbody>tr:nth-child(odd)>td,
.table-striped>tbody>tr:nth-child(odd)>th {
background-color: #99EB99;
}

View File

@ -132,7 +132,7 @@ $(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 class="text-right">' + workers[i].hashrate + '</td><td class="text-right">' + workers[i].difficulty + '</td></tr>');
$('#b-workers').append('<tr><td class="text-left">' + workers[i].username + '</td><td class="text-right">' + workers[i].hashrate + '</td><td class="text-right">' + workers[i].difficulty + '</td></tr>');
}
}
if (j == 0) { $('#b-workers').html('<tr><td colspan="3" class="text-center">No active workers</td></tr>'); }

View File

@ -1,37 +1,102 @@
<div class="col-md-spark">
<p class="overview">My Hashrate</p>
<span class="overview" id="b-hashrate">{$GLOBAL.userdata.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.personal}</span>
<br>
<span class="personal-hashrate-bar spark-18"></span>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-male fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>My Hashrate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-hashrate">{$GLOBAL.userdata.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.personal}</span>
<br>
<span class="personal-hashrate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<p class="overview">My Sharerate</p>
<span class="overview" id="b-sharerate">{$GLOBAL.userdata.sharerate|number_format:"2"}</span><span class="overview-mhs"> S/s</span>
<br>
<span class="personal-sharerate-bar spark-18"></span>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-users fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>Pool Hashrate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-poolhashrate">{$GLOBAL.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.pool}</span>
<br>
<span class="pool-hashrate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<p class="overview">Pool Hashrate</p>
<span class="overview" id="b-poolhashrate">{$GLOBAL.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.pool}</span>
<br>
<span class="pool-hashrate-bar spark-18"></span>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-share-square fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>My Sharerate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-sharerate">{$GLOBAL.userdata.sharerate|number_format:"2"}</span><span class="overview-mhs"> S/s</span>
<br>
<span class="personal-sharerate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<p class="overview">Pool Workers</p>
<span class="overview" id="b-poolworkers">{$GLOBAL.workers}</span>
<br>
<span class="pool-workers-bar spark-18"></span>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-truck fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>Pool Workers</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-poolworkers">{$GLOBAL.workers}</span>
<br>
<span class="pool-workers-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<p class="overview">Net Hashrate</p>
<span class="overview" id="b-nethashrate">{$GLOBAL.nethashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.network}</span>
<br>
<span class="pool-nethashrate-bar spark-18"></span>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-h-square fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>Net Hashrate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-nethashrate">{$GLOBAL.nethashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.network}</span>
<br>
<span class="pool-nethashrate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<p class="overview">{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}</p>
<span class="overview spark-25" id="b-price">{$GLOBAL.price|default:"0"|number_format:"8"}</span>
<br>
<span class="coin-price-line spark-25"></span>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-usd fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-price">{$GLOBAL.price|default:"0"|number_format:"8"}</span>
<br>
<span class="coin-price-line spark-25"></span>
</div>
</div>
</div>
</div>
</div>

View File

@ -1,31 +1,85 @@
<div class="col-md-spark-2">
<p class="overview">My Hashrate</p>
<span class="overview" id="b-hashrate">{$GLOBAL.userdata.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.personal}</span>
<br>
<span class="personal-hashrate-bar spark-18"></span>
<div class="col-md-spark-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-male fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>My Hashrate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-hashrate">{$GLOBAL.userdata.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.personal}</span>
<br>
<span class="personal-hashrate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark-2">
<p class="overview">My Sharerate</p>
<span class="overview" id="b-sharerate">{$GLOBAL.userdata.sharerate|number_format:"2"}</span><span class="overview-mhs"> S/s</span>
<br>
<span class="personal-sharerate-bar spark-18"></span>
<div class="col-md-spark-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-users fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>Pool Hashrate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-poolhashrate">{$GLOBAL.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.pool}</span>
<br>
<span class="pool-hashrate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark-2">
<p class="overview">Pool Hashrate</p>
<span class="overview" id="b-poolhashrate">{$GLOBAL.hashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.pool}<span>
<br>
<span class="pool-hashrate-bar spark-18"></span>
<div class="col-md-spark-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-share-square fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>My Sharerate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-sharerate">{$GLOBAL.userdata.sharerate|number_format:"2"}</span><span class="overview-mhs"> S/s</span>
<br>
<span class="personal-sharerate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark-2">
<p class="overview">Pool Workers</p>
<span class="overview" id="b-poolworkers">{$GLOBAL.workers}</span>
<br>
<span class="pool-workers-bar spark-18"></span>
<div class="col-md-spark-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-truck fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>Pool Workers</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-poolworkers">{$GLOBAL.workers}</span>
<br>
<span class="pool-workers-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-spark-2">
<p class="overview">Net Hashrate</p>
<span class="overview" id="b-nethashrate">{$GLOBAL.nethashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.network}</span>
<br>
<span class="pool-nethashrate-bar spark-18"></span>
<div class="col-md-spark-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-h-square fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p>Net Hashrate</p>
<div class="circle-tile-number text-faded up">
<span class="overview" id="b-nethashrate">{$GLOBAL.nethashrate|number_format:"2"}</span><span class="overview-mhs"> {$GLOBAL.hashunits.network}</span>
<br>
<span class="pool-nethashrate-bar spark-18"></span>
</div>
</div>
</div>
</div>
</div>

View File

@ -6,7 +6,7 @@
</h4>
</div>
<div class="panel-footer">
<div class="row show-grid">
<div class="row">
{* Depending on the price option we need to load a different template so it aligns properly *}
{if $GLOBAL.config.price.enabled}
{include file="dashboard/overview/_with_price_graph.tpl"}

View File

@ -1,35 +1,95 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-md-spark">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h6 font-bold m-t">{$NETWORK.block}</p>
<p class="h6 text-muted">Current Block</p>
<div class="row">
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-th-large fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-nblock">{$NETWORK.block}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Current Block</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h6 font-bold m-t">{$ESTIMATES.percent|number_format:"2"}%</p>
<p class="h6 text-muted">Of Expected Shares</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-roundprogress">{$ESTIMATES.percent|number_format:"2"}%</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Of Expected Shares</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} Estimated Earnings</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-money fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-payout">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">{$GLOBAL.config.currency} Estimated Earnings</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h6 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="h6 text-muted">Difficulty</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-map-marker fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-diff">{$NETWORK.difficulty|number_format:"8"}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Difficulty</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h6 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"}</p>
<p id="b-nextdiffc" class="h6 font-bold m-t">Change in {$NETWORK.BlocksUntilDiffChange} Blocks</p>
<p class="h6 text-muted">Est Next Difficulty</p>
</div>
<div class="col-md-spark">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h6 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="h6 text-muted">Est. Avg. Time per Block</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-sitemap fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-nextdiff">{$NETWORK.EstNextDifficulty|number_format:"8"}</p>
<p class="up" id="b-nextdiffc">Change in {$NETWORK.BlocksUntilDiffChange} Blocks</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Est Next Difficulty</p>
</div>
</div>
</div>
</div>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-clock-o fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-esttimeperblock">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Est. Avg. Time per Block</p>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,22 @@
<div class="col-lg-12">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-spinner fa-fw"></i> Round Information
</h4>
</div>
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/round.tpl"}
</div>
</div>
<div class="col-lg-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-cloud fa-fw"></i> Share Information
</h4>
</div>
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"}
</div>
</div>

View File

@ -0,0 +1,55 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.hours1|number_format:"12"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} 1 Hour Estimated Earnings</p>
</div>
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.hours1|number_format:"12"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} 24 Hours Estimated Earnings</p>
</div>
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.days7|number_format:"12"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} 7 Days Estimated Earnings</p>
</div>
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.days14|number_format:"12"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} 14 Days Estimated Earnings</p>
</div>
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.days30|number_format:"12"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} 30 Days Estimated Earnings</p>
</div>
<div class="col-md-spark">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h6 font-bold m-t">{$GLOBAL.ppsvalue}</p>
<p class="h6 text-muted">PPS Value</p>
</div>
<div class="col-md-spark">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h6 font-bold m-t">{$GLOBAL.userdata.pps.unpaidshares}</p>
<p class="h6 text-muted">Unpaid Shares</p>
</div>
<div class="col-md-spark">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h6 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="h6 text-muted">Difficulty</p>
</div>
<div class="col-md-spark">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h6 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"}</p>
<p id="b-nextdiffc" class="h6 font-bold m-t">Change in {$NETWORK.BlocksUntilDiffChange} Blocks</p>
<p class="h6 text-muted">Est Next Difficulty</p>
</div>
<div class="col-md-spark">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h6 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="h6 text-muted">Est. Avg. Time per Block</p>
</div>
</div>
</div>

View File

@ -0,0 +1,47 @@
<table class="table borderless m-b-none text-small">
<thead>
<tr>
<th></th>
<th><span><h5><i class="fa fa-user fa-fw"></i> Own<h5></th>
<th><span><h5><i class="fa fa-users fa-fw"></i> Pool</h6></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-smile-o fa-fw"></i> Valid</h6></th>
<th>
<div class="progress progress-striped progress-fix">
<div id="b-yvalid" class="progress-bar progress-bar-success black" style="width: 100%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="{$GLOBAL.userdata.shares.valid|number_format}" role="progressbar">{$GLOBAL.userdata.shares.valid|number_format}</div>
</div>
</th>
<th>
<div class="progress progress-striped progress-fix">
<div id="b-pvalid" class="progress-bar progress-bar-success black" style="width: 100%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="{$GLOBAL.roundshares.valid|number_format}" role="progressbar">{$GLOBAL.roundshares.valid|number_format}</div>
</div>
</th>
</tr>
<tr>
<th><h5><i class="fa fa-frown-o fa-fw"></i> Invalid</h6></th>
<th>
<div class="progress progress-striped progress-fix">
<div id="b-yivalid" class="progress-bar progress-bar-danger black" style="width: 100%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="{$GLOBAL.userdata.shares.invalid|number_format}" role="progressbar">{$GLOBAL.userdata.shares.invalid|number_format}</div>
</div>
</th>
<th>
<div class="progress progress-striped progress-fix">
<div id="b-pivalid" class="progress-bar progress-bar-danger black" style="width: 100%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="{$GLOBAL.roundshares.invalid|number_format}" role="progressbar">{$GLOBAL.roundshares.invalid|number_format}</div>
</div>
</th>
</tr>
<tr>
<th><h5><i class="fa fa-bolt fa-fw"></i> Efficiency</h5></th>
<th>
<div class="progress progress-striped active progress-fix">
<div id="b-yefficiency" class="progress-bar {if $GLOBAL.userdata.shares.valid > 0}progress-bar-info{else}progress-bar-warning{/if} black" style="width:{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}100.00%{/if}" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" role="progressbar">{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</div>
</div>
</th>
<th>
<div class="progress progress-striped active progress-fix">
<div id="b-pefficiency" class="progress-bar {if $GLOBAL.roundshares.valid > 0}progress-bar-info{else}progress-bar-warning{/if} black" style="width:{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}100.00%{/if}" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" role="progressbar">{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</div>
</div>
</tr>
</thead>
</table>

View File

@ -1,35 +1,95 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-md-spark">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h6 font-bold m-t">{$NETWORK.block}</p>
<p class="h6 text-muted">Current Block</p>
<div class="row">
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-th-large fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-nblock">{$NETWORK.block}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Current Block</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h6 font-bold m-t">{$ESTIMATES.percent|number_format:"2"}%</p>
<p class="h6 text-muted">Of Expected Shares</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-roundprogress">{$ESTIMATES.percent|number_format:"2"}%</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Of Expected Shares</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} Estimated Earnings</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-money fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-payout">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">{$GLOBAL.config.currency} Estimated Earnings</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h6 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="h6 text-muted">Difficulty</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-map-marker fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-diff">{$NETWORK.difficulty|number_format:"8"}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Difficulty</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h6 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"}</p>
<p id="b-nextdiffc" class="h6 font-bold m-t">Change in {$NETWORK.BlocksUntilDiffChange} Blocks</p>
<p class="h6 text-muted">Est Next Difficulty</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-sitemap fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-nextdiff">{$NETWORK.EstNextDifficulty|number_format:"8"}</p>
<p class="up" id="b-nextdiffc">Change in {$NETWORK.BlocksUntilDiffChange} Blocks</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Est Next Difficulty</p>
</div>
</div>
</div>
</div>
<div class="col-md-spark">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h6 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="h6 text-muted">Est. Avg. Time per Block</p>
<div class="col-lg-2 col-sm-6">
<div class="circle-tile">
<div class="circle-tile-heading blue">
<i class="fa fa-clock-o fa-fw fa-3x"></i>
</div>
<div class="circle-tile-content blue">
<div class="circle-tile-description text-faded">
<p id="b-esttimeperblock">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
</div>
<div class="circle-tile-number text-faded">
<p class="h5">Est. Avg. Time per Block</p>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -4,7 +4,7 @@
<div class="panel-heading">
<h4 class="panel-title"><i class="fa fa-desktop fa-fw"></i> Worker Information</h4>
</div>
<div class="panel-body no-padding">
<div class="panel-body no-padding table-responsive">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>

View File

@ -10,168 +10,168 @@
<thead>
<tr>
<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>
<th class="text-right">Gen est.</th>
<th class="text-right">Found</th>
<th class="text-right">Valid</th>
<th class="text-right">Orphan</th>
<th class="text-right">Avg Diff</th>
<th class="text-right">Shares est.</th>
<th class="text-right">Shares</th>
<th class="text-right">Percentage</th>
<th class="text-right">Amount</th>
<th class="text-right">Rate est.</th>
</tr>
</thead>
<tbody>
<tr>
<th style="padding-left: 15px">all time</th>
<td>{($FIRSTBLOCKFOUND / $COINGENTIME)|number_format:"0"}</td>
<td>{$LASTBLOCKSBYTIME.Total}</td>
<td>{$LASTBLOCKSBYTIME.TotalValid}</td>
<td>{$LASTBLOCKSBYTIME.TotalOrphan}</td>
<td>
<td class="text-right">{($FIRSTBLOCKFOUND / $COINGENTIME)|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.Total|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.TotalValid|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.TotalOrphan|number_format}</td>
<td class="text-right">
{if $LASTBLOCKSBYTIME.TotalValid > 0}
{($LASTBLOCKSBYTIME.TotalDifficulty / $LASTBLOCKSBYTIME.TotalValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td>{$LASTBLOCKSBYTIME.TotalEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.TotalShares}</td>
<td>
<td class="text-right">{$LASTBLOCKSBYTIME.TotalEstimatedShares|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.TotalShares|number_format}</td>
<td class="text-right">
{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>{$LASTBLOCKSBYTIME.TotalAmount}</td>
<td>{($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td class="text-right">{$LASTBLOCKSBYTIME.TotalAmount|number_format}</td>
<td class="text-right">{($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th style="padding-left: 15px">last hour</th>
<td>{(3600 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.1HourTotal}</td>
<td>{$LASTBLOCKSBYTIME.1HourValid}</td>
<td>{$LASTBLOCKSBYTIME.1HourOrphan}</td>
<td>
<td class="text-right">{(3600 / $COINGENTIME)|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.1HourTotal|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.1HourValid|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.1HourOrphan|number_format}</td>
<td class="text-right">
{if $LASTBLOCKSBYTIME.1HourValid > 0}
{($LASTBLOCKSBYTIME.1HourDifficulty / $LASTBLOCKSBYTIME.1HourValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td>{$LASTBLOCKSBYTIME.1HourEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.1HourShares}</td>
<td>
<td class="text-right">{$LASTBLOCKSBYTIME.1HourEstimatedShares|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.1HourShares|number_format}</td>
<td class="text-right">
{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>{$LASTBLOCKSBYTIME.1HourAmount}</td>
<td>{($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td class="text-right">{$LASTBLOCKSBYTIME.1HourAmount|number_format}</td>
<td class="text-right">{($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th style="padding-left: 15px">last 24 hours</th>
<td>{(86400 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.24HourTotal}</td>
<td>{$LASTBLOCKSBYTIME.24HourValid}</td>
<td>{$LASTBLOCKSBYTIME.24HourOrphan}</td>
<td>
<td class="text-right">{(86400 / $COINGENTIME)|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.24HourTotal|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.24HourValid|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.24HourOrphan|number_format}</td>
<td class="text-right">
{if $LASTBLOCKSBYTIME.24HourValid > 0}
{($LASTBLOCKSBYTIME.24HourDifficulty / $LASTBLOCKSBYTIME.24HourValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td>{$LASTBLOCKSBYTIME.24HourEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.24HourShares}</td>
<td>
<td class="text-right">{$LASTBLOCKSBYTIME.24HourEstimatedShares|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.24HourShares|number_format}</td>
<td class="text-right">
{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>{$LASTBLOCKSBYTIME.24HourAmount}</td>
<td>{($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td class="text-right">{$LASTBLOCKSBYTIME.24HourAmount|number_format}</td>
<td class="text-right">{($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th style="padding-left: 15px">last 7 days</th>
<td>{(604800 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.7DaysTotal}</td>
<td>{$LASTBLOCKSBYTIME.7DaysValid}</td>
<td>{$LASTBLOCKSBYTIME.7DaysOrphan}</td>
<td>
<td class="text-right">{(604800 / $COINGENTIME)|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.7DaysTotal|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.7DaysValid|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.7DaysOrphan|number_format}</td>
<td class="text-right">
{if $LASTBLOCKSBYTIME.7DaysValid > 0}
{($LASTBLOCKSBYTIME.7DaysDifficulty / $LASTBLOCKSBYTIME.7DaysValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td>{$LASTBLOCKSBYTIME.7DaysEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.7DaysShares}</td>
<td>
<td class="text-right">{$LASTBLOCKSBYTIME.7DaysEstimatedShares|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.7DaysShares|number_format}</td>
<td class="text-right">
{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>{$LASTBLOCKSBYTIME.7DaysAmount}</td>
<td>{($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td class="text-right">{$LASTBLOCKSBYTIME.7DaysAmount}</td>
<td class="text-right">{($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th style="padding-left: 15px">last 4 Weeks</th>
<td>{(2419200 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksTotal}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksValid}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksOrphan}</td>
<td>
<td class="text-right">{(2419200 / $COINGENTIME)|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.4WeeksTotal|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.4WeeksValid|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.4WeeksOrphan|number_format}</td>
<td class="text-right">
{if $LASTBLOCKSBYTIME.4WeeksValid > 0}
{($LASTBLOCKSBYTIME.4WeeksDifficulty / $LASTBLOCKSBYTIME.4WeeksValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td>{$LASTBLOCKSBYTIME.4WeeksEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.4WeeksShares}</td>
<td>
<td class="text-right">{$LASTBLOCKSBYTIME.4WeeksEstimatedShares|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.4WeeksShares|number_format}</td>
<td class="text-right">
{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>{$LASTBLOCKSBYTIME.4WeeksAmount}</td>
<td>{($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td class="text-right">{$LASTBLOCKSBYTIME.4WeeksAmount|number_format}</td>
<td class="text-right">{($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
<tr>
<th style="padding-left: 15px">last 12 Month</th>
<td>{(29030400 / $COINGENTIME)}</td>
<td>{$LASTBLOCKSBYTIME.12MonthTotal}</td>
<td>{$LASTBLOCKSBYTIME.12MonthValid}</td>
<td>{$LASTBLOCKSBYTIME.12MonthOrphan}</td>
<td>
<td class="text-right">{(29030400 / $COINGENTIME)|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.12MonthTotal|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.12MonthValid|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.12MonthOrphan|number_format}</td>
<td class="text-right">
{if $LASTBLOCKSBYTIME.12MonthValid > 0}
{($LASTBLOCKSBYTIME.12MonthDifficulty / $LASTBLOCKSBYTIME.12MonthValid)|number_format:"4"}
{else}
0
{/if}
</td>
<td>{$LASTBLOCKSBYTIME.12MonthEstimatedShares}</td>
<td>{$LASTBLOCKSBYTIME.12MonthShares}</td>
<td>
<td class="text-right">{$LASTBLOCKSBYTIME.12MonthEstimatedShares|number_format}</td>
<td class="text-right">{$LASTBLOCKSBYTIME.12MonthShares|number_format}</td>
<td class="text-right">
{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>{$LASTBLOCKSBYTIME.12MonthAmount}</td>
<td>{($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
<td class="text-right">{$LASTBLOCKSBYTIME.12MonthAmount|number_format}</td>
<td class="text-right">{($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%</td>
</tr>
</tbody>
</table>

View File

@ -9,16 +9,16 @@
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Block</th>
<th>Validity</th>
<th>Finder</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>
<th class="text-right">Block</th>
<th class="text-center">Validity</th>
<th class="text-left">Finder</th>
<th class="text-right">Time</th>
<th class="text-right">Difficulty</th>
<th class="text-right">Amount</th>
<th class="text-right">Expected Shares</th>
{if $GLOBAL.config.payout_system == 'pplns'}<th class="text-right">PPLNS Shares</th>{/if}
<th class="text-right">Actual Shares</th>
<th class="text-right">Percentage</th>
</tr>
</thead>
<tbody>
@ -32,11 +32,11 @@
{assign var="count" value=$count+1}
{if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if}
{if ! $GLOBAL.website.blockexplorer.disabled}
<td><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$BLOCKSFOUND[block].height}">{$BLOCKSFOUND[block].height}</a></td>
<td class="text-right"><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$BLOCKSFOUND[block].height}">{$BLOCKSFOUND[block].height}</a></td>
{else}
<td>{$BLOCKSFOUND[block].height}</td>
<td class="text-right">{$BLOCKSFOUND[block].height}</td>
{/if}
<td>
<td class="text-center">
{if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations}
<span class="label label-success">Confirmed</span>
{else if $BLOCKSFOUND[block].confirmations == -1}
@ -46,18 +46,18 @@
{/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>{$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>
<td class="text-right">{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
<td class="text-right">{$BLOCKSFOUND[block].difficulty|number_format:"4"}</td>
<td class="text-right">{$BLOCKSFOUND[block].amount|number_format:"2"}</td>
<td class="text-right">
{assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares}
{$BLOCKSFOUND[block].estshares|number_format}
</td>
{if $GLOBAL.config.payout_system == 'pplns'}
<td>{$BLOCKSFOUND[block].pplns_shares|number_format}</td>
<td class="text-right">{$BLOCKSFOUND[block].pplns_shares|number_format}</td>
{/if}
<td>{$BLOCKSFOUND[block].shares|number_format}</td>
<td style="padding-right: 25px;">
<td class="text-right">{$BLOCKSFOUND[block].shares|number_format}</td>
<td class="text-right">
{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>
@ -65,12 +65,12 @@
{/section}
<tr>
<td colspan="6"><b>Totals</b></td>
<td>{$totalexpectedshares|number_format}</td>
<td class="text-right">{$totalexpectedshares|number_format}</td>
{if $GLOBAL.config.payout_system == 'pplns'}
<td>{$pplnsshares|number_format}</td>
<td class="text-right">{$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>
<td class="text-right">{$totalshares|number_format}</td>
<td class="text-right">{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

@ -22,7 +22,7 @@
{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}{/if}>
{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}<tr id="test">{else}<tr>{/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>{if $CONTRIBHASHES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBHASHES[contrib].account|escape}{/if}</td>
@ -35,7 +35,7 @@
{/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>
<tr{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1} style="color:#99EB99;"{else}{/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>{$GLOBAL.userdata.username|escape}</td>

View File

@ -17,7 +17,7 @@
{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}{/if}>
{if $GLOBAL.userdata.username|default:""|lower == $CONTRIBSHARES[shares].account|lower}{assign var=listed value=1}<tr class"info">{else}<tr>{/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>
@ -25,7 +25,7 @@
</tr>
{/section}
{if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.shares.valid|default:"0" > 0}
<tr>
<tr {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1} style="color:#99EB99;"{else}{/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>{$GLOBAL.userdata.username|escape}</td>