mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 00:28:42 +00:00
fix: page header msg tot
This commit is contained in:
parent
0d31f56e39
commit
691b0a0dcb
@ -1,8 +1,10 @@
|
||||
<div class="navbar navbar-light navbar-expand-md bg-body shadow-sm mb-4" role="navigation">
|
||||
|
||||
<div class="navbar navbar-light navbar-expand-md bg-body shadow-sm
|
||||
<?php if (!isset($disable_navbar_margin_bottom)) : ?>
|
||||
mb-4
|
||||
<?php endif ?>
|
||||
" role="navigation">
|
||||
<div class="container">
|
||||
|
||||
<a class="navbar-brand" href="<?= HTML::blog_url(UOJUserBlog::id(), '/') ?>">
|
||||
<a class="navbar-brand fw-normal" href="<?= HTML::blog_url(UOJUserBlog::id(), '/') ?>">
|
||||
<img src="<?= HTML::avatar_addr(UOJUserBlog::user(), 48) ?>" alt="Logo" width="24" height="24" class="d-inline-block align-text-top uoj-user-avatar" />
|
||||
<?= UOJUserBlog::id() ?>
|
||||
</a>
|
||||
|
@ -1,9 +1,3 @@
|
||||
<?php
|
||||
$new_user_msg_num = DB::selectCount("select count(*) from user_msg where receiver = '" . Auth::id() . "' and read_time is null");
|
||||
$new_system_msg_num = DB::selectCount("select count(*) from user_system_msg where receiver = '" . Auth::id() . "' and read_time is null");
|
||||
$new_msg_tot = $new_user_msg_num + $new_system_msg_num;
|
||||
?>
|
||||
|
||||
<div class="navbar navbar-light navbar-expand-md bg-body shadow-sm
|
||||
<?php if (!isset($disable_navbar_margin_bottom)) : ?>
|
||||
mb-4
|
||||
|
@ -1,4 +1,3 @@
|
||||
<!-- Made with 💖 by Baoshuo ( https://baoshuo.ren ) -->
|
||||
<?php
|
||||
if (!isset($PageMainTitle)) {
|
||||
$PageMainTitle = UOJConfig::$data['profile']['oj-name'];
|
||||
@ -12,7 +11,12 @@ if (!isset($ShowPageHeader)) {
|
||||
if (!isset($PageContainerClass)) {
|
||||
$PageContainerClass = 'container';
|
||||
}
|
||||
|
||||
$new_user_msg_num = DB::selectCount("select count(*) from user_msg where receiver = '" . Auth::id() . "' and read_time is null");
|
||||
$new_system_msg_num = DB::selectCount("select count(*) from user_system_msg where receiver = '" . Auth::id() . "' and read_time is null");
|
||||
$new_msg_tot = $new_user_msg_num + $new_system_msg_num;
|
||||
?>
|
||||
<!-- Made with 💖 by Baoshuo ( https://baoshuo.ren ) -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= UOJLocale::locale() ?>">
|
||||
|
||||
@ -243,7 +247,11 @@ if (!isset($PageContainerClass)) {
|
||||
<body class="d-flex flex-column min-vh-100
|
||||
<?php if ($ShowPageHeader) : ?>
|
||||
bg-body-tertiary
|
||||
<?php endif ?>">
|
||||
<?php endif ?>
|
||||
<?php if (isset($PageBodyClass)) : ?>
|
||||
<?= $PageBodyClass ?>
|
||||
<?php endif ?>
|
||||
">
|
||||
<?php if ($ShowPageHeader) : ?>
|
||||
<?php uojIncludeView($PageNav, array('REQUIRE_LIB' => $REQUIRE_LIB)) ?>
|
||||
<?php endif ?>
|
||||
|
Loading…
Reference in New Issue
Block a user