@@ -0,0 +1,119 @@
|
||||
{php include pubTemplate("header")}
|
||||
<div class="container">
|
||||
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{SITE_URL}">首页</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('group')}">小组</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('group','show',array('id'=>$strGroup['groupid']))}">{$strGroup[groupname]}</a></li>
|
||||
<li class="breadcrumb-item"><a href="{tsUrl('topic','show',array('id'=>$strTopic['topicid']))}">{$strTopic['title']}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">编辑帖子</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-2"></div>
|
||||
<div class="col-md-8">
|
||||
|
||||
|
||||
|
||||
<form method="POST" action="{SITE_URL}index.php?app=topic&ac=edit&ts=do" enctype="multipart/form-data">
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>标题</label>
|
||||
<input name="title" type="text" class="form-control" value="{$strTopic['title']}">
|
||||
</div>
|
||||
|
||||
{if $arrGroupType}
|
||||
<div class="form-group">
|
||||
<label>类型</label>
|
||||
|
||||
<select name="typeid" class="form-control">
|
||||
<option {if $strTopic[typeid]=='0'}selected="select"{/if} value="0">请选择</option>
|
||||
{loop $arrGroupType $key $item}
|
||||
<option {if $item[typeid]==$strTopic[typeid]}selected="select"{/if} value="{$item[typeid]}">{$item[typename]}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>内容</label>
|
||||
|
||||
<div>
|
||||
<textarea id="tseditor" name="content">{$strTopic['content']}</textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>标签</label>
|
||||
<input name="tag" type="text" class="form-control" value="{$strTopic['tag']}">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>评论</label>
|
||||
|
||||
<input type="radio" name="iscomment" value="0" {if $strTopic[iscomment]=='0'}checked="select"{/if} />允许
|
||||
<input type="radio" name="iscomment" value="1" {if $strTopic[iscomment]=='1'}checked="select"{/if} />不允许
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label>回复可读</label>
|
||||
|
||||
<input type="radio" name="iscommentshow" value="0" {if $strTopic[iscommentshow]=='0'}checked="select"{/if} />不需要
|
||||
<input type="radio" name="iscommentshow" value="1" {if $strTopic[iscommentshow]=='1'}checked="select"{/if} />需要
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>查看需要</label>
|
||||
<input type="text" name="score" value="{$strTopic['score']}" onkeyup="NumberCheck(this)" /> 积分
|
||||
</div>
|
||||
|
||||
{if $TS_SITE['isauthcode']}
|
||||
<div class="form-group">
|
||||
<label>验证码</label>
|
||||
|
||||
<input name="authcode" />
|
||||
<img align="absmiddle" src="{SITE_URL}index.php?app=pubs&ac=code" onclick="newgdcode(this,this.src);" title="点击刷新验证码" alt="点击刷新验证码" style="cursor:pointer;"/>
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
<input type="hidden" name="topicid" value="{$strTopic[topicid]}" />
|
||||
|
||||
<input type="hidden" name="token" value="{$_SESSION['token']}" />
|
||||
|
||||
<button class="btn btn-sm btn-info" type="submit">修改帖子</button>
|
||||
|
||||
<a class="btn btn-sm btn-outline-secondary" href="{tsUrl('topic','show',array('id'=>$strTopic[topicid]))}">返回</a>
|
||||
<p></p>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-2"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
{php doAction('tseditor')}
|
||||
{php include pubTemplate("footer")}
|
||||
Reference in New Issue
Block a user