info("Here is the where clause for the list view: $where"); } if (!isset($_REQUEST['search_form']) || $_REQUEST['search_form'] != 'false') { // Stick the form header out there. $search_form=new XTemplate ('modules/Users/SearchForm.html'); $search_form->assign("MOD", $current_module_strings); $search_form->assign("APP", $app_strings); if (isset($first_name)) $search_form->assign("FIRST_NAME", $_REQUEST['first_name']); if (isset($last_name)) $search_form->assign("LAST_NAME", $_REQUEST['last_name']); if (isset($companyName)) $search_form->assign("USER_NAME", $_REQUEST['user_name']); $search_form->assign("JAVASCRIPT", get_clear_form_js()); echo get_form_header($current_module_strings['LBL_SEARCH_FORM_TITLE'], "", false); if (isset($_REQUEST['advanced']) && $_REQUEST['advanced'] == 'true') { if(isset($title)) $search_form->assign("TITLE", $title); if(isset($phone)) $search_form->assign("PHONE", $phone); if(isset($email)) $search_form->assign("EMAIL", $email); if(isset($yahoo_id)) $search_form->assign("YAHOO_ID", $yahoo_id); if(isset($is_admin)) $search_form->assign("IS_ADMIN", 'checked'); if(isset($department)) $search_form->assign("DEPARTMENT", $department); if(isset($address_street)) $search_form->assign("ADDRESS_STREET", $address_street); if(isset($address_city)) $search_form->assign("ADDRESS_CITY", $address_city); if(isset($address_state)) $search_form->assign("ADDRESS_STATE", $address_state); if(isset($address_postalcode)) $search_form->assign("ADDRESS_POSTALCODE", $address_postalcode); if(isset($address_country)) $search_form->assign("ADDRESS_COUNTRY", $address_country); $user_status_dom = & $app_list_strings['user_status_dom']; array_unshift($user_status_dom, ''); if (isset($status)) $search_form->assign("STATUS_OPTIONS", get_select_options_with_id($user_status_dom, $status)); else $search_form->assign("STATUS_OPTIONS", get_select_options_with_id($user_status_dom, '')); $search_form->parse("advanced"); $search_form->out("advanced"); } else { $search_form->parse("main"); $search_form->out("main"); } echo get_form_footer(); echo "\n
\n"; } $button = "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "\n"; $button .= "
\n"; $ListView = new ListView(); $ListView->initNewXTemplate('modules/Users/ListView.html',$current_module_strings); $ListView->setHeaderTitle($current_module_strings['LBL_LIST_FORM_TITLE']); $ListView->setHeaderText($button); $ListView->setQuery($where, "", "first_name, last_name", "USER"); $ListView->processListView($seedUser, "main", "USER"); ?>