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']) : ?>
[隐藏]
= $blog->getLink() ?>
queryTags() as $tag) : ?>
|
= $blog->info['post_time'] ?> |
= ClickZans::getCntBlock($blog->info['zan']) ?> |
isEmpty()) : ?>
没有找到包含 “= HTML::escape($blog_tag_required) ?>” 标签的博客:
共找到 = $blogs_pag->n_rows ?> 篇包含 “= HTML::escape($blog_tag_required) ?>” 标签的博客:
标题 |
发表时间 |
评价 |
get() as $blog_info) : ?>
info['is_hidden']) : ?>
[隐藏]
= $blog->getLink() ?>
queryTags() as $tag) : ?>
|
= $blog->info['post_time'] ?> |
= ClickZans::getCntBlock($blog->info['zan']) ?> |
= $blogs_pag->pagination() ?>