• Модуль: fileman
  • Путь к файлу: ~/bitrix/modules/fileman/classes/general/file_input.php
  • Класс: CFileInput
  • Вызов: CFileInput::DisplayFile
static function DisplayFile($arFile = array(), $ind = 0)
{
	$hintId = self::$jsId.'_file_disp_'.$ind;
	$bNotFound = $arFile['FILE_NOT_FOUND'];

	// Hint
	$hint = '';

	if (!$bNotFound)
	{
		$sImagePath = isset($arFile["PATH"]) ? $arFile["PATH"] : $arFile["SRC"];
		$descName = isset($arFile['DESC_NAME']) ? $arFile['DESC_NAME'] : self::$descInputName;

		if ($arFile['FORMATED_SIZE'] != '')
			$hint .= ''.GetMessage('ADM_FILE_INFO_SIZE').':  '.$arFile['FORMATED_SIZE'].'';

		if ($arFile['IS_IMAGE'])
			$hint .= ''.GetMessage('ADM_FILE_INFO_DIM').':  '.$arFile['WIDTH'].'x'.$arFile['HEIGHT'].'';
		if ($sImagePath != '')
			$hint .= ''.GetMessage('ADM_FILE_INFO_LINK').':  '.htmlspecialcharsbx($sImagePath).'';

		if (!self::$bShowDescInput && $arFile['DESCRIPTION'] != "")
			$hint .= ''.GetMessage('ADM_FILE_DESCRIPTION').':  '.htmlspecialcharsbx($arFile['DESCRIPTION']).'';
	}
	?>
	
self::$maxPreviewWidth, 'height' => self::$maxPreviewHeight), BX_RESIZE_IMAGE_PROPORTIONAL, true); ?>
> " >