=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) { if(($hour>0) || ($min>0)) $displaydate=date($event_dateformat2,mktime($hour,$min,0,$month,$day,$year)); else $displaydate=date($event_dateformat,mktime(0,0,0,$month,$day,$year)); } else $displaydate=""; echo ""; $hasheading=0; if(strlen($myrow["heading"])>0) { $hasheading=1; echo ""; } $linkdest="events.php?$langvar=$act_lang&eventnr=".$myrow["eventnr"]."&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 "
0) { $linkdest="events.php?$langvar=$act_lang&eventnr=".$myrow["eventnr"]."&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, eva.* from ".$tableprefix."_events_attachs eva, ".$tableprefix."_files f where f.entrynr=eva.attachnr and eva.eventnr=".$myrow["eventnr"]; 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++; } ?>