Пример #1
0
 public function orderAction()
 {
     $condition = array('order_time' => reqstr('order_time', ''), 'order_number' => reqstr('order_number', ''), 'order_state' => reqstr('order_state', ''));
     $page = reqnum("page", 1);
     $pagesize = reqnum("pagesize", 10);
     $model = new Psys_StationModel();
     $data = $model->orderCount($page, $pagesize, $condition);
     self::inidate($data['rows'][0]['rows'], $page, $pagesize, count($data));
     $this->smarty->assign('order_time', $condition['order_time']);
     $this->smarty->assign('order_number', $condition['order_number']);
     $this->smarty->assign('order_state', $condition['order_state']);
     //$this->smarty->assign('train_number',$condition['train_number']);
     //$this->smarty->assign('seat_name',$condition['seat_name']);
     $this->smarty->assign('data', $data);
     $this->forward = 'order';
 }