Размер файла: 3.76Kb
<?php $this->display('header', array('title' => $file['name'])) ?>
<div class="title"><img src="<?php echo URL ?>views/<?php echo THEME ?>/img/titl.gif" class="ico" alt="" /><?php echo $file['name'] ?></div>
<div class="block">
<a href="<?php echo a_url('downloads') ?>">Загрузки</a> <?php if(!empty($namepath)): ?>» <?php echo $namepath; endif; if($directory['directory_id'] > 0): ?> » <a href="<?php echo a_url('downloads', 'directory_id='. $directory['directory_id']) ?>"><?php echo $directory['name'] ?></a><?php endif; ?><br />
</div>
<div class="menu">
<span style="font-size: 11px;">
<?php if(!empty($file['screen1']) && empty($_GET['s'])): ?>
<img src="<?php echo URL ?><?php echo $file['path_to_file'] .'/'. $file['screen1'] ?>" alt="" /><br />
<?php elseif(!empty($file['screen2']) && @$_GET['s'] == 2): ?>
<img src="<?php echo URL ?><?php echo $file['path_to_file'] .'/'. $file['screen2'] ?>" alt="" /><br />
<?php elseif(!empty($file['screen3']) && @$_GET['s'] == 3): ?>
<img src="<?php echo URL ?><?php echo $file['path_to_file'] .'/'. $file['screen3'] ?>" alt="" /><br />
<?php endif; ?>
<?php
if(!empty($file['screen2'])) {
echo (empty($_GET['s']) ? '<b>1</b>' : '<a href="'. a_url('downloads/view_file', 'file_id='. $file['file_id']) .'">1</a>');
echo ', '. ((@$_GET['s'] == 2) ? '<b>2</b>' : '<a href="'. a_url('downloads/view_file', 'file_id='. $file['file_id'] .'&s=2') .'">2</a>');
if(!empty($file['screen3'])) echo ', '. ((@$_GET['s'] == 3) ? '<b>3</b>' : '<a href="'. a_url('downloads/view_file', 'file_id='. $file['file_id'] .'&s=3') .'">3</a>');
echo '<br /><br />';
}
?>
<?php if(!empty($file['about'])): ?>
<i>Описание:</i><br />
<?php echo nl2br(main::bbcode($file['about'])) ?><br />
<br />
<?php endif; ?>
<?php if(!empty($file['file_info'])): ?>
<i>Дополнительная информация:</i><br />
<?php echo nl2br($file['file_info']) ?><br />
<?php endif; ?>
<i>Загружен</i>: <?php echo date('d.m.Y в H:i', $file['time']) ?><br />
<i>Скачиваний</i>: <?php echo $file['downloads'] ?><br />
</span>
<a href="<?php echo a_url('comments', 'module=downloads&item_id='. $file['file_id'] .'&return='. urlencode(URL .'downloads/view/'. $file['file_id'])) ?>">Обсудить</a> (<?php echo $file['comments'] ?>)<br />
<br />
<img src="<?php echo URL ?>modules/downloads/views/<?php echo THEME ?>/img/download.gif" alt="" /> <a href="<?php echo URL ?>download_file/<?php echo $file['file_id'] .'_'. @$GLOBALS['CONFIG']['downloads']['files_prefix'] . $file['real_name'] ?>"><?php echo $file['real_name'] ?></a> <?php if($file['file_ext'] == 'jar'): ?>(<a href="<?php echo URL .'downloads/get_jad/'. $file['file_id'] .'.jad' ?>">jad</a>)<?php endif; ?> (<?php echo main::byte_format($file['filesize']) ?>)<br />
<?php for($i = 0; $i <= 10; $i++): ?>
<?php if(!empty($file['add_file_real_name_'. $i])): ?>
<img src="<?php echo URL ?>modules/downloads/views/<?php echo THEME ?>/img/download.gif" alt="" /> <a href="<?php echo URL ?><?php echo $file['path_to_file'] .'/'. $file['add_file_real_name_'. $i] ?>"><?php echo $file['add_file_real_name_'. $i] ?></a> (<?php echo main::byte_format(filesize(ROOT . $file['path_to_file'] .'/'. $file['add_file_real_name_'. $i])) ?>)<br />
<?php endif; ?>
<?php endfor; ?>
</div>
<div class="block">
<a href="<?php echo a_url('downloads') ?>">Загрузки</a> <?php if(!empty($namepath)): ?>» <?php echo $namepath; endif; if($directory['directory_id'] > 0): ?> » <a href="<?php echo a_url('downloads', 'directory_id='. $directory['directory_id']) ?>"><?php echo $directory['name'] ?></a><?php endif; ?><br />
</div>
<div class="block">
<a href="<?php echo URL ?>">На главную</a>
</div>
<?php $this->display('footer') ?>