$v) { if(preg_match("/field_(.*)/i", $k, $m)) { $fieldnames[] = vtlib_purify($m[1]); } } Mobile_Core_Session::put(Mobile_Core_Search::sessionkey($moduleInstance), $fieldnames); header("Location: index.php?action=List&module={$moduleInstance->name}&mode=search"); } else { $searchfields = Mobile_Core_Session::get(Mobile_Core_Search::sessionkey($moduleInstance)); if($searchfields === false) { $searchfields = $moduleInstance->fieldnames(); } $smarty = new vtigerCRM_Smarty(); $smarty->assign('_MODULE', $moduleInstance); $smarty->assign("_SEARCHIN", $searchfields); $smarty->display(Mobile::templatePath('SearchConfig.tpl')); } ?>