本文整理汇总了PHP中UserList::readSearch方法的典型用法代码示例。如果您正苦于以下问题:PHP UserList::readSearch方法的具体用法?PHP UserList::readSearch怎么用?PHP UserList::readSearch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserList
的用法示例。
在下文中一共展示了UserList::readSearch方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UserDataInput
if (!isset($_REQUEST[modin])) {
$modin = 1;
} else {
$modin = $_REQUEST[modin];
}
// Fetch the form instance specified by submitted modin value.
$udm = new UserDataInput($dbcon, $modin);
$udm->admin = true;
$usersearch = new UserList();
$usersearch->addModule($modin);
// Was search submitted via the web?
$sub = isset($_REQUEST['UDM_search_items']);
// Search user data.
if ($sub) {
//Search form has been submitted, assemble SQL query
$udm = $usersearch->readSearch($udm);
$usersearch->runSearch($dbcon);
$div_header_html = "<div class=\"tabpage\" id=\"tabpage_%s\">";
//1st page shows search results
if (count($usersearch->current_list) > 0) {
$pagehead = "<h2>Results from " . $udm->name . "</h2>";
$pagehead .= "<P><center>";
#<table width='400'><tr><td>";
$tabhead .= $usersearch->tab_navs();
$tabhead .= sprintf($div_header_html, "Results");
#print($usersearch->translateSearch(0, $udm);
$results_page = $usersearch->output_list();
$tabfoot = "</center></div>";
$show_div_footer = TRUE;
$formhead = sprintf($div_header_html, "Search Options");
}