Размер файла: 3.13Kb
<?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="" /><b><?php echo $file['name'] ?></b></div>
<div class="menu">
<span style="font-size: 11px;">
<?php echo $file['screens'] ?>
<?php if(!empty($file['about'])): ?>
<i>Описание:</i><br />
<?php echo $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 />
<i>Выложил</i>: <a href="<?php echo a_url('user/profile/view', 'user_id='. $file['user_id'])?>"><?php echo $file['username'] ?></a><br />
<i>Рейтинг</i>:<br />
<?php echo $file['rating_stars'] ?><br />
<i>Голосов</i>: <?php echo $file['rating_voices'] ?><br />
<?php if(!$file['rated']): ?>
<form action="<?php echo a_url('downloads/rating_change') ?>" method="get">
<select size="1" name="est">
<option value="5">5</option>
<option value="4">4</option>
<option value="3">3</option>
<option value="2">2</option>
<option value="1">1</option>
</select>
<input name="file_id" type="hidden" value="<?php echo $file['file_id'] ?>" />
<input type="submit" value="Ok" />
</form>
<?php endif; ?>
</span>
<br />
<img src="<?php echo URL ?>modules/comments/images/comment.png" alt="" border="0" /> <a href="<?php echo a_url('comments', 'module=downloads&item_id='. $file['file_id'] .'&return='. urlencode(URL .'downloads/view/'. $file['file_id'])) ?>">Обсудить</a> <span class="small_text">[<?php echo $file['comments'] ?>]</span><br />
<br />
<img src="<?php echo URL ?>modules/downloads/views/default/img/download.png" alt="" /> <a href="<?php echo URL ?>download_file/<?php echo $file['file_id'] ?>"><?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/default/img/download.png" 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 if(array_pop(explode('.', $file['add_file_real_name_'. $i])) == 'jar'): ?>[<a href="<?php echo URL .'downloads/get_jad/'. $i .'/'. $file['file_id'] .'.jad' ?>">jad</a>]<?php endif; ?> (<?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">
<?php if(!empty($navigation)) echo $navigation .'<br />'; ?>
<a href="<?php echo a_url('downloads') ?>">Загрузки</a><br />
<a href="<?php echo URL ?>">На главную</a>
</div>
<?php $this->display('footer') ?>