".$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 .= "
"; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; if ($printdate == 1) { $content .= ""; $content .= ""; $content .= ""; $content .= ""; } $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= ""; $content .= "
"._VIEW_DAY_EVENT." "; if ($printtitlelink) { $content .= "" . PrintShortEvent($myrow, $month, $day, $year) . ""; } else { $content .= $myrow[title]; } $content .= "
"._VIEW_DAY_START_TIME." "; $content .= MilitaryTo12Hour($myrow[starttime]); $content .= "
"._VIEW_DAY_DURATION." "; $content .= MilitaryTo12HourDuration($myrow[duration]) . "
"._VIEW_DAY_LOCATION." ".$myrow[location]."
"._VIEW_DAY_DATE." ".$myrow[onetime_date]."
"._VIEW_DAY_CATEGORY." "; $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." ".$myrow[fulldesc]." 
"; return $content; } function PrintEventFooter($op, $month, $day, $year, $eventid, $showprintlink, $printop, $linkup) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; PrintSubmitEventLink(); echo " "; if ($showprintlink == 1) { echo ""._PRINTER_FRIENDLY_VERSION.""; } echo ""; echo " "; echo "".$linkup.""; echo "
"; } function PrintSubmitEventLink() { global $user_prefix, $dbi; $result = sql_query("SELECT * FROM ".$user_prefix."_calendar_options WHERE 1", $dbi); $row = sql_fetch_array($result, $dbi); if ($row[allow_user_submitted_events] == 1) { echo ""._SUBMIT_EVENT_INFO.""; } } function ShowEventForm($formaction, $mydatarow, $eventid, $formsubmitbutton, $onetimeevent = "", $month="", $day="", $year="", $formactiondelete="", $showapproved = 0) { if (!isset($month) || $month == "" || $month > 12 || $month < 1) { $month = date("m"); } if (!isset($year) || $year == "" || $year < 1972 || $year > 2036) { $year = date("Y"); } if (!isset($day) || $day == "") { $day = date("d"); } global $user_prefix, $dbi, $AllowableHTML; ?>
"; } ?>
"._ALLOWEDHTML."
"; while (list($key,) = each($AllowableHTML)) echo " <".$key.">"; ?>
: "; for ($x = 1; $x <= 12; $x++) { echo ""; } echo ""; echo ":"; echo ""; echo "
: "; for ($x = 0; $x <= 24; $x++) { echo ""; } echo ""; echo _VIEW_DAY_HOURS . " "; echo ""; echo _VIEW_DAY_MINUTES; ?>
>
'; $content.=''; for ($j=1;$j<=12;$j++) { $content.=' '; $content.=''; for ($j=2003;$j<=2036;$j++) { $content.='
>
'; for ($j=1;$j<=12;$j++) { $selected = ""; if ($mydatarow[recur_month] == $j) $selected = "selected"; $content.=''; } $content .= ''; echo $content; ?>