\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $form =new XTemplate ('modules/Users/Popup_Users_picker.html'); $GLOBALS['log']->debug("using file modules/Users/Popup_Users_picker.html"); $form->assign("MOD", $mod_strings); $form->assign("APP", $app_strings); $form->assign("MODULE_NAME", $currentModule); $form->assign("parent_id", $parent_id); $form->assign("parent_name", $parent_name); if (isset($_REQUEST['form_submit'])) $form->assign("FORM_SUBMIT", $_REQUEST['form_submit']); $form->assign("FORM", $from_form); $form->assign("RECORD_VALUE", $_REQUEST['record']); if (isset($_REQUEST['first_name'])) $last_search['FIRST_NAME'] = $_REQUEST['first_name']; if (isset($_REQUEST['last_name'])) $last_search['LAST_NAME'] = $_REQUEST['last_name']; if (isset($_REQUEST['user_name'])) $last_search['USER_NAME'] = $_REQUEST['user_name']; insert_popup_header($theme); // Quick search. echo "
"; echo get_form_header($mod_strings['LBL_SEARCH_FORM_TITLE'], "", false); $form->parse("main.SearchHeader"); $form->out("main.SearchHeader"); $form->parse("main.SearchHeaderEnd"); $form->out("main.SearchHeaderEnd"); // Reset the sections that are already in the page so that they do not print again later. $form->reset("main.SearchHeader"); $form->reset("main.SearchHeaderEnd"); $ListView = new ListView(); $ListView->setXTemplate($form); $ListView->setHeaderTitle($current_module_strings['LBL_LIST_FORM_TITLE']); $ListView->setHeaderText($button); $ListView->setQuery($where, "", "user_name", "USER"); $ListView->setModStrings($current_module_strings); $ListView->processListViewMulti($seed_object, "main", "USER"); insert_popup_footer(); ?>