switch ($action) { case "search": $o->searchchar = $_GET['filter']; include_once "menu.php"; //$o->getIncludeFileMenu(); $o->filterstring = $_GET["filterstring"]; if ($o->industry_id == "") { $o->industry_id = 0; } if ($o->bpartnergroup_id == "") { $o->bpartnergroup_id = 0; } $o->bpartnergroupctrl = $bpctrl->getSelectBPartnerGroup($o->bpartnergroup_id, 'Y'); $o->industryctrl = $bpctrl->getSelectIndustry($o->industry_id, 'Y'); $o->includeGeneralFile(); $o->getBpartnerSearchForm(); $o->getShowResultForm(); require XOOPS_ROOT_PATH . '/footer.php'; break; case "searchbpartner": //return xml table to grid $wherestring = " WHERE bp.bpartner_id>0"; $o->showSearchResult($wherestring); exit; //after return xml shall not run more code. break; case "sendemail": include "../simantz/class/SendMessage.php.inc"; include "../simantz/class/Mail.php"; $m = new SendMessage(); $o->employeeselected = $_POST['employeeselected'];