".$text.""; } function PrintShortEvent($myrow, $month, $day, $year) { return PrintEventLink("ShowEvent", $month, $day, $year, $myrow, $myrow[title]); } function PrintEvent($myrow, $month, $day, $year, $printtitlelink = 0) { global $bgcolor3, $bgcolor4, $dbi, $user_prefix; $content = ""; $content .= "
"._VIEW_DAY_EVENT." | "; $content .= ""; $content .= " | "; if ($printtitlelink) { $content .= "" . PrintShortEvent($myrow, $month, $day, $year) . ""; } else { $content .= $myrow[title]; } $content .= " | "; $content .= "
"._VIEW_DAY_START_TIME." | "; $content .= ""; $content .= " | "; $content .= MilitaryTo12Hour($myrow[starttime]); $content .= " |
"._VIEW_DAY_DURATION." | "; $content .= ""; $content .= " | "; $content .= MilitaryTo12HourDuration($myrow[duration]) . " | "; $content .= "
"._VIEW_DAY_LOCATION." | "; $content .= ""; $content .= " | ".$myrow[location]." | "; $content .= "
"._VIEW_DAY_DATE." | "; $content .= ""; $content .= " | ".$myrow[onetime_date]." |
"._VIEW_DAY_CATEGORY." | "; $content .= ""; $content .= " | ";
$catresult = sql_query("SELECT * FROM ".$user_prefix."_calendar_categories WHERE id=".$myrow[categoryid], $dbi);
if ($catresult) {
$catrow = sql_fetch_array($catresult, $dbi);
$content .= $catrow[title]." ".$catrow[description]; } else { $content .= _VIEW_DAY_NO_CAT; } $content .= " |
"._VIEW_DAY_OTHER_INFO." | "; $content .= ""; $content .= " | ".$myrow[fulldesc]." | "; $content .= "
"; PrintSubmitEventLink(); echo " | "; echo ""; echo " | "; if ($showprintlink == 1) { echo ""._PRINTER_FRIENDLY_VERSION.""; } echo " | "; echo ""; echo " | "; echo ""; echo "".$linkup.""; echo " | "; echo "