Файл: 2/3020.ru/modules/files/plugins/dir_list.php
Строк: 25
<?php
IF (STR($list['PASSWORD']) > 0 && $list['PRIVATE'] == 4){
$icons = " ".ICONS('key', 15, 'fa-fw');
}ELSEIF ($list['PRIVATE'] == 1){
$icons = " ".ICONS('users', 15, 'fa-fw');
}ELSEIF ($list['PRIVATE'] == 2){
$icons = " ".ICONS('lock', 15, 'fa-fw');
}ELSEIF ($list['PRIVATE'] == 3){
$icons = " ".ICONS('lock', 15, 'fa-fw');
}ELSE{
$icons = NULL;
}
$count = DB::GET_COLUMN("SELECT COUNT(`ID`) FROM `FILES` WHERE `ID_DIR` = '".$list['ID']."' AND `USER_ID` = '".$account['ID']."' LIMIT 1");
ECHO "<a href='/modules/?path=files§ion=users&id=".$account['ID']."&dir=".$list['ID']."'>";
ECHO "<table style='width: 100%;'><tr>";
ECHO "<td class='td-file'>";
ECHO "<span style='color: black; position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%);'>".$icons."</span>";
ECHO "<font color='#DFCD5E'>".ICONS('folder', 50, 'fa-fw')."</font>";
ECHO "</td>";
ECHO "<td class='td-file2'>";
ECHO "<font color='#535D61'>".CROP_TEXT(TEXT_ABSOLUTE($list['NAME']), 0, 38)."";
ECHO "<span style='position: relative; top: 4px;'>";
ECHO "<br /><small><b>".LG('Файлов').": ".$count."</b></small>";
ECHO "</span></font></td>";
ECHO "</tr></table>";
ECHO "</a>";
?>