|
@@ -36,6 +36,7 @@ class Customsdeclaration extends Start_Controller {
|
|
|
$ename = $this->input->post('ename',true);
|
|
|
$zname = $this->input->post('zname',true);
|
|
|
$bname = $this->input->post('bname',true);
|
|
|
+ $is_show = $this->input->post('is_show',true);
|
|
|
$where = "1=1 ";
|
|
|
if($ename)
|
|
|
{
|
|
@@ -49,6 +50,9 @@ class Customsdeclaration extends Start_Controller {
|
|
|
{
|
|
|
$where .= " and bname = '$bname'";
|
|
|
}
|
|
|
+ if($is_show){
|
|
|
+ $where .= " and is_show = '$is_show' ";
|
|
|
+ }
|
|
|
//数据排序
|
|
|
$order_str = "px asc";
|
|
|
if(empty($page))
|
|
@@ -61,7 +65,11 @@ class Customsdeclaration extends Start_Controller {
|
|
|
$start = ($page - 1)*$perpage;
|
|
|
}
|
|
|
//取得信息列表
|
|
|
- $info_list = $this->customsdeclaration->find_all($where,'id,ename,zname,bname,px',$order_str,$start,$perpage);
|
|
|
+ $info_list = $this->customsdeclaration->find_all($where,'id,ename,zname,bname,px,is_show',$order_str,$start,$perpage);
|
|
|
+ foreach ($info_list as $k => $v)
|
|
|
+ {
|
|
|
+ $info_list[$k]['is_show'] = $v['is_show'] == 1 ? '显示' : '隐藏';
|
|
|
+ }
|
|
|
$total = $this->customsdeclaration->find_count($where);
|
|
|
$pagenum = ceil($total/$perpage);
|
|
|
$over = $total-($start+$perpage);
|