@@ -0,0 +1,27 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr><th>专辑ID</th><th>名字</th><th>介绍</th><th>话题数</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
{loop $arrAlbum $key $item}
|
||||
<tr><td>{$item['albumid']}</td><td>{$item['albumname']}</td><td>{$item['albumdesc']}</td><td>{$item['count_topic']}</td><td><a onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=group&ac=admin&mg=album&ts=delete&albumid={$item['albumid']}">删除</a></td></tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,21 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=add_do">
|
||||
<table class="table table-hover">
|
||||
<tr><td width="100">分类名称:</td><td><input name="catename" value="" /></td></tr>
|
||||
|
||||
<tr><td></td><td>
|
||||
|
||||
|
||||
<input type="hidden" name="referid" value="{$referid}" />
|
||||
<input class="btn btn-primary" type="submit" value="添加分类" />
|
||||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,32 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=edit_do">
|
||||
<table class="table table-hover">
|
||||
<tr><td width="100">分类名称:</td><td><input name="catename" value="{$strCate[catename]}" /></td></tr>
|
||||
|
||||
|
||||
{if $referid}
|
||||
<tr>
|
||||
<td>上级分类:</td><td>
|
||||
<select name="referid">
|
||||
{loop $arrOneCate $key $item}
|
||||
<option value="{$item['cateid']}">{$item['catename']}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr><td></td><td>
|
||||
<input type="hidden" name="cateid" value="{$strCate[cateid]}" />
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
<input class="btn btn-primary" type="submit" value="修改分类" />
|
||||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,58 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<thead class="thead-light fs14">
|
||||
<tr><th>分类ID</th><th>分类名字</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
{loop $arrCatess $key $item}
|
||||
|
||||
<tr><td>{$item[cateid]}</td><td>I、{$item[catename]}</td>
|
||||
|
||||
<td>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=add&referid={$item['cateid']}">[添加二级分类]</a>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=edit&cateid={$item[cateid]}">[修改] <a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=del&cateid={$item['cateid']}" onclick="return confirm('确定删除?')">[删除]</a></a></td></tr>
|
||||
|
||||
|
||||
{loop $item['two'] $tkey $titem}
|
||||
|
||||
<tr class="odd"><td>{$titem[cateid]}</td><td> II、{$titem[catename]}</td>
|
||||
|
||||
<td>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=add&referid={$titem['cateid']}">[添加三级分类]</a>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=edit&cateid={$titem[cateid]}&referid=1">[修改] <a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=del&cateid={$titem['cateid']}" onclick="return confirm('确定删除?')">[删除]</a></a></td></tr>
|
||||
|
||||
{loop $titem['three'] $ttkey $ttitem}
|
||||
<tr class="odd"><td>{$ttitem[cateid]}</td><td> III、{$ttitem[catename]}</td>
|
||||
|
||||
<td>
|
||||
|
||||
<!-- <a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=add&referid={$ttitem['cateid']}">[添加下级分类]</a> -->
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=edit&cateid={$ttitem[cateid]}">[修改] <a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=del&cateid={$ttitem['cateid']}" onclick="return confirm('确定删除?')">[删除]</a></a></td></tr>
|
||||
{/loop}
|
||||
|
||||
{/loop}
|
||||
|
||||
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,62 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light fs14">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>小组名字</th>
|
||||
<th>小组介绍</th>
|
||||
<th>统计</th>
|
||||
<th>创建时间</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
{loop $arrAllGroup $key $item}
|
||||
<tr>
|
||||
<td>{$item[groupid]}</td>
|
||||
<td><a href="{tsUrl('group','show',array('id'=>$item['groupid']))}" target="_blank">[{tsTitle($item['groupname'])}]</a></td>
|
||||
<td>{php echo cututf8(t($item[groupdesc]),0,20)}</td>
|
||||
|
||||
<td>帖子数:{$item['count_topic']}
|
||||
<br>
|
||||
成员数:{$item['count_user']}
|
||||
</td>
|
||||
|
||||
<td>{php echo date('Y-m-d H:i:s',$item[addtime])}</td>
|
||||
<td>
|
||||
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=isaudit&groupid={$item[groupid]}">
|
||||
{if $item[isaudit]}
|
||||
<font color="red">审核</font>
|
||||
{else}
|
||||
取消审核
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
| <a href="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=isrecommend&groupid={$item[groupid]}">{if $item[isrecommend]=='0'}<font color="red">[推荐]</font>{else}[取消推荐]{/if}</a>
|
||||
|
||||
<!--| <a href="{SITE_URL}index.php?app=group&ac=admin&mg=upuser&groupid={$item[groupid]}">[投送]</a>-->
|
||||
|
||||
| <a target="_blank" href="{SITE_URL}index.php?app=group&ac=edit&groupid={$item[groupid]}&ts=base">[修改]</a>
|
||||
| <a href="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=del&groupid={$item[groupid]}">[删除]</a></td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,74 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
|
||||
<form method="post" action="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=orderid">
|
||||
|
||||
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light fs14">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>小组名字</th>
|
||||
|
||||
<th>排序ID(从小到大)</th>
|
||||
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
{loop $arrGroup $key $item}
|
||||
<tr>
|
||||
<td>{$item[groupid]}</td>
|
||||
<td><a href="{tsUrl('group','show',array('id'=>$item['groupid']))}" target="_blank">[{tsTitle($item['groupname'])}]</a></td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
<input type="hidden" name="groupid[]" value="{$item['groupid']}">
|
||||
<input type="number" name="orderid[]" value="{$item['orderid']}">
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=isrecommend&groupid={$item[groupid]}">{if $item[isrecommend]=='0'}<font color="red">[推荐]</font>{else}[取消推荐]{/if}</a>
|
||||
|
||||
|
||||
</td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<hr />
|
||||
|
||||
<div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">修改</button>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,18 @@
|
||||
<div class="tabnav">
|
||||
<h6>小组管理</h6>
|
||||
<ul>
|
||||
<li {if $mg=='options'}class="select"{/if}><a href="{SITE_URL}index.php?app=group&ac=admin&mg=options">小组配置</a></li>
|
||||
|
||||
<li {if $mg=='permissions'}class="select"{/if}><a href="{SITE_URL}index.php?app=group&ac=admin&mg=permissions">权限配置</a></li>
|
||||
|
||||
<li {if $mg=='group' && $ts=='list'}class="select"{/if}><a href="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=list">全部小组</a></li>
|
||||
|
||||
<li {if $mg=='group' && $ts=='recommend'}class="select"{/if}><a href="{SITE_URL}index.php?app=group&ac=admin&mg=group&ts=recommend">推荐的小组</a></li>
|
||||
|
||||
<li {if $mg=='cate' && $ts=='list'}class="select"{/if}><a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=list">小组分类</a></li>
|
||||
|
||||
<li {if $mg=='cate' && $ts=='add'}class="select"{/if}><a href="{SITE_URL}index.php?app=group&ac=admin&mg=cate&ts=add">添加分类</a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div style="height: 100px;"></div>
|
||||
@@ -0,0 +1,46 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=group&ac=admin&mg=options&ts=do">
|
||||
<table class="table table-hover">
|
||||
|
||||
<tr><td width="220">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 {if $strOption[iscreate]=='0'}checked="select"{/if} name="option[iscreate]" type="radio" value="0" />允许 <input {if $strOption[iscreate]=='1'}checked="select"{/if} name="option[iscreate]" type="radio" value="1" />不允许(只有管理员可以创建小组)</td></tr>
|
||||
|
||||
<tr><td>创建小组是否需要审核 :</td><td><input {if $strOption[isaudit]=='1'}checked="select"{/if} name="option[isaudit]" type="radio" value="1" />审核 <input {if $strOption[isaudit]=='0'}checked="select"{/if} name="option[isaudit]" type="radio" value="0" />不审核</td></tr>
|
||||
|
||||
<tr><td>每个会员加入小组数 :</td><td><input type="text" name="option[joinnum]" value="{$strOption['joinnum']}" width="50" /> (创建和加入的总和)</td></tr>
|
||||
|
||||
|
||||
<!--
|
||||
<tr><td>是否允许用户发帖 :</td><td><input {if $strOption['isallowpost']=='1'}checked="select"{/if} name="option[isallowpost]" type="radio" value="1" />不允许 <input {if $strOption['isallowpost']=='0'}checked="select"{/if} name="option[isallowpost]" type="radio" value="0" />允许</td></tr>
|
||||
<tr><td>发帖是否审核 :</td><td><input {if $strOption['topicisaudit']=='0'}checked="select"{/if} name="option[topicisaudit]" type="radio" value="0" />不审核 <input {if $strOption['topicisaudit']=='1'}checked="select"{/if} name="option[topicisaudit]" type="radio" value="1" />审核</td></tr>
|
||||
-->
|
||||
|
||||
<tr><td>是否开启加入小组付费功能 :</td><td>
|
||||
|
||||
<input {if $strOption['ispayjoin']=='0'}checked="select"{/if} name="option[ispayjoin]" type="radio" value="0" />不开启
|
||||
<input {if $strOption['ispayjoin']=='1'}checked="select"{/if} name="option[ispayjoin]" type="radio" value="1" />开启 <small class="text-danger">(开启需要安装支付模块)</small>
|
||||
|
||||
</td></tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr><td></td><td>
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
<input class="btn btn-primary" type="submit" value="提 交" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,148 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
{loop $arrUg $key $item}
|
||||
<a class="btn btn-sm {if $item['ugid']==$ugid}btn-secondary{else}btn-outline-secondary{/if}" href="{SITE_URL}index.php?app=group&ac=admin&mg=permissions&ugid={$item['ugid']}">{$item['ugname']}</a>
|
||||
{/loop}
|
||||
</div>
|
||||
|
||||
|
||||
<form method="POST" action="index.php?app=group&ac=admin&mg=permissions&ts=do">
|
||||
|
||||
|
||||
<h6 class="font-weight-bold fs14">前台权限</h6>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<tr>
|
||||
<td width="150">查看小组:</td>
|
||||
<td>
|
||||
<select name="option[group_show]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_show']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_show']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!--不允许游客发布、修改、删除-->
|
||||
{if $ugid==1 || $ugid==2 || $ugid==3}
|
||||
<tr>
|
||||
<td>创建小组:</td>
|
||||
<td>
|
||||
<select name="option[group_create]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_create']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_create']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>修改小组:</td>
|
||||
<td>
|
||||
<select name="option[group_edit]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_edit']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_edit']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>删除小组:</td>
|
||||
<td>
|
||||
<select name="option[group_delete]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_delete']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_delete']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<!--管理权限-->
|
||||
{if $ugid==1 || $ugid==2}
|
||||
<h6 class="font-weight-bold fs14">后台权限</h6>
|
||||
<table class="table table-hover">
|
||||
<tr>
|
||||
<td width="150">小组配置:</td>
|
||||
<td>
|
||||
<select name="option[group_admin_options]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_admin_options']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_admin_options']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>权限配置:</td>
|
||||
<td>
|
||||
<select name="option[group_admin_permissions]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_admin_permissions']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_admin_permissions']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>添加分类:</td>
|
||||
<td>
|
||||
<select name="option[group_admin_cate_add]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_admin_cate_add']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_admin_cate_add']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>修改分类:</td>
|
||||
<td>
|
||||
<select name="option[group_admin_cate_edit]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_admin_cate_edit']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_admin_cate_edit']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
|
||||
|
||||
<h6 class="font-weight-bold fs14">API权限</h6>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<tr>
|
||||
<td width="150">查看小组:</td>
|
||||
<td>
|
||||
<select name="option[group_api_show]">
|
||||
<option value="1" {if $TS_APP['permissions'][$ugid]['group_api_show']==1}selected{/if}>允许</option>
|
||||
<option value="0" {if $TS_APP['permissions'][$ugid]['group_api_show']==0}selected{/if}>拒绝</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<input type="hidden" name="ugid" value="{$ugid}">
|
||||
|
||||
<input class="btn btn-primary" type="submit" value="提交修改" />
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,37 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light">
|
||||
<tr><th>ID</th><th>UserID</th><th>标题</th><th>时间</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
{loop $arrTopic $key $item}
|
||||
<tr><td>{$item['topicid']}</td><td>{$item['userid']}</td>
|
||||
|
||||
<td>
|
||||
|
||||
<a target="_blank" href="{tsUrl('group','topic',array('id'=>$item['topicid']))}">{$item['title']}</a></td>
|
||||
|
||||
<td>{php echo date('Y-m-d H:i:s',$item['addtime'])}</td><td>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=topic&ts=delete&topicid={$item['topicid']}">删除</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,45 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
|
||||
<thead>
|
||||
|
||||
<tr><th>ID</th><th>标题</th><th>时间</th><th>状态</th><th>操作</th></tr>
|
||||
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
{loop $arrTopic $key $item}
|
||||
<tr><td>{$item['topicid']}</td><td><a href="index.php?app=group&ac=admin&mg=topic&ts=editview&topicid={$item['topicid']}">{$item['title']}</a></td><td>{$item['addtime']}</td><td>{if $item['isupdate']==1}<font color="green">已更新</font>{else}未更新{/if}</td><td>
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=topic&ts=update&topicid={$item['topicid']}">更新</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,18 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="mb10"> <a class="btn mr10" href="index.php?app=group&ac=admin&mg=topic&ts=edittopic">返回</a> <a class="btn mr10" href="index.php?app=group&ac=admin&mg=topic&ts=update&topicid={$strTopic['topicid']}">更新数据</a></div>
|
||||
|
||||
<div>
|
||||
<h1>{$strTopic['title']}</h1>
|
||||
<div>{$strTopic['content']}</div>
|
||||
<div style="clear:both"></div>
|
||||
<div>{$strTopic['addtime']}</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
@@ -0,0 +1,42 @@
|
||||
{php include pubTemplate("header_admin")}
|
||||
|
||||
<!--main-->
|
||||
<div class="midder">
|
||||
|
||||
{php include template("admin/menu");}
|
||||
|
||||
<div class="page">{$pageUrl}</div>
|
||||
|
||||
<table class="table table-hover">
|
||||
|
||||
<thead class="thead-light fs14">
|
||||
<tr><th>ID</th><th>UserID</th><th>标题</th><th>时间</th><th>操作</th></tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody class="fs12">
|
||||
|
||||
|
||||
|
||||
{loop $arrTopic $key $item}
|
||||
<tr><td>{$item['topicid']}</td><td>{$item['userid']}</td><td><a target="_blank" href="{tsUrl('group','topic',array('id'=>$item['topicid']))}">{tsTitle($item['title'])}</a></td><td>{php echo date('Y-m-d H:i:s',$item['addtime'])}</td><td>
|
||||
|
||||
<a href="{SITE_URL}index.php?app=group&ac=admin&mg=topic&ts=isaudit&topicid={$item['topicid']}">
|
||||
{if $item['isaudit']==0}
|
||||
已审核
|
||||
{else}
|
||||
<font color="red">未审核</a>
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
<a onclick="return confirm('确定删除?')" href="{SITE_URL}index.php?app=group&ac=admin&mg=topic&ts=delete&topicid={$item['topicid']}&groupid={$item['groupid']}">删除</a>
|
||||
|
||||
</td></tr>
|
||||
{/loop}
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
{php include pubTemplate("footer_admin")}
|
||||
Reference in New Issue
Block a user