Example #1
0
 /**
  * [订单列表展示]
  * @return [type] [description]
  */
 public function indexAction()
 {
     if (!$this->validFlag) {
         $page = new Page($this->order->getTotal(), self::NUM_PER_PAGE, 1);
     } else {
         $page = new Page($this->order->getTotal($this->_sanReq), self::NUM_PER_PAGE, isset($this->_sanReq['page']) ? $this->_sanReq['page'] : 1);
     }
     $this->view->setVars(array('list' => $this->order->orderList($page->firstRow >= 0 ? $page->firstRow : 0, $page->listRows, $this->_sanReq), 'page' => $page->createLink()));
 }