Пример #1
0
        $disp_page = $page + 1;
        $disp_rows = $page + $rows;
        $hit_result = <<<EOD
<div class="section">
<h2 id="archive-title">{$archive_title}</h2>
<p class="search-res">
{$lang['categ_list']}<span class="search-res">{$hit_row}</span>{$lang['hit_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($field = 'category', $keyword = $key, $case = '1');
            //------------- WITH-DATE-TITLE MODE --------------
            if ($cfg['show_date_title'] == 'yes') {
                $row = mysql_fetch_array($res);
                format_date($row_name = 'date');
                $title_date = $formatted_date;
                $section_content = '<h2 class="date-title">' . $title_date . "</h2>\n";
                do {
                    format_date($row_name = 'date');
                    $tmp_date = $formatted_date;
                    if ($title_date != $tmp_date) {
                        $title_date = $tmp_date;
                        $section_content .= '</div><!-- End .section -->' . "\n\n" . '<div class="section">' . "\n" . '<h2 class="date-title">' . $title_date . "</h2>\n";
                    }
                    $row = convert_to_utf8($row);
                    $section_content .= display_article_box($row);
Пример #2
0
 if ($session_status == 'on') {
     $contents .= '<th class="mod-del" summary="Modify or Delte">' . $lang['mod_del'] . '</th>' . "\n";
 } else {
     $contents .= '';
 }
 $contents .= "</tr>\n";
 while ($row = mysql_fetch_array($res)) {
     $row = convert_to_utf8($row);
     $contents .= "<tr>\n" . '<td>' . $row['title'] . "</td>\n" . '<td>' . $row['user_name'] . "</td>\n" . '<td class="last-modified">' . $row['mod'] . "</td>\n";
     if ($session_status == 'on') {
         $contents .= '<td class="colored">' . "\n" . '<form id="del-topic" method="post" action="./modify.php">' . "\n" . '<input type="hidden" name="tid" value="' . $row['tid'] . '" />' . "\n" . '<input type="hidden" name="id" value="' . $row['id'] . '" />' . "\n" . '<input type="submit" value="' . $lang['mod'] . '" />' . "\n" . "</form>\n" . '<form id="del-topic" method="post" action="./delete.php">' . "\n" . '<input type="hidden" name="from" value="trash" />' . "\n" . '<input type="hidden" name="tid" value="' . $row['tid'] . '" />' . "\n" . '<input type="hidden" name="id" value="' . $row['id'] . '" />' . "\n" . '<input type="submit" value="' . $lang['delete'] . '" />' . "\n" . "</form>\n" . "</td>\n";
     }
     $contents .= "</tr>\n";
 }
 $contents .= "</table>\n<br />\n";
 $contents .= display_page_flip();
 if ($session_status == 'on') {
     $trash_sql = "SELECT COUNT(`id`) from `{$forum_table}` WHERE `trash` = '1'";
     $trash_res = mysql_query($trash_sql);
     //                $trash_row = mysql_num_rows($trash_res);
     $trash_row = mysql_fetch_array($trash_res);
     if ($trash_row[0] != 0) {
         $trash_status = 'trash-full';
         $trash_str = '<strong>Trash ';
         $trash_num = '(' . $trash_row[0] . ')</strong>';
     } else {
         $trash_status = 'trash-empty';
         $trash_str = 'Trash';
         $trash_num = '';
     }
     $contents .= '<p id="' . $trash_status . '">' . $trash_str . ' ' . $trash_num . '</p>';
Пример #3
0
            // display the number of the thread
            $disp_page = $page + 1;
            $disp_rows = $page + $rows;
            if ($hit_row <= 1 && $cfg['xml_lang'] == 'en') {
                $lang_comments = 'comment.';
            } else {
                $lang_comments = $lang['comments'];
            }
            $contents = <<<EOD
{$navi_menu}
<p class="search-res">
<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'])) {