View file shcms/notice.php

File size: 1.57Kb
<?
/*
=============================================
Движок: SHCMS Engine
=============================================
Название файла: Система Уведомлений
=============================================
Official website: http://shcms.ru
=============================================
 Данный код защищен авторскими правами
=============================================
*/
define('SHCMS', true);
include_once'../system/inc/system_core.php';
	    $shcmsengine['title'] = Lang::get('Система уведомлений');
        include_once'../template/head.php';
$frend = mysql_fetch_array(mysql_query("SELECT * FROM `frend` WHERE `user_id` = '$user_id' and `read` = '0'"));
$frend_count = mysql_result(mysql_query("SELECT COUNT(*) FROM `frend` WHERE `user_id` = '$user_id' and `read` = '0'"),0);
    switch($act):
	    default:
		    echo '<div class="maintitle mainrazd">'.Lang::get('Система уведомлений').'</div>';
	        echo '<div class="maintext">';
	            if($frend['read'] == 1) {
	                echo '<div class="posts"><img src="../template/icon/friends.png">&nbsp;<a href="frends.php">'.Lang::get('Друзья').'</a></div>';	
	            }else {
	                echo '<div class="posts"><img src="../template/icon/friends.png">&nbsp;<a href="frends.php?act=new"><b>'.Lang::get('Друзья').' <span class="mainforum"> +'.$frend_count.'</span></b></a></div>';
	            }
	        echo '</div>';
	    break;
	endswitch;	
	
include_once'../template/foot.php';
?>