View file xmyx.ru/adm/oficial.group.php

File size: 2.42Kb
<? 

/*
* Tw1nGo
*/

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'; 

if ($user['level'] < 1){
	header("Location: /".SID);
	exit;
}

$set['title'] = 'Верифицированные группы'; 

include_once '../sys/inc/thead.php'; 

// Конфигурационный файл
require H.'club/config.php';

shapka_VK(true, '/adm/', 'Верифиц. группы'); 

uvedom();


$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `groups` WHERE `ofical` > '0'"), 0);
$set['p_str'] = '15';    
$k_page = k_page($k_post,$set['p_str']);
$page = page($k_page);
$start = $set['p_str']*$page-$set['p_str'];

?>
<div class="pcont">
<div class="upanel">
<h4 class="slim_header">Верифицированные группы:</h4>
<div class="results blt_cont bl_cont mark_top_verified">
<?

if($k_post){

$q = mysql_query("SELECT * FROM `groups` WHERE `ofical` > '0' ORDER BY `time` DESC LIMIT $start, $set[p_str]");

while ($post = mysql_fetch_assoc($q))
{
        $us_c = mysql_result(mysql_query("SELECT COUNT(*) FROM `groups_users` WHERE `id_group` = '".$post['id']."' AND `st` = '0'"), 0);
        $cases = array('участник', 'участника', 'участников');

?>
<a href="/group<?= $post['id']?>" class="simple_fit_item search_item al_g<?= $post['id']?>">
<img src="<?= Tw1nGo::Ava($post['id'])?>" class="si_img _g<?= $post['id']?>">
<div class="si_body">
<span class="si_owner _g<?= $post['id']?>"><?= text($post['title'])?></span>
<?
if ($post['ofical'] == 1){
?>
<b class="verified"></b>
<?
}
if ($post['typic'] == 0){
?>
<div class="si_slabel">Открытая группа</div>
<?
}else if ($post['typic'] == 1){
?>
<div class="si_slabel">Закрытая группа</div>
<?
}else if ($post['typic'] == 2){
?>
<div class="si_slabel">Частная группа</div>
<?
}
?>
<div class="si_slabel"><?= des2num($us_c, $cases)?></div>
</div>
</a>
<?

}


}
else{
?>
<div class="service_msg_box">
  <div class="service_msg service_msg_null">Еще нет верифицированных групп!</div>
</div>
<?
}

?>
</div>
</div>
<?

if ($k_page > 1)str_vk('?', $k_page, $page);

?>
</div>
<?

include_once '../sys/inc/tfoot.php'; 

?>