![]() |
||
// if (!$rek) //include ("E:\\www\\surbor.ru\\novoteka_h2.ru") include("novoteka_h3.ru"); ?> |
//exit; flush(); $allcount=0; // print "VisualQuery"." @wg1=".$wg1.", @wg2=".$wg2.", @wg3=".$wg3.", @wg4=".$wg4."\n , @wg5=".$wg5.", @wg6=".$wg6.", @wg7=".$wg7.", @text_query='".$search."', @wg=".$wg.", @size=4".", @cachetable=0".", @wrdcount=".$wrdcount."\n , @page=".$page.", @fksource=".$fksource." "; /* proc_select("eSmartSearch"); proc_setparam("@wg1",$wg1); proc_setparam("@wg2",$wg2); proc_setparam("@wg3",$wg3); proc_setparam("@wg4",$wg4); proc_setparam("@wg5",$wg5); proc_setparam("@wg6",$wg6); proc_setparam("@wg7",$wg7); proc_setparam("@text_query", $search); proc_setparam("@wg", $wg); proc_setparam("@max",100); proc_setparam("@size",4); proc_setparam("@cachetable",0); proc_setparam("@wrdcount",$wrdcount); proc_setparam("@page",$page); proc_setparam("@fksource",$fksource); */ //*******************************************************////////// mssql_data_seek($result,0); //********************************************************////////////////// print $ainfotext; while ($row=mssql_fetch_array($result)) { echo " "; echo " "; else echo " "; // echo ""; //echo " ![]() "; $ref_text=$row['cache']; $ref_text=preg_replace("/[\w]*($words_str)[\w]*/i","\\0",$ref_text); echo $ref_text." "; if ($nm==1) { $length=strlen($row['fullvalue']); $dm=$row['vlfraza']; $dm = substr($dm,0,1)."."; $stEnd=strpos($row['fullvalue'],$row['cache'])+ strlen($row['cache']); $ofstart= round(($length - strlen($row['cache']))/2); $ofstart=abs($ofstart); if ($ofstart>$length) $ofstart=$length; $ofs=strpos($row['fullvalue']," ", $ofstart); $ofs=strpos($row['fullvalue']," ", $ofstart); if (!($ofs)) $ofs=0; if ($ofs "; echo $rtext; } if ($nm==2) { $length=strlen($row['fullvalue']); $dm=$row['vlfraza']; $dm = substr($dm,0,1)."."; $stEnd=strpos($row['fullvalue'],$row['cache'])+ strlen($row['cache']); // $ofstart= round(($length - strlen($row['cache']))/2); // $ofstart=abs($ofstart); // echo $ofstart." "; if ($ofstart>$length) $ofstart=$length; $ofs=strpos(strip_tags($row['fullvalue'])," ", $row['cache'])+strlen($row['cache']); // $ofs=strpos($row['fullvalue']," ", $ofstart); // echo $ofs." "; if (!($ofs)) $ofs=0; if ($ofs "; echo $rtext; } if ($nm==3) { $length=strlen($row['fullvalue']); $dm=$row['vlfraza']; $dm = substr($dm,0,1)."."; $stEnd=strpos($row['fullvalue'],$row['cache'])+ strlen($row['cache']); $ofstart= abs(round(($length - strlen($row['cache']))/2)); $ofstart=abs($ofstart); if ($ofstart>$length) $ofstart=$length; $ofs=strpos($row['fullvalue']," ", $ofstart); if (!($ofs)) $ofs=0; if ($ofs "; echo $rtext; } echo " } ?> |
Всего найденно: echo $allcount ?>
« echo $search ?>»
if(empty($search)) print ""; else { $block=preg_replace("/[\D]+/","",@$_GET['b']); if($block<1) $block=0; $sub_array[]=-1; $link_cut=""; #нарезка по десяткам print " Страницы: "; $i=$block*10; if($block>0) print " << предыдущие "; while($i<($block*10)+10 and $i*10<@$allcount) { if($i==$page) { $st1=""; $st2=""; $st="style='font-weight: 600; color:#CC0000'"; } else { $st1=""; $st2=""; $st=""; } print $st1."".($i+1).$st2." "; $i++; } flush(); if(($block+1)*100<@$allcount) print "следующие >>"; } ?>
Поиск значений слов:
if ($wrdcount>=1) { ?> : } ?>
if ($wrdcount>=2) { ?> : } ?>
if ($wrdcount>=3) { ?> : } ?>
if ($wrdcount>=4) { ?> : } ?>
if ($wrdcount>=5) { ?> : } ?>
include ("/var/www/protected/surbor.ru/surbor.ru_rotator/footer.php") ?>
|