UOJUserBlog::id(), ]; if (!UOJUserBlog::userCanManage(Auth::user())) { $blogs_conds["is_hidden"] = false; } $display_blogs_conds = $blogs_conds; if (isset($_GET['tag'])) { $blog_tag_required = $_GET['tag']; $display_blogs_conds[] = [ DB::rawvalue($blog_tag_required), "in", DB::rawbracket([ "select tag from blogs_tags", "where", ["blogs_tags.blog_id" => DB::raw("blogs.id")] ]) ]; } else { $blog_tag_required = null; } $blogs_pag = new Paginator([ 'col_names' => ['*'], 'table_name' => 'blogs', 'cond' => $display_blogs_conds, 'tail' => 'order by post_time desc', 'page_len' => 15 ]); $all_tags = DB::selectAll([ "select distinct tag from blogs_tags", "where", [ [ "blog_id", "in", DB::rawbracket([ "select id from blogs", "where", $blogs_conds ]) ] ] ]); ?>
isEmpty()) : ?>
此人很懒,什么博客也没留下。
get() as $blog_info) : ?>
标题 发表时间 评价
info['is_hidden']) : ?> [隐藏] getLink() ?> queryTags() as $tag) : ?> info['post_time'] ?> info['id'], $blog->info['zan'], null, false) ?>
isEmpty()) : ?>
没有找到包含 “” 标签的博客:
共找到 n_rows ?> 篇包含 “” 标签的博客:
get() as $blog_info) : ?>
标题 发表时间 评价
info['is_hidden']) : ?> [隐藏] getLink() ?> queryTags() as $tag) : ?> info['post_time'] ?> info['id'], $blog->info['zan'], null, false) ?>
pagination() ?>
标签
暂无