| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/ttjs.cz/dev/modules/ttjs/code/ |
Upload File : |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of PaymentsExtendedDatatable
*
* @author Maroš
*/
namespace modules\ttjs\code;
use modules\ttjs\code\TtjsConfig as Config;
class PaymentsExtendedDatatable extends \modules\extendedDatatable\code\ExtendedDatatable {
private $currency;
private $currencyHelper;
public function __construct() {
parent::__construct("/modules/ttjs/", "payments_datatable");
$cnf = new Config();
$this->currency = $cnf->getConfig(Config::CURRENCY);
$this->currencyHelper = new Currency();
}
public function processRow($array, $key, $params = array()) {
$actions = array(
"<span data-toggle='tooltip' title='" . $this->t->_get("Zmazať") . "' class='btn readOnlyHidden btn-danger btn-xs' onclick='deletePaymentItem(" . $array["id"] . ")'><i class='fa fa-trash'></i></span>",
"<span data-toggle='tooltip' title='" . $this->t->_get("Zobraziť") . "' style='margin-left: 5px' class='btn btn-primary btn-xs' onclick='managePaymentItem(" . $array["id"] . ")'><i class='fa fa-eye'></i></span>",
);
$array["amount"] = $this->currencyHelper->getRoundedVal($array["amount"], $this->currency, true);
$this->data[$key] = array(implode("", $actions)) + $array;
}
public function getFixedSqlCondition() {
return "paid_commissions.users_id=:paid_commissions_users_id";
}
public function getFixedBindArray() {
return array(
"paid_commissions_users_id" => $this->getPost("paid_commissions.users_id")
);
}
}