Файл: user/cover/inc/profileCoverPc.php
Строк: 27
<link rel="stylesheet" type="text/css" href="/ajax/profileCover/stylePc.css">
<script src="/ajax/profileCover/index.js"></script>
<div class='nav2'>
<div class="profileCoverWrapper">
<img src="/style/covers/<?=($ank['profileCover'] ? $ank['profileCover'] : 'default')?>.jpg" alt="" class="profileCoverImage">
<div class="profileCoverInfo">
<br />
<?=avatar($ank['id'], true, 128, false)?>
</div>
<?if (isset($user) && $ank['id'] == $user['id']):?><div class="profileCoverChangeWrapper" onclick="toggle('.profileCoverSelect')"></div><div class="profileCoverChange" onclick="toggle('.profileCoverSelect')"></div><?endif?>
</div>
<?if (isset($user) && $ank['id'] == $user['id']):?>
<div class="profileCoverSelect">
<div class="profileCoverSelectCategories">
<?
$qcats = mysql_query("SELECT * FROM `profileCoversCategories` ORDER BY `name` ASC");
while ($cat = mysql_fetch_array($qcats)):
?>
<div class="nav<?=($num % 2 ? 2 : 1)?>">
<?$num++?>
<img src="/style/covers/category.png" /> <a href="#<?=$cat['id']?>" onclick="selectCategory(<?=$cat['id']?>)"><?=htmlspecialchars($cat['name'])?></a> (<?=mysql_result(mysql_query("SELECT COUNT(*) FROM `profileCoversList` WHERE `id_category` = '$cat[id]'"), 0)?>)
<div class="profileCoverSelectCategory" id="category<?=$cat['id']?>">
<?
$qcovers = mysql_query("SELECT * FROM `profileCoversList` WHERE `id_category` = '$cat[id]' ORDER BY `id` DESC");
while ($cover = mysql_fetch_array($qcovers)):
?>
<div class="profileCoverSelectDo">
<img src="/style/covers/<?=$cover['id']?>.jpg" onclick="selectCover(<?=$cover['id']?>)" alt="">
<div class="profileCoverSelectPrice"><?=sklon_text($cover['price'], array('монета', 'монеты', 'монет'))?></div>
</div>
<?endwhile?>
</div>
</div>
<?endwhile?>
</div>
</div>
<?endif?>