Файл: housetrack/modules/downloads/views/default/view_file.tpl
Строк: 90
<?php $this->display('header', array('title' => $file['name']))
?>
<?php if ($error) echo '<div class="error">'.
$error .'</div>' ?>
<?php $this->display('title.tpl',
array('text' => 'Трек')) ?>
<div
class="menu_file">
<?php if(!empty($file['about'])):
?>
<i>Описание:</i><br />
<?php echo
$file['about'] ?><br />
<br />
<?php endif;
?>
<b>Название</b>: <span style="color:
red;"><u><?php echo $file['name']
?></u></span><br />
<?php
if(!empty($file['file_info'])): ?>
<?php endif;
?>
<b>Дата публикации:</b> <?php echo
itime($file['time']) ?><br />
<b>Размер:</b>
<?php echo main::byte_format($file['filesize']) ?><br
/>
<b>Формат:</b> mp3<br
/>
<b>Битрейд:</b> 320 Kb/s<br
/>
<b>Частота:</b> 44000 Hz<br
/>
<b>Загрузок:</b> <?php echo
$file['downloads'] ?><br
/>
<b>Рейтинг:</b>
<?php echo
intval($file['rating']); ?> из 5<br />
<b>Всего
голосов:</b> <?php echo $file['rating_voices'] ?><br
/>
<?php if(!$file['rated']):
?>
<b>Голосовать:</b><br/>
1<a
href="<?php echo a_url('downloads/rating_change', '&file_id='.
$file['file_id'].'&est=1') ?>"><img src="<?php
echo URL ?>views/default/images/star.png" alt="1"
/></a>
2<a href="<?php echo
a_url('downloads/rating_change', '&file_id='.
$file['file_id'].'&est=2') ?>"><img src="<?php
echo URL ?>views/default/images/star.png" alt="2"
/></a>
3<a href="<?php echo
a_url('downloads/rating_change', '&file_id='.
$file['file_id'].'&est=3') ?>"><img src="<?php
echo URL ?>views/default/images/star.png" alt="3"
/></a>
4<a href="<?php echo
a_url('downloads/rating_change', '&file_id='.
$file['file_id'].'&est=4') ?>"><img src="<?php
echo URL ?>views/default/images/star.png" alt="4"
/></a>
5<a href="<?php echo
a_url('downloads/rating_change', '&file_id='.
$file['file_id'].'&est=5') ?>"><img src="<?php
echo URL ?>views/default/images/star.png" alt="5"
/></a><br />
<?php endif; ?>
<?php if
($file['file_ext'] == 'mp3'): ?>
<?php if (empty($file['about']))
echo '<br />'; ?>
<object
type="application/x-shockwave-flash" data="<?php echo URL
?>modules/downloads/mp3.swf" width="200"
height="20">
<param name="wmode"
value="transparent" />
<param name="movie"
value="<?php echo URL ?>modules/downloads/mp3.swf"
/>
<param name="FlashVars" value="mp3=<?php echo
URL . $file['path_to_file'] .'/'. $file['real_name']
?>&bgcolor1=a3b357&bgcolor2=a3b357&buttoncolor=ffffff&buttonovercolor=0&slidercolor1=ffffff&slidercolor2=ffffff&sliderovercolor=666666&textcolor=0&showvolume=1&showstop=1"
/>
</object><br /><br />
<?php endif;
?>
<?php if (ACCESS_LEVEL >= 5): ?>
Поделись
впечатлениями о треке!<br/>
<img
src="<?php echo URL ?>views/default/images/icon.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 />
<?php endif; ?>
<?php if
(ACCESS_LEVEL < 5): ?>
Комментировать могут
только зарегистрированные
пользователи<br />
<?php endif; ?>
<img
src="<?php echo URL ?>views/default/images/icon.png"
alt="" /> <a href="<?php echo URL
?>download_file/<?php echo $file['file_id']
?>">Скачать трек</a>
<?php for($i = 0; $i
<= 10; $i++): ?>
<?php if(!empty($file['add_file_real_name_'.
$i])): ?>
<img src="<?php echo URL
?>views/default/images/icon.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])) ?>)
<?php endif;
?>
<?php endfor; ?>
<br/><br/>Поделись
в:
<script type="text/javascript"
src="//housetrack.ru/modules/downloads/share.js"
charset="utf-8"></script>
<div
class="yashare-auto-init" data-yashareL10n="ru"
data-yashareType="none"
data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir"></div>
</div>
<div
class="block">
<?echo'<img
src="'.URL.'/views/'.THEME.'/images/icon.png" alt=""
/>'?> <?php if(!empty($navigation)) echo $navigation .'<br
/>'; ?>
<?echo'<img
src="'.URL.'/views/'.THEME.'/images/icon.png" alt=""
/>'?> <a href="<?php echo URL ?>"> На
главную</a>
</div>
<?php
$this->display('footer') ?>