Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jdonation/view/statistic/tmpl/default_shortstatistics.php
Ðазад
<?php use Joomla\CMS\Language\Text; /** * @version 5.6.0 * @package Joomla * @subpackage Joom Donation * @author Tuan Pham Ngoc * @copyright Copyright (C) 2009 - 2023 Ossolution Team * @license GNU/GPL, see LICENSE.php */ // no direct access defined('_JEXEC') or die; $config = $this->config; $decimals = isset($config->decimals) ? $config->decimals : 2; $dec_point = isset($config->dec_point) ? $config->dec_point : '.'; $thousands_sep = isset($config->thousands_sep) ? $config->thousands_sep : ','; if(DonationHelper::isMultipleCurrencies()){ $active_currencies = $config->active_currencies; $active_currencies_array = explode(",",$active_currencies); if((!in_array($config->currency,$active_currencies_array)) && ($config->currency != "")){ $active_currencies_array[count($active_currencies_array)] = $config->currency; } } ?> <table class="table table-striped jdonation_dasboard"> <thead> <tr> <th class="title" width="30%"><?php echo Text::_('JD_TIME') ?></th> <th class="title" width="30%"><?php echo Text::_('JD_NUMBER_DONATIONS') ?></th> <th class="title" width="40%" style="text-align:right;padding-right:40px;"><?php echo Text::_('JD_AMOUNT') ?></th> </tr> </thead> <tbody> <tr> <td> <?php echo Text::_('JD_TODAY'); ?> </td> <td class="center"> <?php if(DonationHelper::isMultipleCurrencies()){ foreach($active_currencies_array as $currency){ if($this->data['today'][$currency]['total_donations'] > 0){ echo "<strong>"; echo $this->data['today'][$currency]['total_donations']; echo "</strong>"; }else{ echo "0"; } echo "<BR />"; } }else{ if($this->data['today']['total_donations'] > 0){ echo "<strong>"; echo $this->data['today']['total_donations']; echo "</strong>"; }else{ echo "0"; } } ?> </td> <td style="text-align:right;padding-right:40px;"> <?php if(DonationHelper::isMultipleCurrencies()){ foreach($active_currencies_array as $currency){ echo number_format($this->data['today'][$currency]['total_amount'], $decimals, $dec_point, $thousands_sep); echo " "; echo "<strong style='font-size:10px;'>"; echo $currency; echo "</strong>"; echo "<BR />"; } }else{ //echo DonationHelperHtml::formatAmount($config, $this->data['today']['total_amount']); echo number_format($this->data['today']['total_amount'], $decimals, $dec_point, $thousands_sep); echo " "; echo "<strong style='font-size:10px;'>"; echo $config->currency; echo "</strong>"; } ?> </td> </tr> <tr> <td> <?php echo Text::_('JD_YESTERDAY'); ?> </td> <td class="center"> <?php if(DonationHelper::isMultipleCurrencies()){ foreach($active_currencies_array as $currency){ if($this->data['yesterday'][$currency]['total_donations'] > 0){ echo "<strong>"; echo $this->data['yesterday'][$currency]['total_donations']; echo "</strong>"; }else{ echo "0"; } echo "<BR />"; } }else{ if($this->data['yesterday']['total_donations'] > 0){ echo "<strong>"; echo $this->data['yesterday']['total_donations']; echo "</strong>"; }else{ echo "0"; } } ?> </td> <td style="text-align:right;padding-right:40px;"> <?php //echo DonationHelperHtml::formatAmount($config, $this->data['yesterday']['total_amount']) if(DonationHelper::isMultipleCurrencies()){ foreach($active_currencies_array as $currency){ echo number_format($this->data['yesterday'][$currency]['total_amount'], $decimals, $dec_point, $thousands_sep); echo " "; echo "<strong style='font-size:10px;'>"; echo $currency; echo "</strong>"; echo "<BR />"; } }else{ //echo DonationHelperHtml::formatAmount($config, $this->data['today']['total_amount']); echo number_format($this->data['yesterday']['total_amount'], $decimals, $dec_point, $thousands_sep); echo " "; echo "<strong style='font-size:10px;'>"; echo $config->currency; echo "</strong>"; } ?> </td> </tr> <tr> <td> <?php echo Text::_('JD_THIS_WEEK'); ?> </td> <td class="center"> <?php //echo $this->data['this_week']['total_donations']; if(DonationHelper::isMultipleCurrencies()){ foreach($active_currencies_array as $currency){ if($this->data['this_week'][$currency]['total_donations'] > 0){ echo "<strong>"; echo $this->data['this_week'][$currency]['total_donations']; echo "</strong>"; }else{ echo "0"; } echo "<BR />"; } }else{ if($this->data['this_week']['total_donations'] > 0){ echo "<strong>"; echo $this->data['this_week']['total_donations']; echo "</strong>"; }else{ echo "0"; } } ?> </td> <td style="text-align:right;padding-right:40px;"> <?php //echo DonationHelperHtml::formatAmount($config, $this->data['this_week']['total_amount']) if(DonationHelper::isMultipleCurrencies()){ foreach($active_currencies_array as $currency){ echo number_format($this->data['this_week'][$currency]['total_amount'], $decimals, $dec_point, $thousands_sep); echo " "; echo "<strong style='font-size:10px;'>"; echo $currency; echo "</strong>"; echo "<BR />"; } }else{ //echo DonationHelperHtml::formatAmount($config, $this->data['today']['total_amount']); echo number_format($this->data['this_week']['total_amount'], $decimals, $dec_point, $thousands_sep); echo " "; echo "<strong style='font-size:10px;'>"; echo $config->currency; echo "</strong>"; } ?> </td> </tr> </tbody> </table>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка