diff --git a/application/modules/default/views/scripts/user/partials/loopPlings.phtml b/application/modules/default/views/scripts/user/partials/loopPlings.phtml index 92ce358d4..79b619c28 100644 --- a/application/modules/default/views/scripts/user/partials/loopPlings.phtml +++ b/application/modules/default/views/scripts/user/partials/loopPlings.phtml @@ -1,509 +1,441 @@ . **/ ?>
-hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { -?> -
Products
-
Products
-
Downloads
Pling-Factor
Payout
-hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { -?> -
Score-Factor
-
Payout
- - -
Plings
-
Potential Payout**
getUserDownloadsForMonth($this->member->member_id, $printCurrentMonth->format('Ym')); +$allDownloads = $modelDownload->getUserDownloadsForMonth($this->member->member_id, $minDate); $countDownloadsOverall = count($allDownloads); if ($countDownloadsOverall > 0) { foreach ($allDownloads as $month => $products) { $printMonth = new DateTime($month.'01'); $printCurrentMonth = new DateTime($currentDate.'01'); if($printMonth == $printCurrentMonth) { $isCurrentMonth = true; } else { $isCurrentMonth = false; } $sum_total_month_score = 0; $sum_total_month = 0; $sum_total_month_new = 0; $sum_total_text = ''; $sum_total_payout = 0; $sum_total_payout_new = 0; ?>
-hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { -?> -
-
- - -
- - - -
*/ ?>
"; $showErrMsg = false; if($isCurrentMonth) { if($product['is_license_missing_now'] == 1) { $errorMsg .= "
  • Please specify a License
  • "; $showErrMsg = true; } if($product['is_source_missing_now'] == 1) { $errorMsg .= "
  • Please specify a link to the online source repository
  • "; $showErrMsg = true; } if($product['is_pling_excluded_now'] == 1) { $errorMsg .= "
  • This Product has been excluded from plings
  • "; $showErrMsg = true; } $sum_plings = $product['num_plings_now']; } else { if($product['is_license_missing'] == 1) { $errorMsg .= "
  • License was not specified
  • "; $showErrMsg = true; } if($product['is_source_missing'] == 1) { $errorMsg .= "
  • Link to the online source repository was not specified
  • "; $showErrMsg = true; } if($product['is_pling_excluded'] == 1) { $errorMsg .= "
  • This Product has been excluded from plings
  • "; $showErrMsg = true; } $sum_plings = $product['num_plings']; } $errorMsg .= ""; if($showErrMsg) { echo '
    '; } else { print($currency->toCurrency($product['num_downloads'] * $product['dl_pling_factor'] / 100)); } ?>
    - -hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { -?> -
    - -
    -
    - toCurrency( ($product['num_downloads'] * $product['dl_pling_factor'] / 100) * $product['laplace_score'])); ?> -
    - -
    0) { $show_payout_new_sum = $show_payout_new_sum ; } else { $show_payout_new_sum = $payout_sum_new; } ?> toCurrency($show_payout_new_sum) ?>   -
    toCurrency($sum_total_month_score); if(!$showErrMsg) { $sum_total_month += $payout_sum; $sum_total_payout = $currency->toCurrency($sum_total_month); $sum_total_month_new += $show_payout_new_sum; $sum_total_payout_new = $currency->toCurrency($sum_total_month_new); } $sum_total_text = 'Possible payout for this month (*):'; $payout_success = false; if ($product['status'] == Default_Model_DbTable_MemberPayout::$PAYOUT_STATUS_COMPLETED) { $payout_success = true; $sum_total_payout_success = $currency->toCurrency($product['amount']); $sum_total_text_success = 'Actually successfully paid amount: '; } $has_paypal = $product['paypal_mail'] ? true : false; } $sum_total_month_view = number_format($sum_total_month); ?>
    -hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { -?> -
    -
    - -
    - -hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') { -?> -
    -
    -
    view_member; if(!isset($member['paypal_mail']) || $member['paypal_mail'] == '') { $has_paypal = false; $paypalWarning = 'You have no PayPal account configured. Please go to your settings page here.'; } else { $has_paypal = true; } } else { $paypalWarning = 'We found no valid Paypal account for this month. That\'s why we could not pay you any money. In order to receive money for the current month, please make sure that a paypal account is registered. Go to your settings page here.'; } if (false == $has_paypal) { echo ''; } if (($sum_total_month/100) < 1) { echo ''; } ?>
    '; echo '
    No Data
    '; echo '
    '; echo '
    Possible payout for this month (*):
    $0.00
    '; echo '
    '; echo '
    '; } ?> inlineScript()->appendScript( ' $(document).ready(function(){ $(\'[data-toggle="popover"]\').popover(); }); '); \ No newline at end of file diff --git a/application/modules/default/views/scripts/user/plings.phtml b/application/modules/default/views/scripts/user/plings.phtml index d4c3ff59a..05dab073f 100644 --- a/application/modules/default/views/scripts/user/plings.phtml +++ b/application/modules/default/views/scripts/user/plings.phtml @@ -1,88 +1,104 @@ . **/ $this->tab = 'plings'; $this->countDownloadsOverall = 0; #$modelDownload = new Default_Model_StatDownload(); #$this->downloads = $modelDownload->getUserDownloads($this->member->member_id); #$this->countDownloadsOverall = count($this->downloads); ?>
    render('user/partials/userHeader_top.phtml'); ?>
    render('user/partials/userHeader.phtml'); ?>

    translate('Payout') ?>

    view_member; if($member->pling_excluded == 1) { echo "


    This account has been excluded from receiving plings, due to various misuses.

    "; } ?>
    view_member; if($member->paypal_valid_status > 100) { $status = $this->paypal_valid_status; if($status->color == 'red') { echo ''; } if($status->color == 'yellow') { echo ''; } if($status->color == 'blue') { echo ''; } if($status->color == 'green') { echo ''; } } ?>
    pling_excluded == 0 || (Zend_Auth::getInstance()->hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin')) { ?>
    +
    + +
    +

    Content heading 1

    +

    Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.

    +
    +
    +

    Content heading 2

    +

    Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.

    +
    +
    + + countDownloadsOverall > 0) { echo $this->render('user/partials/loopPlings.phtml'); //} else { // echo ''; //} ?>