己方公司新增搜索项目

master
chenzhi 4 years ago
parent e0b588be11
commit ca551b9c50

@ -711,10 +711,9 @@ class ToolController extends ThinkController {
$parameter['id'] = $id; $parameter['id'] = $id;
} }
if (isset($_REQUEST['status']) && $_REQUEST['status'] !== '') {
$status = intval($_REQUEST['status']); if (isset($_REQUEST['partner']) && $_REQUEST['partner'] !== '') {
$map['tab_company_info.status'] = $status; $map['p.partner'] = ["like","%{$_REQUEST['partner']}%"];
$parameter['status'] = $status;
} }
$page = intval(I('get.p', 0)); $page = intval(I('get.p', 0));
@ -733,6 +732,7 @@ class ToolController extends ThinkController {
/* 查询记录总数 */ /* 查询记录总数 */
$count = $model $count = $model
->alias('p')
->where($map) ->where($map)
->count(); ->count();

@ -42,23 +42,19 @@
<a class="ajax-post confirm " target-form="ids" url="{:U('company_del')}"><span class="button_icon button_icon2"></span>删除</a> <a class="ajax-post confirm " target-form="ids" url="{:U('company_del')}"><span class="button_icon button_icon2"></span>删除</a>
</div> </div>
</div> </div>
<!-- <div class="jssearch fl cf search_list" >--> <div class="jssearch fl cf search_list" >
<!-- <div class="input-list search-title-box">--> <div class="input-list search-title-box">
<!-- <label>搜索:</label>--> <label>搜索:</label>
<!-- </div>--> </div>
<!-- <div class="input-list input-list-platform">--> <div class="input-list">
<!-- <select id="status" name="status" >--> <input type="text" name="partner" class="" placeholder="公司名称" value="{:I('partner')}" />&nbsp;
<!-- <option value="">显示状态</option>--> </div>
<!-- <option value="1">已开启</option>-->
<!-- <option value="0">已关闭</option>--> <div class="input-list">
<!-- </select>--> <a class="sch-btn" href="javascript:;" id="search" url="{:U('company_info','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
<!-- </div>--> </div>
</div>
<!-- <div class="input-list">-->
<!-- <a class="sch-btn" href="javascript:;" id="search" url="{:U('lists','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>-->
<!-- </div>-->
<!-- </div>-->
</div> </div>
<!-- 数据列表 --> <!-- 数据列表 -->

Loading…
Cancel
Save