| 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 : |
<?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 TextColumnController
*
* @author maros
*/
class PictureColumnController extends ColumnController {
private $t;
public function __construct(string $column, &$config) {
parent::__construct($column, $config);
$this->t = \app\classes\Translator::getInstance();
}
public function getTableValue($val) {
$val = urldecode($val);
$thumbPath = \app\classes\SimpleImage::getThumbPath($val, 0, 25, false, "uploads/private/uploads/", "uploads/private/thumbs/", 80);
return "<a style='"
. "position: relative; "
. "margin-left: auto; "
. "margin-right: auto; "
. "display: table;' "
. "class='fancybox' href='" . (strlen(trim($val)) === 0 ? $thumbPath : $val) . "'>"
. "<img style='max-height: 25px; margin-right: 10px;' src='" . $thumbPath . "' />"
. "<i class='fa fa-search-plus'></i> "
. $this->t->_get("ZobraziƄ")
. "</a>";
}
}