联系官方销售客服
1835022288
028-61286886
后台模块草稿箱怎么加入一个搜索功能?
我从comment_index里把搜索代码复制过来,但是没办法读取到搜索条件啊?
<div class="mytopsearch"> <form method="post" class="row" action="" name="searchform" id="searchform"> <input name="search" id="search" type="hidden" value="1" /> {if $is_review && $index} <div class="col-md-12"> {loop $review.option $i $t} {if $t.use} {$t.name}:{$index['sort'.$i]} {/if} {/loop} {fc_lang('平均分')}:{$index.avgsort} </div> <div class="bk10"></div> {/if} <div class="col-md-12"> <label> <select name="data[field]" class="form-control"> {loop $field $t} <option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option> {/loop} </select> </label> <label><i class="fa fa-caret-right"></i></label> <label style="padding-right: 20px;"><input type="text" class="form-control" placeholder="{fc_lang('多个Id可以用“,”分隔')}" value="{$param['keyword']}" name="data[keyword]" /></label> <label>{fc_lang('录入时间')} :</label> <label>{dr_field_input('start', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.start)}</label> <label><i class="fa fa-minus"></i></label> <label style="margin-right:10px">{dr_field_input('end', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.end)}</label> <label><button type="submit" class="btn green btn-sm" name="submit" > <i class="fa fa-search"></i> {fc_lang('搜索')}</button></label> </div> </form> </div>
结果是:
选择了时间搜索后提示
请问正确的在草稿箱中添加搜索,是怎么处理的?