Example #1
0
 public function view_ebayFeedbackRequestChange()
 {
     $account = isset($_GET['account']) ? post_check($_GET['account']) : '';
     $ebayUserId = isset($_GET['ebayUserId']) ? post_check($_GET['ebayUserId']) : '';
     $modify_status = isset($_GET['modify_status']) ? post_check($_GET['modify_status']) : '';
     $add_start_time = isset($_GET['add_start_time']) ? post_check($_GET['add_start_time']) : '';
     $add_end_time = isset($_GET['add_end_time']) ? post_check($_GET['add_end_time']) : '';
     $this->smarty->assign('account', $account);
     $this->smarty->assign('ebayUserId', $ebayUserId);
     $this->smarty->assign('modify_status', $modify_status);
     $this->smarty->assign('add_start_time', $add_start_time);
     $this->smarty->assign('add_end_time', $add_end_time);
     $where = 'where is_delete = 0';
     if ($account != '') {
         $where .= " and account = '{$account}'";
     }
     if ($ebayUserId != '') {
         $where .= " and ebayUserId = '{$ebayUserId}'";
     }
     if ($modify_status != '') {
         $where .= " and modifyStatus = '{$modify_status}'";
     }
     if ($add_start_time != '') {
         $where .= " and addTime >= '" . strtotime($add_start_time) . "'";
     }
     if ($add_end_time != '') {
         $where .= " and addTime <= '" . strtotime($add_end_time) . "'";
     }
     $FBAct = new EbayFeedbackAct();
     $total = $FBAct->act_getRequestChangeNum($where);
     $num = 50;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= " order by id desc " . $page->limit;
     $fbkList = $FBAct->act_getRequestChangeList('*', $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n = 1;
         } else {
             $n = (intval($_GET['page']) - 1) * $num + 1;
         }
     } else {
         $n = 1;
     }
     if ($total > $num) {
         //输出分页显示
         $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
     } else {
         $show_page = $page->fpage(array(0, 2, 3));
     }
     $this->smarty->assign('show_page', $show_page);
     $this->smarty->assign('fbkList', $fbkList);
     $accAct = new AccountAct();
     $accountList = $accAct->act_getAccountList('id,account', 'where platformId = 1 and is_delete = 0');
     $this->smarty->assign('accountList', $accountList);
     $this->smarty->assign('state', $state);
     $this->smarty->assign('secnev', '1');
     //二级导航
     $this->smarty->assign('module', 'SKU等待领取');
     $this->smarty->assign('username', $_SESSION['userName']);
     //$navarr = array("<a href='index.php?mod=FeedbackManage&act=fbkList'>卖家评价</a>",">>","评价列表");
     //$this->smarty->assign('navarr',$navarr);
     $this->smarty->display('ebayFeedbackRequestChange.htm');
 }