己方公司新增搜索项目

master
chenzhi 4 years ago
parent e0b588be11
commit ca551b9c50

@ -711,10 +711,9 @@ class ToolController extends ThinkController {
$parameter['id'] = $id;
}
if (isset($_REQUEST['status']) && $_REQUEST['status'] !== '') {
$status = intval($_REQUEST['status']);
$map['tab_company_info.status'] = $status;
$parameter['status'] = $status;
if (isset($_REQUEST['partner']) && $_REQUEST['partner'] !== '') {
$map['p.partner'] = ["like","%{$_REQUEST['partner']}%"];
}
$page = intval(I('get.p', 0));
@ -733,6 +732,7 @@ class ToolController extends ThinkController {
/* 查询记录总数 */
$count = $model
->alias('p')
->where($map)
->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>
</div>
</div>
<!-- <div class="jssearch fl cf search_list" >-->
<!-- <div class="input-list search-title-box">-->
<!-- <label>搜索:</label>-->
<!-- </div>-->
<!-- <div class="input-list input-list-platform">-->
<!-- <select id="status" name="status" >-->
<!-- <option value="">显示状态</option>-->
<!-- <option value="1">已开启</option>-->
<!-- <option value="0">已关闭</option>-->
<!-- </select>-->
<!-- </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 class="jssearch fl cf search_list" >
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
<div class="input-list">
<input type="text" name="partner" class="" placeholder="公司名称" value="{:I('partner')}" />&nbsp;
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('company_info','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
</div>
</div>
</div>
<!-- 数据列表 -->

Loading…
Cancel
Save