EIOS/tpl/tpl_notification.html

37 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2023-12-28 15:39:22 +03:00
<div id="top_menu" class="nav notify-row">
<ul class="nav top-menu" style="padding: 0px!important;">
{if isset($user.id)}
<li class="dropdown" id="header_inbox_bar">
{include file="tpl_notification_item.html"}
</li>
{*<li class="dropdown">
<a href="/chat/" target="_blank" >
<i class="icon-comment-alt" style="font-size: 26px;"></i>
<span class="badge badge-important">тест</span>
</a>
</li>*}
<li class="dropdown">
{include file="notes/tpl_notes_btn.html"}
</li>
<!--li>{$iamonline}<{(time()-(60*20))}</li-->
{if $iamonline<(time()-(60*20))}
<!--li id="header_online_bar"><a class="btn btn-warning tooltips" href="#" id="onlinebutton" style="margin: 9px 0px;padding: 2px 10px;" data-trigger="hover" data-original-title="Нажимайте один раз кнопку во время занятий" data-placement="bottom">Я в сети</a></li-->
{/if}
{/if}
</ul>
</div>
{literal}
<script type="text/javascript">
$(document).ready(function(){
$("#onlinebutton").click(function(){
$("#header_online_bar").remove();
$.ajax({
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=active_online',
success: function(data){
}
});
});
});
</script>
{/literal}