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/artav.sk/poradna/modules/extendedDatatable/code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/artav.sk/poradna/modules/extendedDatatable/code/SwitchYesNoColumnController.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 SwitchYesNoColumnController extends YesNoColumnController {   

    public function getTableValue($val, $export = false) {
        if ($val === NULL) {
            return "";
        }
        if (intval($val) !== 0 && intval($val) !== 1) {
            return "";
        }
        return "<span data-current_value='" . intval($val) . "' style='display: table; margin-left:auto !important; margin-right: auto !important;' class='switchYesNo" . (ucfirst(str_replace(".", "_", $this->column))) . " btn btn-xs btn-" . (intval($val) === 0 ? "danger" : "success") . "'><i class='fa fa-" . (intval($val) === 0 ? "times" : "check") . "'></i></span>";
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit