<?php
$l1 = DB::GET_COLUMN("SELECT COUNT(`ID`) FROM `FILES` WHERE `ID` > '".$files['ID']."' AND `USER_ID` = '".$account['ID']."' AND `ID_DIR` = '".$id_dir."'") + 1;
$l2 = DB::GET_COLUMN("SELECT COUNT(`ID`) FROM `FILES` WHERE `USER_ID` = '".$account['ID']."' AND `ID_DIR` = '".$id_dir."'");
$back = DB::GET_STRING("SELECT `ID` FROM `FILES` WHERE `USER_ID` = '".$account['ID']."' AND `ID` > '".$files['ID']."' AND `ID_DIR` = '".$id_dir."' ORDER BY `ID` ASC LIMIT 1");
$forward = DB::GET_STRING("SELECT `ID` FROM `FILES` WHERE `USER_ID` = '".$account['ID']."' AND `ID` < '".$files['ID']."' AND `ID_DIR` = '".$id_dir."' ORDER BY `ID` DESC LIMIT 1");
ECHO "<center>";
IF (ISSET($back['ID'])){
ECHO "<a href='/modules/?path=files§ion=show&id=".$back['ID']."'><div class='tr hover'>";
ECHO ICONS('chevron-left');
ECHO "</div></a>";
}ELSE{
ECHO "<div class='tr' style='color: #DCE2E6;'>";
ECHO ICONS('chevron-left');
ECHO "</div>";
}
ECHO "<div class='tr-center'>";
ECHO $l1." ".LG('из')." ".$l2;
ECHO "</div>";
IF (ISSET($forward['ID'])){
ECHO "<a href='/modules/?path=files§ion=show&id=".$forward['ID']."'><div class='tr hover'>";
ECHO ICONS('chevron-right');
ECHO "</div></a>";
}ELSE{
ECHO "<div class='tr' style='color: #DCE2E6;'>";
ECHO ICONS('chevron-right');
ECHO "</div>";
}
ECHO "</center>";
?>