\n"; echo "\n"; echo "\n"; echo "

Tapahtumakalenteri 2006

\n"; echo "
\n"; if($months) { $sd_month = substr($months,1,1); echo "No events found for ".$monthArr[$sd_month]." of ".$years."\n"; }elseif(!$months){ $sd_month = substr($curr_month,1,1); echo "No events found for ".$monthArr[$sd_month]." of ".$curr_year."\n"; } echo "
\n"; }elseif($rows <> 0){ while($result = mysql_fetch_array($query)) { $cid = $result["cid"]; $author = GetUsername($result["author"]); $event_name = $result["name"]; /////////////////////////////////////// //Date format mmddyyyy $date = $result["date"]; $db_months = substr($date,0,2); $db_days = substr($date,2,2); $db_years = substr($date,4,4); ///////////////////////////////////// $place = $result["place"]; $event_from = $result["event_from"]; $event_to = $result["event_to"]; $cost = $result["cost"]; $agelimit = $result["age_limit"]; $kirpputori = $result["kirpputori"];//fleemarket $info = $result["info"]; $program = $result["program"]; $type = $result["event_type"]; echo "\n"; //Event cells Begin..............************************************************************ echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; ////////////////////////////////9999999999999999999999999999999999999999999 echo "Event: ".$event_name." - ".$db_months.".".$db_days.".".$db_years.""; echo " - ".$event_type[$type]."\n"; ////////////////////////////////9999999999999999999999999999999999999999999 echo "
    \n"; echo "
  • Time: From [ ".$event_from." ] To [ ".$event_to." ]
  • \n"; echo "
  • Cost: ".$cost."
  • \n"; echo "
  • Announced by: ".$author."
  • \n"; echo "
\n"; ////////////////////////////////9999999999999999999999999999999999999999999 echo "
\n"; echo "Event Info:\n"; echo "
\n"; echo $info; echo "
\n"; echo "Event Program:\n"; echo "
\n"; echo $program; echo "
\n"; //Event cells End................************************************************************ if(isset($cookie) && $user_cat == 1) { echo "\n"; echo ""; echo "\n"; echo "\n"; } echo "
\n"; echo "[ Edit ]\n"; echo "     "; echo "[ Delete ]\n"; echo "
\n"; echo "

\n"; }//End While Loop }//End if($rows == 0) echo "\n"; echo "\n"; if($rows <> 0) { echo "\n"; echo "\n"; echo "Previous Events: \n"; echo "\n"; echo "\n"; $num_link = ceil($event_rows/5); for($i=1;$i<=$num_link;$i++) { echo "[ "; if($i == 1){echo "Current";} elseif($i <> 1){echo $i - 1;} echo " ] "; } echo "\n"; echo "\n"; } ?>