Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/umedia3/ |
Upload File : |
<? include("inc/config.inc.php"); echo $kw; if ($quicksearchlen==0) { $quicksearchlen=10; } if ($quicksearchmode=='') { $quicksearchmode="normalquicksearch"; } if ($quicksearchaddword=='') { $quicksearchaddword="yes"; } if ($quicksearchaddtaglist=='') { $quicksearchaddtaglist="yes"; } $s=tmq("select *,f1 as usingword from dc_title where f1 like '%$kw%' or f1='$kw' order by f1 desc limit 50 ",false); $s2=tmq("select distinct trim(text) as usingword from media_ftitems_anno where text like '%$kw%' limit 50 ",true); $kw=urldecode($kw); $kw=stripslashes($kw); $kw=stripslashes($kw); $kw=stripslashes($kw); $kw=addslashes($kw); $quicksearchlen=floor($quicksearchlen); ?><SCRIPT LANGUAGE="JavaScript"> <!-- quicksearchmode="<?echo $quicksearchmode;?>" function getPosLeft(obj) { var curleft = 0; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) curleft += obj.x; return curleft; } function getPosTop(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; } textbox=parent.getobj("INTERNALTEXTBOXKWSEARCH"); tmp=parent.getobj("INTERNALTEXTBOXKWSEARCHdsp"); tmp.style.top=(textbox.offsetHeight+getPosTop(textbox))+"px"; tmp.style.left=getPosLeft(textbox)+"px"; tmp.style.width=textbox.offsetWidth+"px"; //alert(getPosTop(textbox)); <? if (tmq_num_rows($s)==0 && tmq_num_rows($s2)==0 ) { ?> tmp.style.display="none"; <? } else { ?> tmp.style.display="block"; tmpstr="<TABLE width=100% cellpadding=2 cellspacing=0 border=0>"; <? $i=0; while ($r=tmq_fetch_array($s)) { if(!isUTF8($kw) && isUTF8($r[usingword])) { continue; } $i++; if ($i>=$quicksearchlen) { break; } $html=$r[usingword]; $html=str_replace("$kw","<B class=smaller2 style='color: darkblue;'>$kw</B>",$html); ?> tmpstr+="<TR style='cursor: hand;'><TD style=' cursor: hand; '"; tmpstr+=" onmouseover=\"this.style.backgroundColor='#FEFFCE'\" "; tmpstr+=" onmouseout=\"this.style.backgroundColor=''\" "; tmpstr+="><nobr><a href='javascript:void(null)' "; tmpstr+=" onclick=\"local_fillword('<?echo $r[usingword]?>');\" "; tmpstr+=" class=smaller2 style='width: 100%; overflow: clip; '><? echo $html?></a></nobr></TD></TR>"; <? } //////////////////////// $i=0; while ($r=tmq_fetch_array($s2)) { if(!isUTF8($kw) && isUTF8($r[usingword])) { continue; } $i++; if ($i>=$quicksearchlen) { break; } $html=$r[usingword]; $html=str_replace("$kw","<B class=smaller2 style='color: darkblue;'>$kw</B>",$html); ?> tmpstr+="<TR style='cursor: hand;'><TD style=' cursor: hand; '"; tmpstr+=" onmouseover=\"this.style.backgroundColor='#FEFFCE'\" "; tmpstr+=" onmouseout=\"this.style.backgroundColor=''\" "; tmpstr+="><nobr><a href='javascript:void(null)' "; tmpstr+=" onclick=\"local_fillword('<?echo $r[usingword]?>');\" "; tmpstr+=" class=smaller2 style='width: 100%; overflow: clip; '><? echo $html?></a></nobr></TD></TR>"; <? } ?> tmpstr+="<TR style='cursor: hand;'><TD align=right onclick=\"getobj('INTERNALTEXTBOXKWSEARCHdsp').style.display='none';\" class=smaller2>"+"Close"; tmpstr+="</TD></TR>"; tmpstr+="</TABLE>"; tmp.innerHTML=tmpstr; <? } ?> //--> </SCRIPT>