// image thumb } elseif ($homeimgthumb == 2) { // image file $img_src = NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/' . $homeimgfile; } elseif ($homeimgthumb == 3) { // image url $img_src = $homeimgfile; } elseif (!empty($show_no_image)) { // no image $img_src = NV_BASE_SITEURL . $show_no_image; } else { $img_src = ''; } $array_content[] = array('id' => $id, 'title' => $title, 'alias' => $alias, 'catid' => $catid, 'hometext' => $hometext, 'author' => $author, 'publtime' => $publtime, 'homeimgfile' => $img_src, 'sourceid' => $sourceid); } $contents .= search_result_theme($key, $numRecord, $per_page, $page, $array_content, $catid); } if (empty($key)) { $page_title = $lang_module['search_title'] . ' ' . NV_TITLEBAR_DEFIS . ' ' . $module_info['custom_title']; } else { $page_title = $key . ' ' . NV_TITLEBAR_DEFIS . ' ' . $lang_module['search_title']; if ($page > 2) { $page_title .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $lang_global['page'] . ' ' . $page; } $page_title .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $module_info['custom_title']; } $key_words = $description = 'no'; $mod_title = isset($lang_module['main_title']) ? $lang_module['main_title'] : $module_info['custom_title']; include NV_ROOTDIR . '/includes/header.php'; echo nv_site_theme($contents); include NV_ROOTDIR . '/includes/footer.php';
} else { $mods = $array_mod; $limit = 3; $is_generate_page = false; } $dbkeyword = $db->dblikeescape($search['key']); $dbkeywordhtml = $db->dblikeescape(nv_htmlspecialchars($search['key'])); $logic = $search['logic'] ? 'AND' : 'OR'; $key = $search['key']; foreach ($mods as $m_name => $m_values) { $page = $search['page']; $num_items = 0; $result_array = array(); include NV_ROOTDIR . '/modules/' . $m_values['module_file'] . '/search.php'; if (!empty($num_items) and !empty($result_array)) { $search['content'] .= search_result_theme($result_array, $m_name, $m_values['custom_title'], $search, $is_generate_page, $limit, $num_items); } } if (empty($search['content'])) { $search['content'] = $lang_module['search_none'] . ' "' . $search['key'] . '"'; } } } $contents = search_main_theme($is_search, $search, $array_mod); $page_title = $module_info['custom_title']; if (!empty($search['key'])) { $page_title .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $search['key']; if ($search['page'] > 1) { $page_title .= ' ' . NV_TITLEBAR_DEFIS . ' ' . $lang_global['page'] . ' ' . $search['page']; } }