function _finder_common($options) { $options['params']['sdtimecommon'] = date("Y-m-", time()) . '1/' . date("Y-m-d", time()); parent::_finder_common($options); $oAdv = $this->system->loadModel('member/advance'); $advanceStatistics = $oAdv->getAdvanceStatistics(date("Y-m-", time()) . '1', date("Y-m-d", time())); $statusStr = '当前共' . $advanceStatistics['count'] . '笔 总转入' . $advanceStatistics['import_money'] . '元 总转出' . $advanceStatistics['explode_money'] . '元 店内总余额' . $oAdv->getShopAdvance() . '元'; // $statusStr .= "<script>(function(){<{$_finder.var}>.selectAll.call(<{$_finder.var}>);})()</script>"; $this->pagedata['_finder']['statusStr'] = $statusStr; $this->pagedata['_finder']['select'] = false; }
function _finder_common($options) { $gid = $options['params']['goods_id']; if (!$options['params']['list_type']) { unset($options['params']['goods_id']); } parent::_finder_common($options); if (intval($gid) > 0) { $obj = $this->system->loadModel('goods/products'); $this->pagedata['filter'] = $obj->getFilter(array('goods_id' => intval($gid))); } }