Файл: templates/view_tag.html
Строк: 34
<? include ROOT.'/templates/header.html'; ?>
<h1 class="title"><?=$title?></h1>
<?if($count > 0):?>
<?foreach($result as $value):?>
<?
$string = ' ' . htmlspecialchars($value['about']) . ' ';
$string = substr($string, 0, 100);
$string = rtrim($string, "!,.-");
$string = substr($string, 0, strrpos($string, ' '));
?>
<table style="width: 100%" cellspacing="0">
<tr>
<td class='mz' style="width: 10%"><a href="/<?=$value['translit']?>.html" title="<?=$value['name']?>"><img width="150" src="/<?=$value['mini_scr']?>" alt="<?=$value['name']?>" class="img" /></a></td>
<td class='mz' style="width: 90%"><a href="/<?=$value['translit']?>.html" title="<?=$value['name']?>"><b><?=$value['name']?></b></a><br /><br />
<?=$string?>
<?if($value['tag']):?>
<br /><b>Теги</b>:
<?
$tag = explode(', ', $value['tag']);
$ctag = count($tag);
$i = 0;
while($i < $ctag){
echo '<a class="tag" href="/tag/'.$tag[$i].'/">'.$tag[$i].'</a>, ';
$i++;
}
?>
</td>
</tr>
</table>
<?endif;?>
<?endforeach;?>
<div class="page" align="center">
<?=$navigation?>
</div>
<?else:?>
<div class="top" align="center">
Видеозаписи отсутствуют.
</div>
<?endif;?>
<div class="link"><a class="link" style="display:block" href="<?=URL?>"><img src="/style/load.png" alt="*"/> На главную</a></div>
</div>
<? include ROOT.'/templates/footer.html'; ?>