403Webshell
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/muj/modules/ttjs/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/ttjs.cz/muj/modules/ttjs/code/UsersExtendedDatatable.php
<?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.
 */

namespace modules\ttjs\code;

use modules\ttjs\code\TtjsConfig as Config;

/**
 * Description of UsersExtendedDatatable 
 *
 * @author maros
 */
class UsersExtendedDatatable extends \modules\extendedDatatable\code\ExtendedDatatable {

    private $loggedUser;
    private $currency;

    public function __construct() {
        parent::__construct("/modules/ttjs/", "users_datatable");
        $this->loggedUser = \app\classes\BasicUser::getLoggedUser();
        $cnf = new Config();
        $this->currency = $cnf->getConfig(Config::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='deleteItem(" . $array["id"] . ")'><i class='fa fa-trash'></i></span>",
            $array["state"] === \app\constants\State::ACTIVE ? "<span data-toggle='tooltip' title='" . $this->t->_get("Prihlásiť sa do tohto účtu") . "' style='margin-left: 5px;' class='btn readOnlyHidden btn-warning btn-xs' onclick='changeIdentity(" . $array["id"] . ", \"" . $array["last_name"] . " " . $array["first_name"] . "\", \"/partner-dashboard/\")'><i class='fa fa-user-secret'></i></span>" : "<span data-toggle='tooltip' title='" . $this->t->_get("Prihlásiť sa do tohto účtu") . "' style='margin-left: 5px;' class='btn readOnlyHidden btn-warning disabled btn-xs'><i class='fa fa-user-secret'></i></span>",
            "<span data-toggle='tooltip' title='" . $this->t->_get("Zobraziť") . "' style='margin-left: 5px' class='btn btn-primary btn-xs' onclick='manageItem(" . $array["id"] . ")'><i class='fa fa-eye'></i></span>",
            "<a href='/api/admin/ttjs/usersManagement/printLabel/?id=" . $array["id"] . "' target='_blank' data-toggle='tooltip' title='" . $this->t->_get("Vytlačiť štítok") . "' style='margin-left: 5px' class='btn btn-info btn-xs'><i class='fa fa-print'></i></a>",
            "<span data-toggle='tooltip' title='" . $this->t->_get("Zákaznícky program") . "' style='margin-left: 5px' class='btn btn-default btn-xs' onclick='openModalIframe(\"#iframeModal\", \"" . $this->t->_get("Zákaznícky program") . " - " . $array["last_name"] . " " . $array["first_name"] . " [" . $array["personalno"] . "]" . "\", \"/iframe-zakaznicky-program/?userId=" . $array["id"] . "\")'><i class='fa fa-star'></i></span>",
            "<span data-toggle='tooltip' title='" . $this->t->_get("PDSO") . "' style='margin-left: 5px' class='btn btn-default btn-xs' onclick='openModalIframe(\"#iframeModal\", \"" . $this->t->_get("PDSO") . " - " . $array["last_name"] . " " . $array["first_name"] . " [" . $array["personalno"] . "]" . "\", \"/iframe-pdso/?users_id=" . $array["id"] . "\")'><i class='fa fa-handshake'></i></span>",
            "<span data-toggle='tooltip' title='" . $this->t->_get("PDSO Nabídka") . "' style='margin-left: 5px' class='btn btn-default btn-xs' onclick='openModalIframe(\"#iframeModal\", \"" . $this->t->_get("PDSO Nabídka") . " - " . $array["last_name"] . " " . $array["first_name"] . " [" . $array["personalno"] . "]" . "\", \"/iframe-pdso-nabidka/?users_id=" . $array["id"] . "\")'><i class='fa fa-tags'></i></span>",
        );

//        if($array["state"] === \app\constants\State::CREATED){
//            $actions[] = "<span style='margin-left: 5px;' data-toggle='tooltip' title='" . $this->t->_get("Odoslať registračný e-amil") . "' class='btn readOnlyHidden btn-warning btn-xs' onclick='resendRegistrationEmail(" . $array["id"] . ")'><i class='fa fa-envelope'></i></span>";
//        }

        $unpaidCommission = number_format(floatval($array["unpaid_commission"]), 2, ",", " ") . " " . $this->currency;
        if ($array["unpaid_commission"] > 0) {
            if (strlen(trim($array["iban"])) > 0) {
                $unpaidCommission = "<span style='color: red'>" . $unpaidCommission . "</span><span class='btn btn-primary btn-xs pull-right readOnlyHidden' onclick='paymentModal(" . $array["id"] . ")'><i class='fa fa-credit-card'></i> " . $this->t->_get("Vyplatiť") . "</span>";
            } else {
                $unpaidCommission = "<span style='color: red'>" . $unpaidCommission . "</span><span class='btn btn-primary btn-xs pull-right readOnlyHidden disabled'><i class='fa fa-credit-card'></i> " . $this->t->_get("Vyplatiť") . "</span>";
            }
        }

        $array["unpaid_commission"] = $unpaidCommission;

        $this->data[$key] = array(implode("", $actions)) + $array;
    }

    public function getFixedSqlCondition() {
        return "users.type='" . \app\constants\UserType::ENGINEER . "'";
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit