begin of thinksaas 3.68

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:33:25 +08:00
commit 963ec1b2ea
2746 changed files with 331806 additions and 0 deletions
+116
View File
@@ -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")}
+11
View File
@@ -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>
+38
View File
@@ -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")}