Location: PHPKode > projects > Sphider Plus > sphider-plus_v.2.9/templates/html/051_result-header.html
<?php   //  display result header ?>
<!--    Result-header   -->
<?php
    if ($debug_user == '1') {    //  show databases that delivered results
?>
    <small>Results from database <?php echo "".$slv1." ".$slv2." ".$slv3." ".$slv4." ".$slv5.""?></small>
<?php
        if ($prefix > '0') {
?>
    <small>table prefix: <?php echo "".$prefix."" ?></small>
<?php
        }
        if (!$one_word || !$mustbe_and) {
?>
    <br />
<?php
        }
        if ($one_word) {
?>
    <small><span class='red'>Info:</span> Automatically reset to single word query for this search mode.</small>
<?php
        }
        if ($mustbe_and) {
?>
    <small><span class='red'>Info:</span> Automatically reset to AND for this search mode.</small>
<?php
        }
        if ($nostalgic_phrase =='1' ) {
?>
    <small><span class='red'>Info:</span>Sphider-plus does not require quotation marks for phrase search.<br />
    Just activate the checkbox '<?php echo "".$sph_messages['phraseSearch'].""?>' in the Search Form and enter the phrase you want to search for.</small>
<?php
        }

    }
	if ($text_results['ignore_words'] && $type !='phrase'){     //      show words that were ignored for this search
        $ignore_msg = str_replace ('%ignored_words', "<span class=\"warnadmin\">".$ignored."</span>\r\n", $sph_messages["ignoredWords"]);
?>
    <div id="ignored" class="tblhead cntr">
        <?php echo "".$ignore_msg.""; ?>
    </div>
<?php   }
?>
    <br />
    <div id="result_header" class="mainlist">
<?php   if ($total_results != 0 && $from <= $to && $template != "Pure"){
?>
        <p class="cntr"><a class="navdown"  href="javascript:JumpBottom()" title="Jump to bottom of this page"><?php echo "".$sph_messages['down'].""?></a></p>
<?php }
    if ($text_results['total_results']==0){     //      if no result was found
?>
        <div class="warnadmin cntr">
        <?php echo "    ".$no_res."\r\n"?>
            <br />
        <?php echo "    ".$catsearch.""?> <span class="blue"><?php echo "".$catname.""?></span>
        </div>
<?php
    }
    if ($text_results['did_you_mean'] && $text_results['total_results'] == ''){   //      if Sphider-plus found a suggestion
        $did_you_mean = "  ".$sph_messages['DidYouMean'].": <a href=\"".$search_string."?query=".(addmarks($text_results['did_you_mean']))."&amp;search=1&amp;type=$type_rem&amp;results=$result_rem&amp;mark=$mark_rem&amp;category=$cat_rem&amp;catid=$catid_rem&amp;db=$db&amp;prefix=$prefix\">".$text_results['did_you_mean_b']."</a>?";
?>
        <div id="didumean">
        <?php echo "    ".$did_you_mean."\r\n"?>
        </div>
<?php    }
    if ($text_results['total_results'] != '') {
?>
        <span><?php echo "".$result." "?></span>
        <br />
<?php   if ($show_sort == '1' && $wildcount != '1') {
            echo "        <span>".$res_order." ".$this_list."</span>"?>
<?php   }
?>
    </div>
<!--    Links to more-results   -->
        <div id="other_pages" class="tblhead">
        <?php echo "    ".$sph_messages["Result page"]."" ?>:
<?php
        if ($start >1){     // if we do have more than 1 result page
?>
            <a href="<?php echo $search_string ;?>?query=<?php echo "".(addmarks($query))."" ?>&amp;start=<?php echo "".$prev."" ?>&amp;search=1&amp;category=<?php echo "".$category."" ?>&amp;catid=<?php echo "".$catid."" ?>&amp;mark=<?php echo "".$mark."" ?>&amp;results=<?php echo "".$results_per_page.$type_qry.$adv_qry."" ?>&amp;db=<?php echo "".$db."" ?>&amp;prefix=<?php echo "".$prefix."" ?>&amp;domain=<?php echo "".$domain."" ?>"><?php echo "".$sph_messages['Previous']."" ?></a>
<?php   }
        foreach ($other_pages as $page_num) {
            if ($page_num !=$start){
?>
            <a href="<?php echo $search_string ;?>?query=<?php echo "".(addmarks($query))."" ?>&amp;start=<?php echo "".$page_num."" ?>&amp;search=1&amp;category=<?php echo "".$category."" ?>&amp;catid=<?php echo "".$catid."" ?>&amp;mark=<?php echo "".$mark."" ?>&amp;results=<?php echo "".$results_per_page.$type_qry.$adv_qry."" ?>&amp;db=<?php echo "".$db."" ?>&amp;prefix=<?php echo "".$prefix."" ?>&amp;domain=<?php echo "".$domain."" ?>"><?php echo "".$page_num."" ?></a>
<?php       } else { ?>
            <strong><?php echo "".$page_num."" ?></strong>
<?php
            }
        }
        if ($next <= $pages){
?>
            <a href="<?php echo $search_string ;?>?query=<?php echo "".(addmarks($query))."" ?>&amp;start=<?php echo "".$next."" ?>&amp;search=1&amp;category=<?php echo "".$category."" ?>&amp;catid=<?php echo "".$catid."" ?>&amp;mark=<?php echo "".$mark."" ?>&amp;results=<?php echo "".$results_per_page.$type_qry.$adv_qry."" ?>&amp;db=<?php echo "".$db."" ?>&amp;prefix=<?php echo "".$prefix."" ?>&amp;domain=<?php echo "".$domain."" ?>"><?php echo "".$sph_messages['Next']."" ?></a>
 <?php  }  ?>
        </div>
<!--    Start result listing     -->
    <div id="results">
<?php   } else {
?>
    </div>
    <p class="y5"></p>
<?php  }    //  end result header
Return current item: Sphider Plus