=0) $localbackurl.="&srchcat=$srchcat"; $localbackurl.="&category=$category&mode=search&searchvalues=$searchvalues&searchpart=$searchpart"; if(isset($searchstart)) $localbackurl.="&searchstart=$searchstart"; $localbackurl.="&backurl=$backurl"; $entrycount=1; while($myrow=mysql_fetch_array($result)) { echo ""; if($myrow["headingicon"]) echo " "; else echo " "; echo ""; echo ""; echo ""; list($mydate,$mytime)=explode(" ",$myrow["date"]); list($year, $month, $day) = explode("-", $mydate); list($hour, $min, $sec) = explode(":",$mytime); if($month>0) { $displaytime=mktime($hour,$min,$sec,$month,$day,$year); $displaytime=transposetime($displaytime,$servertimezone,$displaytimezone); $displaydate=date($dateformat,$displaytime); } else $displaydate=""; echo ""; if(($allowcomments==1) && ($myrow["allowcomments"]==1)) { echo ""; echo ""; } echo ""; $hasheading=0; if(strlen($myrow["heading"])>0) { $hasheading=1; echo ""; } $linkdest="singlenews.php?$langvar=$act_lang&newsnr=".$myrow["newsnr"]."&backurl=".urlencode($localbackurl)."&backtxt=$l_back2search&nonav=1"; $linkdest=addhighlights($linkdest,$musts,$cans); echo ""; echo ""; if($displayposter && (strlen($myrow["poster"])>0)) { echo ""; } echo ""; echo ""; echo ""; echo "
"; echo ""; echo get_start_tag($timestampstyle); echo $displaydate; echo get_end_tag($timestampstyle); echo ""; echo ""; $tempsql="select * from ".$tableprefix."_comments where entryref=".$myrow["newsnr"]; if(!$tempresult = mysql_query($tempsql, $db)) die("
Unable to connect to database.".mysql_error()); $numcomments=mysql_num_rows($tempresult); if($numcomments>0) echo "$l_comments: $numcomments"; else echo " "; echo ""; echo ""; echo "$l_writecomment"; echo "
0) { $linkdest="singlenews.php?$langvar=$act_lang&newsnr=".$myrow["newsnr"]."&backurl=".urlencode($localbackurl)."&backtxt=$l_back2search&nonav=1"; $linkdest=addhighlights($linkdest,$musts,$cans); echo " class=\"linkcell\" onMouseOver=\"highlightentry($entrycount,$hasheading)\" onMouseOut=\"unhighlightentry($entrycount, $hasheading)\""; if($searchdetailtarget) echo " onClick=\"window.open('$linkdest','$searchdetailtarget')\""; else echo " onClick=\"window.location.href='$linkdest'\""; } echo ">"; echo ""; echo get_start_tag($newsheadingstyle); $entryheading=stripslashes($myrow["heading"]); $entryheading=search_highlight($entryheading,$musts,$cans); echo undo_htmlspecialchars(do_htmlentities($entryheading)); echo get_end_tag($newsheadingstyle); echo "
0) { echo " class=\"linkcell\" onMouseOver=\"highlightentry($entrycount, $hasheading)\" onMouseOut=\"unhighlightentry($entrycount, $hasheading)\""; if($searchdetailtarget) echo " onClick=\"window.open('$linkdest','$searchdetailtarget')\""; else echo " onClick=\"window.location.href='$linkdest'\""; } echo ">"; echo ""; $displaytext=stripslashes($myrow["text"]); $displaytext=undo_htmlentities($displaytext); if($searchmaxchars>0) { $displaytext=str_replace("
"," ",$displaytext); $displaytext=substr(strip_tags($displaytext),0,$searchmaxchars); } $displaytext=search_highlight($displaytext,$musts,$cans); $displaytext=undo_htmlspecialchars(do_htmlentities($displaytext)); if($searchmaxchars>0) { $displaytext.=" "; $displaytext.="[...]"; } echo $displaytext."
"; echo ""; echo get_start_tag($posterstyle); echo "$l_poster: ".do_htmlentities($myrow["poster"]); echo get_end_tag($posterstyle); echo "
"; $attachsql="select f.filename, f.filesize, f.mimetype, f.description, na.* from ".$tableprefix."_news_attachs na, ".$tableprefix."_files f where f.entrynr=na.attachnr and na.newsnr=".$myrow["newsnr"]; if(!$attachresult = mysql_query($attachsql, $db)) die("
Could not connect to the database."); if($attachrow=mysql_fetch_array($attachresult)) { echo ""; do{ echo ""; }while($attachrow=mysql_fetch_array($attachresult)); echo "
"; echo ""; $fileinfo=$attachrow["filename"]." (".format_bytes($attachrow["filesize"]).")"; if($attachrow["description"]) $fileinfo.=" ".$attachrow["description"]; echo " "; $mimesql="select * from ".$tableprefix."_mimetypes where mimetype='".$attachrow["mimetype"]."'"; if(!$mimeresult = mysql_query($mimesql, $db)) die("
Could not connect to the database."); if($mimerow=mysql_fetch_array($mimeresult)) { $fdsql="select * from ".$tableprefix."_filetypedescription where language='$act_lang' and mimetype=".$mimerow["entrynr"]; if(!$fdresult = mysql_query($fdsql, $db)) die("
Could not connect to the database."); if($fdrow=mysql_fetch_array($fdresult)) $dfileinfo=$fdrow["description"].": ".$fileinfo; else $dfileinfo=$fileinfo; if($mimerow["icon"]) echo "\"$dfileinfo\" "; else echo "\"$dfileinfo\""; } else echo "\"$fileinfo\""; echo " $l_attachement "; if($nofileinfo==0) echo " [".$fileinfo."]"; echo "
"; } else echo " "; echo "
"; echo ""; if($noprinticon==0) { echo ""; if($printpic) echo "\"$l_print\""; else echo "[$l_print]"; echo "  "; } if($nogotopicon==0) { echo "\"$l_gotop\""; } if(($noprinticon==0) && ($nogotopicon==0)) echo " "; echo "
"; $entrycount++; } ?>