|
|
@ -21,11 +21,13 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
$model = M($this->modelName, 'tab_');
|
|
|
|
$model = M($this->modelName, 'tab_');
|
|
|
|
$map = [];
|
|
|
|
$map = [];
|
|
|
|
$id = intval(I('id', 0));
|
|
|
|
$id = intval(I('id', 0));
|
|
|
|
|
|
|
|
$company_name = trim(I('company_name'));
|
|
|
|
if (!empty($id)) {
|
|
|
|
if (!empty($id)) {
|
|
|
|
$map['tab_promote_company.id'] = $id;
|
|
|
|
$map['tab_promote_company.id'] = $id;
|
|
|
|
$parameter['id'] = $id;
|
|
|
|
$parameter['id'] = $id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if($company_name)
|
|
|
|
|
|
|
|
$map['tab_promote_company.company_name'] = array('like',"%{$company_name}%");
|
|
|
|
if (isset($_REQUEST['status']) && $_REQUEST['status'] !== '') {
|
|
|
|
if (isset($_REQUEST['status']) && $_REQUEST['status'] !== '') {
|
|
|
|
$status = intval($_REQUEST['status']);
|
|
|
|
$status = intval($_REQUEST['status']);
|
|
|
|
$map['tab_promote_company.status'] = $status;
|
|
|
|
$map['tab_promote_company.status'] = $status;
|
|
|
@ -69,7 +71,7 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
$this->assign('listData', $data);
|
|
|
|
$this->assign('listData', $data);
|
|
|
|
$this->assign('count', $count);
|
|
|
|
$this->assign('count', $count);
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Partner/lists'])->find());
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Partner/lists'])->find());
|
|
|
|
$this->meta_title = '推广公司管理';
|
|
|
|
$this->meta_title = '推广公司';
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|