assign("POPUPTYPE",$_REQUEST['popuptype']); $log->debug("using file modules/Users/Popup_picker.html"); } else { $form =new XTemplate ('modules/Users/'.$_REQUEST['html'].'.html'); $log->debug("using file modules/Users/".$_REQUEST['html'].'.html'); $log->debug("_REQUEST['html'] is ".$_REQUEST['html']); } $form->assign("MOD", $mod_strings); $form->assign("APP", $app_strings); // the form key is required if(!isset($_REQUEST['form'])) die("Missing 'form' parameter"); // This code should always return an answer. // The form name should be made into a parameter and not be hard coded in this file. if(isset($_REQUEST['form_submit']) && $_REQUEST['popuptype'] == 'detailview' && $_REQUEST['form_submit'] == 'true') { $the_javascript = "\n"; } elseif ($_REQUEST['form'] == 'UsersEditView') { $the_javascript = "\n"; } else // ($_REQUEST['form'] == 'EditView') { $the_javascript = "\n"; } $form->assign("SET_RETURN_JS", $the_javascript); $form->assign("THEME", $theme); $form->assign("IMAGE_PATH", $image_path); $form->assign("MODULE_NAME", $currentModule); $form->assign("FORM_SUBMIT", $_REQUEST['form_submit']); $form->assign("FORM", $_REQUEST['form']); insert_popup_header($theme); // Quick search. echo "
"; echo get_form_header($mod_strings['LBL_SEARCH_FORM_TITLE'], "", false); 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']; if (isset($last_search)) $form->assign("LAST_SEARCH", $last_search); $form->parse("main.SearchHeader"); $form->out("main.SearchHeader"); echo get_form_footer(); $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"); // start the form before the form header to avoid creating a gap in IE $button = "\n"; $button .= ""; /*if ($_REQUEST['form_submit'] != 'true') $button .= "\n"; $button .= "\n"; $button .= "
 
\n"; */ $ListView = new ListView(); $ListView->setXTemplate($form); $ListView->setHeaderTitle($mod_strings['LBL_LIST_FORM_TITLE']); //$ListView->setHeaderText($button); $ListView->setQuery($where, "", "user_name", "USER"); $ListView->setModStrings($mod_strings); $ListView->processListView($seed_object, "main", "USER"); ?>