Файл: public_html/fk/index.php
Строк: 89
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$set['title']='Фотоконкурсы';
include_once '../sys/inc/thead.php';
$set['title']='Фотоконкурсы';
title();
aut();
if($user['level'] > 4)
echo '<div class="main_menu"><img src="img/who.png"> <a href="create_fk.php">Создать фотоконкурс</a></div>';
echo '<div class="main">Активные фотоконкурсы:</div>';
?>
<style>
.vpravo{float:right;}
.end{display:inline-block;overflow:hidden}
.phcmp_i{margin-right:.3em;padding:.2em .3em;text-align:center;color:#fff;background-color:#61bf01;font-size:small}
.phcmp_i{display:inline-block;padding-right:1.5em;position:relative;overflow:hidden;margin-right:0}.n
.phcmp_i:after{content:'';display:block;height:100%;width:1.5em;position:absolute;top:0;right:-.8em;background:#fff;
-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.
</style>
<?
$k_post = mysql_result(mysql_query("SELECT COUNT(active) FROM `fk` WHERE `active` != '0' "), 0);
if ($k_post==0)
{
echo '<div class="err">Нет активных фотоконкурсов!</div>';
}
$q=mysql_query("SELECT id,name,images FROM `fk` WHERE `active` != '0' limit 3 ");
while ($res = mysql_fetch_assoc($q)) {
if($res['images'] == null) { $images = '<img src="img/not.png" alt="*" class="image" align="left" height="50" width="50" style="margin: -4px 8px 1px 0px;"/>'; }
else { $images = '<img src="images/'.$res['images'].'" alt="*" class="image" align="left" height="50" width="50" style="margin: -4px 8px 1px 0px;"/>'; }
echo'<div class="mess"><a href="konkurs.php?id='.$res['id'].'">
'.$images.'
<body class="noscroll n fixe"> <span class="phcmp_i">Конкурс</span>
<br/>'.$res['name'].'<br/></a></div>';
}
$cmp = mysql_result(mysql_query("SELECT COUNT(active) FROM `fk` WHERE `active` = '0' "), 0);
$act = mysql_result(mysql_query("SELECT COUNT(active) FROM `fk` WHERE `active` = '1' "), 0);
echo '<div class="main_menu"><img src="img/info.png"> <a href="active.php">Активные фотоконкурсы</a> ('.$act.')</div>';
echo '<div class="main_menu"><img src="img/end.png"> <a href="completed.php">Завершенные фотоконкурсы</a> ('.$cmp.')</div>';
err();
include_once '../sys/inc/tfoot.php';
?>