| @@ 66-91 (lines=26) @@ | ||
| 63 | ||
| 64 | $searchForm->handleRequest($request);  | 
                                |
| 65 | ||
| 66 |             if ($searchForm->isValid()) { | 
                                |
| 67 | $searchData = $searchForm->getData();  | 
                                |
| 68 | ||
| 69 | // paginator  | 
                                |
| 70 | $qb = $app['eccube.repository.customer']->getQueryBuilderBySearchData($searchData);  | 
                                |
| 71 | $page_no = 1;  | 
                                |
| 72 | ||
| 73 | $event = new EventArgs(  | 
                                |
| 74 | array(  | 
                                |
| 75 | 'form' => $searchForm,  | 
                                |
| 76 | 'qb' => $qb,  | 
                                |
| 77 | ),  | 
                                |
| 78 | $request  | 
                                |
| 79 | );  | 
                                |
| 80 | $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_CUSTOMER_INDEX_SEARCH, $event);  | 
                                |
| 81 | ||
| 82 | $pagination = $app['paginator']()->paginate(  | 
                                |
| 83 | $qb,  | 
                                |
| 84 | $page_no,  | 
                                |
| 85 | $page_count  | 
                                |
| 86 | );  | 
                                |
| 87 | ||
| 88 | // sessionのデータ保持  | 
                                |
| 89 |                 $session->set('eccube.admin.customer.search', $searchData); | 
                                |
| 90 |                 $session->set('eccube.admin.customer.search.page_no', $page_no); | 
                                |
| 91 | }  | 
                                |
| 92 |         } else { | 
                                |
| 93 |             if (is_null($page_no) && $request->get('resume') != Constant::ENABLED) { | 
                                |
| 94 | // sessionを削除  | 
                                |
| @@ 69-94 (lines=26) @@ | ||
| 66 | ||
| 67 | $searchForm->handleRequest($request);  | 
                                |
| 68 | ||
| 69 |             if ($searchForm->isValid()) { | 
                                |
| 70 | $searchData = $searchForm->getData();  | 
                                |
| 71 | ||
| 72 | // paginator  | 
                                |
| 73 | $qb = $app['eccube.repository.order']->getQueryBuilderBySearchDataForAdmin($searchData);  | 
                                |
| 74 | ||
| 75 | $event = new EventArgs(  | 
                                |
| 76 | array(  | 
                                |
| 77 | 'form' => $searchForm,  | 
                                |
| 78 | 'qb' => $qb,  | 
                                |
| 79 | ),  | 
                                |
| 80 | $request  | 
                                |
| 81 | );  | 
                                |
| 82 | $app['eccube.event.dispatcher']->dispatch(EccubeEvents::ADMIN_ORDER_INDEX_SEARCH, $event);  | 
                                |
| 83 | ||
| 84 | $page_no = 1;  | 
                                |
| 85 | $pagination = $app['paginator']()->paginate(  | 
                                |
| 86 | $qb,  | 
                                |
| 87 | $page_no,  | 
                                |
| 88 | $page_count  | 
                                |
| 89 | );  | 
                                |
| 90 | ||
| 91 | // sessionのデータ保持  | 
                                |
| 92 |                 $session->set('eccube.admin.order.search', $searchData); | 
                                |
| 93 |                 $session->set('eccube.admin.order.search.page_no', $page_no); | 
                                |
| 94 | }  | 
                                |
| 95 |         } else { | 
                                |
| 96 |             if (is_null($page_no) && $request->get('resume') != Constant::ENABLED) { | 
                                |
| 97 | // sessionを削除  | 
                                |