Beispiel #1
0
        $last_emp_new_messages_pid = $_SESSION['lst_emp_new_messages']['pid'];
    }
} else {
    $last_emp_new_messages_pid = false;
}
$_SESSION['lst_emp_new_messages']['cnt'] = $cnt_emp_new_messages;*/
//$asw_w = 205; // ширина переключателя аккаунтов (см. использование здесь и в acc_switch.php).
$anti_login = $_SESSION['anti_uid'] ? $_SESSION['anti_login'] : '******';
$projects_active = $grey_main && $kind != 8 && $kind != 2 && $kind != 4;
$konkurs_active = $grey_main && $kind == 2;
$vacancy_active = $grey_main && $kind == 4;
$grey_catalog = isset($grey_catalog) && @$grey_catalog == 1;
//Уведомления ЛС
$tip_msg = notifications::getMessTip();
//Уведомления по БС
$tip_sbr = notifications::getAllSbrTip();
$link_sbr = '/' . sbr::NEW_TEMPLATE_SBR . '/';
//Уведомления гуповое по проектам и заказам
//$tip_group = notifications::getEmpGroupTip();
//Уведомления и ссылки для Проектов
$tip_prj = notifications::getProjectsTipEmp();
//Уведомления и ссылки для Заказов ТУ
if (@$_SESSION['tu_orders']) {
    $tip_tu = notifications::getTServicesOrdersTip();
}
$account_sum_is_plus = $_SESSION['ac_sum'] >= 0;
$account_sum_format = view_account_format();
?>
<script type="text/javascript">
var notification_delay = '<?php 
echo NOTIFICATION_DELAY;
Beispiel #2
0
 // новые сообщения
 if (in_array('msg', $op)) {
     $out['msg'] = array();
     $tip = notifications::getMessTip(true);
     if ($tip === null) {
         $out['msg']['success'] = false;
     } else {
         $out['msg']['success'] = true;
         $out['msg']['count'] = $tip['count'];
         $out['msg']['count_html'] = view_event_count_format($tip['count']);
         $out['msg']['tip'] = iconv('CP1251', 'UTF-8', $tip['tip']);
     }
 }
 // события в сбр
 if (in_array('sbr', $op)) {
     $tip = notifications::getAllSbrTip();
     if ($tip === null) {
         $out['sbr']['success'] = false;
     } else {
         $out['sbr']['success'] = true;
         $out['sbr']['count'] = $tip['count'];
         $out['sbr']['count_html'] = view_event_count_format($tip['count']);
         $out['sbr']['alert'] = $tip['alert'];
         $out['sbr']['tip'] = iconv('CP1251', 'UTF-8', $tip['tip']);
     }
 }
 // новые события через класс bar_notify
 $barNotify = new bar_notify(get_uid(0));
 $barNotifies = $barNotify->getNotifies();
 if (in_array('bill', $op)) {
     $out['bill']['success'] = true;