@@ -0,0 +1,116 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
|
||||
|
||||
<form method="get" action="index.php">
|
||||
<input type="hidden" name="app" value="comment">
|
||||
<input type="hidden" name="ac" value="admin">
|
||||
<input type="hidden" name="mg" value="comment">
|
||||
<input type="hidden" name="ts" value="list">
|
||||
|
||||
<select name="ptable">
|
||||
|
||||
<option value="" {if $ptable==''}selected{/if}>全部</option>
|
||||
<option value="topic" {if $ptable=='topic'}selected{/if}>帖子</option>
|
||||
<option value="article" {if $ptable=='article'}selected{/if}>文章</option>
|
||||
<option value="photo" {if $ptable=='photo'}selected{/if}>图片</option>
|
||||
<option value="weibo" {if $ptable=='weibo'}selected{/if}>唠叨</option>
|
||||
<option value="video" {if $ptable=='video'}selected{/if}>视频</option>
|
||||
<option value="audio" {if $ptable=='audio'}selected{/if}>音频</option>
|
||||
<option value="event" {if $ptable=='event'}selected{/if}>活动</option>
|
||||
<option value="vote" {if $ptable=='vote'}selected{/if}>投票</option>
|
||||
<option value="study_lesson" {if $ptable=='study_lesson'}selected{/if}>课时</option>
|
||||
<option value="goods" {if $ptable=='goods'}selected{/if}>商品</option>
|
||||
|
||||
</select>
|
||||
|
||||
<input type="number" name="pid" placeholder="PID">
|
||||
|
||||
<input type="number" name="userid" placeholder="用户ID">
|
||||
|
||||
|
||||
<input type="submit" value="搜索">
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="index.php?app=comment&ac=admin&mg=comment&ts=list&ptable={$ptable}">全部</a>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light fs14">
|
||||
<tr><th>ID</th>
|
||||
|
||||
<th>UserID</th>
|
||||
|
||||
<th>PID</th>
|
||||
|
||||
<th>内容</th>
|
||||
|
||||
<th>时间</th>
|
||||
|
||||
<th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
|
||||
|
||||
{loop $arrComment $key $item}
|
||||
<tr>
|
||||
<td>{$item['commentid']}</td>
|
||||
<td>{$item['userid']}</td>
|
||||
<td>{$item['pid']} <a target="_blank" href="{php echo getProjectUrl($item['ptable'],$item['pid']);}">[查看内容]</a></td>
|
||||
|
||||
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
<div style="width: 600px;">{php echo tsDecode($item['content'])}</div>
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>{php echo date('Y-m-d H:i:s',$item['addtime'])}</td>
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{SITE_URL}index.php?app=comment&ac=admin&mg=comment&ts=isaudit&commentid={$item['commentid']}">
|
||||
|
||||
{if $item['isaudit']==1}
|
||||
审核
|
||||
{else}
|
||||
取消审核
|
||||
{/if}
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=comment&ac=admin&mg=comment&ts=delete&commentid={$item['commentid']}">删除</a>
|
||||
|
||||
</td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,11 @@
|
||||
|
||||
<div class="tabnav">
|
||||
<h6>评论管理</h6>
|
||||
<ul>
|
||||
<li {if $mg=='options'}class="select"{/if}><a href="{SITE_URL}index.php?app=comment&ac=admin&mg=options">基础配置</a></li>
|
||||
|
||||
<li {if $mg=='comment'}class="select"{/if}><a href="{SITE_URL}index.php?app=comment&ac=admin&mg=comment&ts=list">评论列表</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div style="height: 100px;"></div>
|
||||
@@ -0,0 +1,38 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<form method="POST" action="index.php?app=comment&ac=admin&mg=options&ts=do">
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<tr><td width="200">APP名称:</td><td><input style="width:300px;" name="option[appname]" value="{$strOption[appname]}" /></td></tr>
|
||||
|
||||
<tr><td>APP介绍:</td><td><textarea style="width:300px;" name="option[appdesc]">{$strOption[appdesc]}</textarea></td></tr>
|
||||
|
||||
<tr><td>APP关键词:</td><td><input style="width:300px;" name="option[appkey]" value="{$strOption[appkey]}" /></td></tr>
|
||||
|
||||
|
||||
<tr><td>评论是否审核后显示:</td>
|
||||
|
||||
<td>
|
||||
|
||||
<input type="radio" name="option[comment_isaudit]" value="0" {if $strOption['comment_isaudit']=='0'}checked="select"{/if} />不审核
|
||||
<input type="radio" name="option[comment_isaudit]" value="1" {if $strOption['comment_isaudit']=='1'}checked="select"{/if} />审核
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr><td></td><td>
|
||||
|
||||
<input class="btn btn-primary" type="submit" value="提交修改" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,72 @@
|
||||
{php include pubTemplate("header")}
|
||||
<div class="container">
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
<div class="my_left">
|
||||
|
||||
{php include pubTemplate("my")}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-9">
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header">我的评论</div>
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<table class="table mt-3">
|
||||
<thead class="thead-light">
|
||||
<tr><th>评论内容</th><th>时间</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{loop $arrComment $key $item}
|
||||
<tr>
|
||||
|
||||
<td>
|
||||
|
||||
<a target="_blank" href="{php echo getProjectUrl($item['ptable'],$item['pid']);}">{php echo tsDecode($item['content'])}</a></td>
|
||||
|
||||
<td class="text-black-50 fs12">{php echo date('Y-m-d H:i:s',$item['addtime'])}</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
<a class="fs12 text-black-50" href="{SITE_URL}index.php?app=comment&ac=delete&commentid={$item['commentid']}">删除</a>
|
||||
|
||||
</td></tr>
|
||||
{/loop}
|
||||
<tbody>
|
||||
</table>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{php include pubTemplate("footer")}
|
||||
@@ -0,0 +1,55 @@
|
||||
{loop $arrRecomment $rkey $ritem}
|
||||
<div class="recomment">
|
||||
|
||||
<div>
|
||||
<a href="{tsUrl('user','space',array('id'=>$ritem[user][userid]))}"><img src="{$ritem[user][face]}" width="24" height="24" class="rounded-circle" align="absmiddle"></a>
|
||||
<a class="c9" href="{tsUrl('user','space',array('id'=>$ritem[user][userid]))}">{$ritem[user][username]}</a>
|
||||
|
||||
{if $ritem['iszz']}
|
||||
<span class="text-danger">作者</span>
|
||||
{/if}
|
||||
|
||||
<span class="c9 ml-3">{$ritem['datetime']}</span>
|
||||
|
||||
|
||||
<span class="float-right">
|
||||
{if $TS_USER['userid'] && $ritem['userid']!=$TS_USER['userid']}
|
||||
<a href="javascript:void('0');" onclick="commentOpen({$ritem[commentid]})">回复</a>
|
||||
{/if}
|
||||
|
||||
{if $TS_USER['userid'] && $ritem['userid']==$TS_USER['userid']}
|
||||
<a class="fs12 ml-2" href="{SITE_URL}index.php?app=comment&ac=delete&commentid={$ritem[commentid]}" onClick="return confirm('确定删除吗?')">删除</a>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div style="padding-left:30px;">
|
||||
|
||||
{if $ritem['touserid']}
|
||||
<span class="text-black-50">回复 <a target="_blank" class="text-info" href="{tsUrl('user','space',array('id'=>$ritem['touserid']))}">@{$ritem['touser']['username']}</a> :</span>
|
||||
{/if}
|
||||
{$ritem[content]}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!----回复的回复---->
|
||||
<div class="mb-2" id="rcomment_{$ritem[commentid]}" style="padding-left:30px;display:none">
|
||||
<textarea class="form-control-sm w-100 border border-secondary" id="recontent_{$ritem[commentid]}" type="text" ></textarea>
|
||||
|
||||
<div class="mt-1">
|
||||
<a class="btn btn-sm btn-outline-info" href="javascript:void(0);" onClick="recomment({$ritem[commentid]},'topic','topicid',{$ritem[pid]},'{$ritem[userid]}')" id="recomm_btn_$ritem[commentid]">提交</a>
|
||||
<a class="btn btn-sm btn-outline-secondary" href="javascript:void('0');" onclick="commentOpen({$ritem['commentid']}})">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{/loop}
|
||||
Reference in New Issue
Block a user