ecstore后台订单分类。

public function index(){
        if($_GET['action'] == 'export') $this->_end_message = '导出订单';
		//普通订单列表
		$sql="select o.order_id,m.member_id,m.verify_id from sdb_b2c_members m RIGHT JOIN sdb_b2c_orders o ON m.member_id=o.member_id WHERE m.verify_id='' OR o.member_id='0'";
		$Ord=kernel::database()->select($sql);
		 $ords = '';
            foreach($Ord as $gk=>$gv){
                $ords[]=$gv['member_id'];
            }
        $this->finder('b2c_mdl_orders',array(
            'title'=>app::get('b2c')->_('普通用户订单列表'),
            'allow_detail_popup'=>true,
            'base_filter'=>array('order_refer'=>'local','disabled'=>'false','member_id'=>$ords) ,
            'use_buildin_export'=>true,
            'actions'=>array(
                            array('label'=>app::get('b2c')->_('添加订单'),'href'=>'index.php?app=b2c&ctl=admin_order&act=addnew','target'=>'_blank','icon'=>'sss.ccc'),
                            array('label'=>app::get('b2c')->_('打印样式'),'target'=>'_blank','href'=>'index.php?app=b2c&ctl=admin_order&act=showPrintStyle'),
                            array('label'=>app::get('b2c')->_('打印选定订单'),'submit'=>'index.php?app=b2c&ctl=admin_order&act=toprint','target'=>'_blank'),
                        ),'use_buildin_set_tag'=>true,'use_buildin_recycle'=>false,'use_buildin_filter'=>true,'use_view_tab'=>true,
            ));

    }

 

你可能感兴趣的:(store)