本文整理汇总了PHP中search::search31_subcat30_supp31方法的典型用法代码示例。如果您正苦于以下问题:PHP search::search31_subcat30_supp31方法的具体用法?PHP search::search31_subcat30_supp31怎么用?PHP search::search31_subcat30_supp31使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::search31_subcat30_supp31方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: search_handler
//.........这里部分代码省略.........
$result = $sear->search11_subcat11_supp11($sub_category, $supplier, $searchkey1, $lim1, $lim2);
}
}
}
if (isset($search2)) {
if (empty($searchkey2)) {
if ($category == '*' && $supplier == '*') {
$count = $sear->count_active_pro_list();
$result = $sear->search20_subcat20_supp20($lim1, $lim2);
}
if ($category != '*' && $supplier == '*') {
$count = $sear->count_search20_subcat21_supp20($category);
$result = $sear->search20_subcat21_supp20($category, $lim1, $lim2);
}
if ($category == '*' && $supplier != '*') {
$count = $sear->count_search20_subcat20_supp21($supplier);
$result = $sear->search20_subcat20_supp21($supplier, $lim1, $lim2);
}
if ($category != '*' && $supplier != '*') {
$count = $sear->count_search20_subcat21_supp21($category, $supplier);
$result = $sear->search20_subcat21_supp21($category, $supplier, $lim1, $lim2);
}
}
if (!empty($searchkey2)) {
if ($category == '*' && $supplier == '*') {
$count = $sear->count_search21_subcat20_supp20($searchkey2);
$result = $sear->search21_subcat20_supp20($searchkey2, $lim1, $lim2);
}
if ($category != '*' && $supplier == '*') {
$count = $sear->count_search21_subcat21_supp20($category, $searchkey2);
$result = $sear->search21_subcat21_supp20($category, $searchkey2, $lim1, $lim2);
}
if ($category == '*' && $supplier != '*') {
$count = $sear->count_search21_subcat20_supp21($supplier, $searchkey2);
$result = $sear->search21_subcat20_supp21($supplier, $searchkey2, $lim1, $lim2);
}
if ($category != '*' && $supplier != '*') {
$count = $sear->count_search21_subcat21_supp21($category, $supplier, $searchkey2);
$result = $sear->search21_subcat21_supp21($category, $supplier, $searchkey2, $lim1, $lim2);
}
}
}
//archived search
if (isset($search3)) {
if (empty($searchkey3)) {
if ($category == '*' && $supplier == '*') {
$count = $sear->count_archived_pro_list();
$result = $sear->search30_subcat30_supp30($lim1, $lim2);
}
if ($category != '*' && $supplier == '*') {
$count = $sear->count_search30_subcat31_supp30($category);
$result = $sear->search30_subcat31_supp30($category, $lim1, $lim2);
}
if ($category == '*' && $supplier != '*') {
$count = $sear->count_search30_subcat30_supp31($supplier);
$result = $sear->search30_subcat30_supp31($supplier, $lim1, $lim2);
}
if ($category != '*' && $supplier != '*') {
$count = $sear->count_search30_subcat31_supp31($category, $supplier);
$result = $sear->search30_subcat31_supp31($category, $supplier, $lim1, $lim2);
}
}
if (!empty($searchkey3)) {
if ($category == '*' && $supplier == '*') {
$count = $sear->count_search31_subcat30_supp30($searchkey3);
$result = $sear->search31_subcat30_supp30($searchkey3, $lim1, $lim2);
}
if ($category != '*' && $supplier == '*') {
$count = $sear->count_search31_subcat31_supp30($category, $searchkey3);
$result = $sear->search31_subcat31_supp30($category, $searchkey3, $lim1, $lim2);
}
if ($category == '*' && $supplier != '*') {
$count = $sear->count_search31_subcat30_supp31($supplier, $searchkey3);
$result = $sear->search31_subcat30_supp31($supplier, $searchkey3, $lim1, $lim2);
}
if ($category != '*' && $supplier != '*') {
$count = $sear->count_search31_subcat31_supp31($category, $supplier, $searchkey3);
$result = $sear->search31_subcat31_supp31($category, $supplier, $searchkey3, $lim1, $lim2);
}
}
}
$count = mysqli_fetch_row($count);
$count = $count[0];
$noPag = $count / $stand;
if ($noPag == '0') {
$noPag = 1;
}
if ($noPag == '0') {
$noPag = 1;
}
if ($count < $stand) {
$noPag = 1;
} elseif ($count % $stand == true) {
$noPag += 1;
}
if ($count < $lim2) {
$lim2 = $count;
}
return $y = array($result, $count, $lim2, $noPag);
}