<span class="search-res">{$hit_row}</span> {$lang_comments} <span class="search-res">{$disp_page} - {$disp_rows}</span> / <span class="search-res">{$hit_row}</span> </p> EOD; $flip_link = display_page_flip(); $contents .= $flip_link; // display topic list table while ($row = mysql_fetch_array($res)) { // check the number of replies /* $rep_sql = "SELECT COUNT(`id`) FROM `{$forum_table}` WHERE `tid` = '{$row['tid']}' AND `parent_key` = '0' AND `trash` = '0'"; $rep_res = mysql_query($rep_sql); $rep_row = mysql_fetch_array($rep_res); */ $row = convert_to_utf8($row); $contents .= display_forum_log_box($row); } //$contents .= $flip_link; // Preparation for the form template if (isset($_GET['qid'])) { $qid = intval($_GET['qid']); $sql = "SELECT `title`, `refer_id`, `comment` FROM `{$forum_table}` WHERE `tid` = '{$tid}' AND `id` = '{$qid}'"; $res = mysql_query($sql); $row = mysql_fetch_array($res); $row = convert_to_utf8($row); // generate quote box tags if (isset($qid)) { if (preg_match('/\\[q2\\]/', $row['comment'])) { $row['comment'] = '[q3]' . $row['comment'] . '[/q3]'; } elseif (preg_match('/\\[q1\\]/', $row['comment'])) { $row['comment'] = '[q2]' . $row['comment'] . '[/q2]';
<p class="search-res"> <span class="search-res">{$hit_row}</span>{$result_msg} <span class="search-res">{$disp_page} - {$disp_rows}</span> / <span class="search-res">{$hit_row}</span> </p> </div><!-- End .section --> EOD; } //================================================= // SHOW THE RESULTS! //================================================= if ($hit_row) { $flip_link = display_page_flip(); $section_content = ''; while ($row = mysql_fetch_array($res)) { $row = convert_to_utf8($row); $section_content .= display_forum_log_box($row); } } else { $flip_link = ''; $section_content = '<h3>' . $lang['no_matches'] . "</h3>"; } } } else { $hit_result = ''; $flip_link = ''; $section_content = '<h2>' . $lang['search'] . "</h2>\n" . '<p>' . $lang['status_idle'] . "</p>\n"; } $contents = <<<EOD {$hit_result} <div class="section"> {$flip_link}{$section_content}{$flip_link}