setTemplate('window/search_photos.tpl'); $iframeUrl = 'launch.php?s=list.php&type=photos&searchWnd=1'; break; case 'storesProducts': $storeID = getVal('storeID'); $inStore = getVal('inStore', null, 'inStore'); $iframeUrl = 'launch.php?s=list.php&type=storesProducts&&showOld=1&storeID='.$storeID.'&inStore='.$inStore; break; case 'orders': $customer = getVal('customer', null, ''); $filters = getVal('filters', null, []); $iframeUrl = 'launch.php?s=list.php&type=orders&searchWnd=1&customer='.urlencode($customer).'&'.http_build_query($filters); break; default: $filters = getVal('filters'); $iframeUrl = 'launch.php?s=list.php&type='.urlencode($type).'&searchWnd=1&'.http_build_query($filters); break; } if (getVal('multiSelect')) { $iframeUrl .= '&multiSelect=1'; } $pageVars['iframe_url'] = $iframeUrl; $vars['body'] = $pageVars; return $vars; } public function getData() { return []; } public function handle() { } } $search = new Search(); $search->run();