Esempio n. 1
0
# author    iJoomla
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com.com/forum/index/
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$doc->addScript(JURI::root() . '/components/com_guru/js/sorttable.js');
$details = $this->details;
$total_paid = $this->total_paid;
$config = $this->config;
$datetype = $config->datetype;
$currencypos = $config->currencypos;
$character = "GURU_CURRENCY_" . $config->currency;
$guruModelguruAuthor = new guruModelguruAuthor();
$pagination = $this->getDetailsPagination();
//-----------------------------------------------------------------------------------
$tot = "";
if (isset($total_paid) && count($total_paid) > 0) {
    $temp = array();
    foreach ($total_paid as $key => $value) {
        if (isset($temp[$value["currency"]])) {
            $temp[$value["currency"]] += $value["amount_paid_author"];
        } else {
            $temp[$value["currency"]] = $value["amount_paid_author"];
        }
    }
    if ($currencypos == 0) {
        foreach ($temp as $currency => $value) {
            $temp[$currency] = JText::_("GURU_CURRENCY_" . $currency) . " " . number_format($value, 2);
Esempio n. 2
0
<?php

/*------------------------------------------------------------------------
# com_guru
# ------------------------------------------------------------------------
# author    iJoomla
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com.com/forum/index/
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$doc->addScript(JURI::root() . '/components/com_guru/js/sorttable.js');
$guruModelguruAuthor = new guruModelguruAuthor();
$details = $this->details;
$n = count($details);
$config = $this->config;
$datetype = $config->datetype;
$currencypos = $config->currencypos;
$character = "GURU_CURRENCY_" . $config->currency;
$total_pending = $this->total_pending;
$sum_price = $guruModelguruAuthor->getPendingDetailsTotalPrice();
$sum_price_paid = $guruModelguruAuthor->getPendingDetailsTotalPricePaid();
//-----------------------------------------------------------------------------------
$tot = "";
if (isset($total_pending) && count($total_pending) > 0) {
    $temp = array();
    foreach ($total_pending as $key => $value) {
        if (isset($temp[$value["currency"]])) {
            $temp[$value["currency"]] += $value["amount_paid_author"];
<?php

/*------------------------------------------------------------------------
# com_guru
# ------------------------------------------------------------------------
# author    iJoomla
# copyright Copyright (C) 2013 ijoomla.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.ijoomla.com
# Technical Support:  Forum - http://www.ijoomla.com.com/forum/index/
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$doc->addScript(JURI::root() . '/components/com_guru/js/sorttable.js');
$guruModelguruAuthor = new guruModelguruAuthor();
$details = $this->details_paid;
$n = count($details);
$config = $this->config;
$datetype = $config->datetype;
$currencypos = $config->currencypos;
$character = "GURU_CURRENCY_" . $config->currency;
$block = JRequest::getVar("block", "0");
$date_url = $guruModelguruAuthor->getDateFormat2(JRequest::getVar("date", ""));
$total_ammount = $guruModelguruAuthor->getPendingDetailsTotal();
$pagination = $this->getDetailsPagination();
$course_id_request = JRequest::getVar("course_id", "0");
$course_nam_top = $guruModelguruAuthor->getCourseName1($course_id_request);
$sum_price = $guruModelguruAuthor->getPendingDetailsTotalPrice();
$sum_price_paid = $guruModelguruAuthor->getPendingDetailsTotalPricePaid();
//-----------------------------------------------------------------------------------
$tot = "";