".$s[name]. "
"; } ?>
"; } return "  "; } function localcate2($wh) { if (strtolower($wh[cate2])=="yes") { return "
"; } return "  "; } function localcate3($wh) { if (strtolower($wh[cate3])=="yes") { return "
"; } return "  "; } function local_helpurl($wh) { if (trim($wh[helpurl])!="") { return "
"; } return " "; } $limit=" 1 "; if ($keyword!="") { $limit.=" and (name like '%$keyword%' or descr like '%$keyword%' or url like '%$keyword%') "; } ////////start cate display $freedbsql=""; if (is_array($searchfreedb) && count($searchfreedb)>0 ) { $s=tmq("select * from freedb_cate "); while ($r=tmq_fetch_array($s)) { if ($searchfreedb[$r[id]]=="yes") { $freedbsql.=" or nested = $r[id]"; } $tmp=trim($tmp,','); } } $freedbsql=trim($freedbsql); if ($freedbsql!="") { $freedbsql= " and (0 $freedbsql)"; } ////////end cate display $zindex=1000; function localdsp($wh) { global $zindex; $zindex=$zindex-2; $tmpjsid="aa".randid(); global $tbname; global $cate; $img=fft_upload_get($tbname,"logoimg",$wh[id]); //printr($img); //$simg=""; $s="$simg$wh[name]"; //$s.="$wh[url]
"; $s.="
$wh[descr]

"; //$s.=getlang("เยี่ยมชม $wh[clickcount] ครั้ง::l::Visit $wh[clickcount] times"); $s.=" ";; return $s; } $limit.=$freedbsql; //echo "[$limit]"; $row_per_page=25; fixform_tablelister($tbname," $limit and isshow='yes' ",$dsp,"no","no","no","keyword=$keyword",$c,"name"); die; foot(); ?>