后台文章添加页面替换
找到
<form class="well form-search" method="post" action="{:U('AdminPost/index')}">
分类:
<select class="select_2" name="term" style="width: 160px;">
<option value='0'>全部</option>{$taxonomys}
</select> 等。。。。。。。。
替换
<form class="well form-search" method="post" action="{:U('AdminPost/index')}">
分类:
<select class="select_2" name="term" style="width: 160px;">
<option value='0'>全部</option>{$taxonomys}
</select>
状态:
<input type="submit" name="status" value="待审核" class="btn btn-primary btn-small">
<input type="submit" name="recommended" value="已推荐" class="btn btn-primary btn-small">
<input type="submit" name="istop" value="已置顶" class="btn btn-primary btn-small">
</br>
</br>
时间:
<input type="text" name="start_time" class="js-date" value="{$formget.start_time|default=''}" style="width: 80px;" autocomplete="off">-
<input type="text" class="js-date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off">
关键字:
<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入关键字...">
<input type="submit" class="btn btn-primary" value="搜索" />
</form>
PHP控制器
找到private function _lists($status=1)控制器
把下面的
$fields=array(
'start_time'=> array("field"=>"post_date","operator"=>">"),
'end_time' => array("field"=>"post_date","operator"=>"<"),
'status' => array("field"=>"post_status","operator"=>"="),
)
替换成
$fields=array(
'start_time'=> array("field"=>"post_date","operator"=>">"),
'end_time' => array("field"=>"post_date","operator"=>"<"),
'status' => array("field"=>"post_status","operator"=>"="),
'recommended' => array("field"=>"recommended","operator"=>">"),
'istop' => array("field"=>"istop","operator"=>">"),
'keyword' => array("field"=>"post_title","operator"=>"like"),
);
0.话题发布后没及时显示,请联系官方QQ群管理;
1.话题支持代码,qq截屏直接粘贴,和QQ群一样;
2.问题描述清,比如服务器版本,程序版本;
3.能上代码,就不用文字;
4.把问题发到话题后再发QQ群;
5.如果感觉回复者解答的不错,可以发红包!
6.多帮助别人也是对自己的锻炼!
7.付费讨论中只有提问者和付费用户才可以查看回复
1.评论积分+1;每天最多10次奖励
2.发布话题积分+1;每天最多5次奖励
3.垃圾评论积分-500;
4.黄色,暴力,违反我国法律评论直接封号