當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UserList::readSearch方法代碼示例

本文整理匯總了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");
    }
開發者ID:radicaldesigns,項目名稱:amp,代碼行數:31,代碼來源:modinput4_search.php


注:本文中的UserList::readSearch方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。