当我根据“状态”搜索详细信息时,它正在正确搜索并保持检查状态。但问题是,当我通过点击分页编号转到下一页然后检查单选按钮被删除。单击分页编号后,我想保持搜索单选按钮。请问有人帮我解决这个问题吗?
这是我的搜索表单和一个屏幕截图 -
<form class="form-inline" role="form">
<div class="form-group">
<label class="filter-col" for="pref-search">Search:</label>
<input type="text" name="keyword" class="form-control1" value="{{ ($keyword) ? $keyword : '' }}" placeholder="Search by keyword" id="pref-search">
</div>
<div class="form-group">
<label for="radio" class="filter-col">Status:</label>
<div class="col-sm-8 form-control1">
<div class="radio-inline">
<label>
<input name="status" {{ ($cstatus == '') ? 'checked="checked"' : '' }} type="radio" value="">
All</label>
</div>
<div class="radio-inline">
<label>
<input name="status" {{ ($cstatus == 'open') ? 'checked="checked"' : '' }} type="radio" value="open">
Open</label>
</div>
<div class="radio-inline">
<label>
<input name="status" {{ ($cstatus == 'closed') ? 'checked="checked"' : '' }} type="radio" value="closed">
Closed</label>
</div>
</div>
</div>
<div class="form-group" style="float: right;">
<button class="btn btn-primary" type="submit">Search</button>
</div>
</form>