=', strtotime($add_time_from)); } if (!empty($add_time_to)) { $condition[] = array('sellerlog_time', '<=', strtotime($add_time_to) + 86399); } $log_list = $sellerlog_model->getSellerlogList($condition, 10, 'sellerlog_id desc'); View::assign('log_list', $log_list); View::assign('show_page', $sellerlog_model->page_info->render()); /* 设置卖家当前菜单 */ $this->setSellerCurMenu('sellerlog'); /* 设置卖家当前栏目 */ $this->setSellerCurItem('log_list'); return View::fetch($this->template_dir . 'seller_log'); } /** * 用户中心右边,小导航 * * @param string $menu_key 当前导航 * @return */ public function getSellerItemList() { $menu_array = array(); $menu_array[] = array( 'name' => 'log_list', 'text' => lang('account_log'), 'url' => (string) url('Sellerlog/log_list') ); return $menu_array; } }