You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

349 lines
17 KiB

<?php /* Smarty version 2.6.26, created on 2025-07-15 09:26:11
compiled from weibo/comment_detail.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>知识库</title>
<link rel="stylesheet" href="<?php echo @CSS_URL; ?>
/css/common.css?v=<?php echo @CSS_JS_VERSION; ?>
">
<link rel="stylesheet" href="<?php echo @CSS_URL; ?>
/css/index.css?v=<?php echo @CSS_JS_VERSION; ?>
8">
<script src="<?php echo @CSS_URL; ?>
/js/jquery-3.6.0.min.js"></script>
<?php echo '
<style>
.comment-con,.comment-detail,.small-image-wrapper,.small-video-cover{
margin-top: 20px;
}
.comment-title{
margin-bottom: 20px;
color: green;
}
.small-image-wrapper{
margin-bottom: 20px;
}
.small-image-wrapper{
display: flex;
flex-wrap: wrap;
column-gap: 10px;
row-gap: 10px;
}
.comment-txt img{
width: 20px;
height: 20px;
}
.small-image-img{
width: 100%;
height: 100%;
margin-bottom: 20px;
}
#next-page,#prev-page{
cursor: pointer;
}
</style>
'; ?>
</head>
<body>
<div class="home-page">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "include/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div class="home-main-content">
<div class="tab-list index-nav-wrap flex">
<ul class="tab-wrap">
<li class="index-nav-wrap-li" type="1"><span <?php if ($_GET['search_type'] == '1'): ?>class="active"<?php endif; ?>>选中评论</span></li>
<li class="index-nav-wrap-li" type="0"><span <?php if ($_GET['search_type'] == '0'): ?>class="active"<?php endif; ?>>剔除评论</span></li>
<li class="index-nav-wrap-li" type="-1"><span <?php if ($_GET['search_type'] == "-1"): ?>class="active"<?php endif; ?>>全部评论</span></li>
</ul>
</div>
<div class="comment-con">
<div class="comment-title">微博内容:</div>
<div class="list_item_top flex">
<div class="list_item_top_l">
<span class="green">微博</span>
<b class="refer_text"></b>
<span class="name">张宝旬</span>
<span>录入:<?php echo $this->_tpl_vars['data']['created_at']; ?>
</span>
<a href="https://m.weibo.cn/detail/<?php echo $this->_tpl_vars['data']['wid']; ?>
" target="_blank">微博地址</a>
</div>
</div>
<div class="comment-detail">
<?php echo $this->_tpl_vars['data']['text']; ?>
</div>
<?php if ($this->_tpl_vars['data']['pic_arr']): ?>
<div class="small-image-wrapper">
<?php $_from = $this->_tpl_vars['data']['pic_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['item']):
?>
<div class="small-image">
<span class="small-image-desc">图片</span>
<img src="<?php echo $this->_tpl_vars['item']; ?>
" alt="Small Image" class="small-image-img">
<img class="delete-btn hide" src="../images/delete-icon.svg" alt="Small Image">
</div>
<?php endforeach; endif; unset($_from); ?>
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['data']['video_url']): ?>
<div class="small-video-cover" href="<?php echo $this->_tpl_vars['data']['video_url']; ?>
">
<span class="small-image-desc">视频</span>
<img class="small-video-show" src="<?php if ($this->_tpl_vars['data']['video_cover']): ?><?php echo $this->_tpl_vars['data']['video_cover']; ?>
<?php else: ?>'../images/vedio_img.png'<?php endif; ?>" alt="Video Cover">
<img src="../images/play.svg" class="play-video" alt="...丢了">
</div>
<?php endif; ?>
<?php if ($this->_tpl_vars['comment_list']): ?>
<div class="comment-list">
<div class="comment-title">评论内容:</div>
<?php $_from = $this->_tpl_vars['comment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
?>
<div class="list_item_top flex" style="margin-top: 20px;" idattr="<?php echo $this->_tpl_vars['item']['id']; ?>
">
<div class="list_item_top_l">
<!-- <span class="green">评论</span> -->
<b class="refer_text"></b>
<span class="name"><?php echo $this->_tpl_vars['key']+1; ?>
.<?php echo $this->_tpl_vars['item']['screen_name']; ?>
</span>
<span><?php echo $this->_tpl_vars['item']['comment_time']; ?>
<?php echo $this->_tpl_vars['item']['source']; ?>
</span>
</div>
</div>
<div class="list_item_top flex" style="margin-top: 10px;">
<div class="list_item_top_l">
<span class="green">评论</span>
<b class="refer_text"></b>
<span class="name comment-txt"><?php echo $this->_tpl_vars['item']['content']; ?>
</span>
<span class="<?php if ($this->_tpl_vars['item']['is_search'] == 1): ?>green<?php elseif ($this->_tpl_vars['item']['is_search'] == 0): ?>red<?php elseif ($this->_tpl_vars['item']['is_search'] == 0): ?>grey<?php endif; ?>"><?php echo $this->_tpl_vars['search_status_list'][$this->_tpl_vars['item']['is_search']]; ?>
</span>
</div>
</div>
<?php endforeach; endif; unset($_from); ?>
</div>
<?php endif; ?>
</div>
<div class="pagination" v-if="total > 0">
<img id="prev-page" src="/images/prev.svg" alt="">
<ul id="page-numbers">
<?php if ($this->_tpl_vars['last_page'] <= 6): ?>
<?php unset($this->_sections['num']);
$this->_sections['num']['name'] = 'num';
$this->_sections['num']['loop'] = is_array($_loop=$this->_tpl_vars['last_page']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['num']['show'] = true;
$this->_sections['num']['max'] = $this->_sections['num']['loop'];
$this->_sections['num']['step'] = 1;
$this->_sections['num']['start'] = $this->_sections['num']['step'] > 0 ? 0 : $this->_sections['num']['loop']-1;
if ($this->_sections['num']['show']) {
$this->_sections['num']['total'] = $this->_sections['num']['loop'];
if ($this->_sections['num']['total'] == 0)
$this->_sections['num']['show'] = false;
} else
$this->_sections['num']['total'] = 0;
if ($this->_sections['num']['show']):
for ($this->_sections['num']['index'] = $this->_sections['num']['start'], $this->_sections['num']['iteration'] = 1;
$this->_sections['num']['iteration'] <= $this->_sections['num']['total'];
$this->_sections['num']['index'] += $this->_sections['num']['step'], $this->_sections['num']['iteration']++):
$this->_sections['num']['rownum'] = $this->_sections['num']['iteration'];
$this->_sections['num']['index_prev'] = $this->_sections['num']['index'] - $this->_sections['num']['step'];
$this->_sections['num']['index_next'] = $this->_sections['num']['index'] + $this->_sections['num']['step'];
$this->_sections['num']['first'] = ($this->_sections['num']['iteration'] == 1);
$this->_sections['num']['last'] = ($this->_sections['num']['iteration'] == $this->_sections['num']['total']);
?>
<span class="<?php if ($this->_tpl_vars['cur_page'] == ( $this->_sections['num']['index']+1 )): ?>pagActive<?php endif; ?>" page="<?php echo $this->_sections['num']['index']+1; ?>
"><?php echo $this->_sections['num']['index']+1; ?>
</span>
<?php endfor; endif; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['last_page'] > 6): ?>
<?php if ($this->_tpl_vars['cur_page'] <= 5): ?>
<?php unset($this->_sections['num']);
$this->_sections['num']['name'] = 'num';
$this->_sections['num']['loop'] = is_array($_loop=5) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['num']['show'] = true;
$this->_sections['num']['max'] = $this->_sections['num']['loop'];
$this->_sections['num']['step'] = 1;
$this->_sections['num']['start'] = $this->_sections['num']['step'] > 0 ? 0 : $this->_sections['num']['loop']-1;
if ($this->_sections['num']['show']) {
$this->_sections['num']['total'] = $this->_sections['num']['loop'];
if ($this->_sections['num']['total'] == 0)
$this->_sections['num']['show'] = false;
} else
$this->_sections['num']['total'] = 0;
if ($this->_sections['num']['show']):
for ($this->_sections['num']['index'] = $this->_sections['num']['start'], $this->_sections['num']['iteration'] = 1;
$this->_sections['num']['iteration'] <= $this->_sections['num']['total'];
$this->_sections['num']['index'] += $this->_sections['num']['step'], $this->_sections['num']['iteration']++):
$this->_sections['num']['rownum'] = $this->_sections['num']['iteration'];
$this->_sections['num']['index_prev'] = $this->_sections['num']['index'] - $this->_sections['num']['step'];
$this->_sections['num']['index_next'] = $this->_sections['num']['index'] + $this->_sections['num']['step'];
$this->_sections['num']['first'] = ($this->_sections['num']['iteration'] == 1);
$this->_sections['num']['last'] = ($this->_sections['num']['iteration'] == $this->_sections['num']['total']);
?>
<span class="<?php if ($this->_tpl_vars['cur_page'] == ( $this->_sections['num']['index']+1 )): ?>pagActive<?php endif; ?>" page="<?php echo $this->_sections['num']['index']+1; ?>
"><?php echo $this->_sections['num']['index']+1; ?>
</span>
<?php endfor; endif; ?>
<span>...</span>
<span page="<?php echo $this->_tpl_vars['last_page']; ?>
"><?php echo $this->_tpl_vars['last_page']; ?>
</span>
<?php elseif ($this->_tpl_vars['cur_page'] > $this->_tpl_vars['last_page']-5): ?>
<span page="1">1</span>
<span>...</span>
<?php unset($this->_sections['num']);
$this->_sections['num']['name'] = 'num';
$this->_sections['num']['loop'] = is_array($_loop=5) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['num']['show'] = true;
$this->_sections['num']['max'] = $this->_sections['num']['loop'];
$this->_sections['num']['step'] = 1;
$this->_sections['num']['start'] = $this->_sections['num']['step'] > 0 ? 0 : $this->_sections['num']['loop']-1;
if ($this->_sections['num']['show']) {
$this->_sections['num']['total'] = $this->_sections['num']['loop'];
if ($this->_sections['num']['total'] == 0)
$this->_sections['num']['show'] = false;
} else
$this->_sections['num']['total'] = 0;
if ($this->_sections['num']['show']):
for ($this->_sections['num']['index'] = $this->_sections['num']['start'], $this->_sections['num']['iteration'] = 1;
$this->_sections['num']['iteration'] <= $this->_sections['num']['total'];
$this->_sections['num']['index'] += $this->_sections['num']['step'], $this->_sections['num']['iteration']++):
$this->_sections['num']['rownum'] = $this->_sections['num']['iteration'];
$this->_sections['num']['index_prev'] = $this->_sections['num']['index'] - $this->_sections['num']['step'];
$this->_sections['num']['index_next'] = $this->_sections['num']['index'] + $this->_sections['num']['step'];
$this->_sections['num']['first'] = ($this->_sections['num']['iteration'] == 1);
$this->_sections['num']['last'] = ($this->_sections['num']['iteration'] == $this->_sections['num']['total']);
?>
<span class="<?php if ($this->_tpl_vars['cur_page'] == ( $this->_tpl_vars['last_page']-5+$this->_sections['num']['index']+1 )): ?>pagActive<?php endif; ?>" page="<?php echo $this->_tpl_vars['last_page']-5+$this->_sections['num']['index']+1; ?>
"><?php echo $this->_tpl_vars['last_page']-5+$this->_sections['num']['index']+1; ?>
</span>
<?php endfor; endif; ?>
<?php else: ?>
<span page="1">1</span>
<span>...</span>
<?php unset($this->_sections['num']);
$this->_sections['num']['name'] = 'num';
$this->_sections['num']['loop'] = is_array($_loop=5) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['num']['show'] = true;
$this->_sections['num']['max'] = $this->_sections['num']['loop'];
$this->_sections['num']['step'] = 1;
$this->_sections['num']['start'] = $this->_sections['num']['step'] > 0 ? 0 : $this->_sections['num']['loop']-1;
if ($this->_sections['num']['show']) {
$this->_sections['num']['total'] = $this->_sections['num']['loop'];
if ($this->_sections['num']['total'] == 0)
$this->_sections['num']['show'] = false;
} else
$this->_sections['num']['total'] = 0;
if ($this->_sections['num']['show']):
for ($this->_sections['num']['index'] = $this->_sections['num']['start'], $this->_sections['num']['iteration'] = 1;
$this->_sections['num']['iteration'] <= $this->_sections['num']['total'];
$this->_sections['num']['index'] += $this->_sections['num']['step'], $this->_sections['num']['iteration']++):
$this->_sections['num']['rownum'] = $this->_sections['num']['iteration'];
$this->_sections['num']['index_prev'] = $this->_sections['num']['index'] - $this->_sections['num']['step'];
$this->_sections['num']['index_next'] = $this->_sections['num']['index'] + $this->_sections['num']['step'];
$this->_sections['num']['first'] = ($this->_sections['num']['iteration'] == 1);
$this->_sections['num']['last'] = ($this->_sections['num']['iteration'] == $this->_sections['num']['total']);
?>
<span class="<?php if ($this->_tpl_vars['cur_page'] == ( $this->_tpl_vars['cur_page']-2+$this->_sections['num']['index'] )): ?>pagActive<?php endif; ?>" page="<?php echo $this->_tpl_vars['cur_page']-2+$this->_sections['num']['index']; ?>
"><?php echo $this->_tpl_vars['cur_page']-2+$this->_sections['num']['index']; ?>
</span>
<?php endfor; endif; ?>
<span>...</span>
<span page="<?php echo $this->_tpl_vars['last_page']; ?>
"><?php echo $this->_tpl_vars['last_page']; ?>
</span>
<?php endif; ?>
<?php endif; ?>
</ul>
<img id="next-page" src="/images/next.svg" alt="">
<div class="input-page">
<span>前往</span>
<input type="number" id="jump-to-page" min="1" placeholder="页码">
<span>页</span>
</div>
<button id="go-to-page">跳转</button>
</div>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "include/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</div>
<div id="hidecomments" style="display: none;"></div>
<div id="last_page" style="display: none;"><?php echo $this->_tpl_vars['last_page']; ?>
</div>
</body>
<?php echo '
<script>
$(\'.index-nav-wrap-li\').click(function(){
var type = $(this).attr(\'type\')
window.location.href = location.href.replace(/\\&search\\_type=(\\-)?\\d+/, \'\').replace(/\\&page=\\d+/, \'\') +\'&search_type=\'+type
})
$(\'#page-numbers span\').click(function(){
var page = $(this).attr(\'page\')
if(!page) return;
location.href = location.href.replace(/\\&page=\\d+/, \'\') +\'&page=\'+page
})
$(\'#next-page\').click(function(){
var page = parseInt($(\'#page-numbers span.pagActive\').attr(\'page\')) + 1
if(page > parseInt($(\'#last_page\').text())) return;
location.href = location.href.replace(/\\&page=\\d+/, \'\') +\'&page=\'+page
})
$(\'#prev-page\').click(function(){
var page = parseInt($(\'#page-numbers span.pagActive\').attr(\'page\')) - 1
if(page < 1) return;
location.href = location.href.replace(/\\&page=\\d+/, \'\') +\'&page=\'+page
})
$(\'#go-to-page\').click(function(){
var page = $(\'#jump-to-page\').val()
if(page > parseInt($(\'#last_page\').text())) page = parseInt($(\'#last_page\').text())
if(page < 1) page = 1
location.href = location.href.replace(/\\&page=\\d+/, \'\') +\'&page=\'+page
})
</script>
'; ?>
</html>