StartDate = mktime(0,0,0,$curmonth,$curday,$curyear); $this->EndDate = mktime(0,0,0,$curmonth,$curday,$curyear); $this->CancelDate = mktime(0,0,0,0,0,0); $this->ID = 0; $this->Weight = 5; $this->FeatureType = 0; $this->GroupID = 0; $this->GroupType = 0; if ($gEventSavePending == 1) { $this->StatusID = 0; $this->Status = "Pending"; } else { $this->StatusID = 2; $this->Status = "Active"; } $this->StartTime = 0; $this->EndTime = 0; $this->NoEndTime = 1; } function resetEvent() { global $gEventSavePending; $today = strtotime(date("d-M-Y")); if ($this->StartDate < $today) { $curyear = date("Y"); $curmonth = date("m"); $curday = date("d"); $this->StartDate = mktime(0,0,0,$curmonth,$curday,$curyear); $this->EndDate = mktime(0,0,0,$curmonth,$curday,$curyear); } $this->CancelDate = mktime(0,0,0,0,0,0); $this->ID = 0; $this->GroupID = 0; $this->GroupType = 0; if ($gEventSavePending == 1) { $this->StatusID = 0; $this->Status = "Pending"; } else { $this->StatusID = 2; $this->Status = "Active"; } } //====================================== // Function to get member record //====================================== function getRecord($id) { global $objDB; $this->ErrorCode = 0; $this->ErrorMessage = "Retreiving..."; $this->DebugQuery = ""; $this->SavePwd = 0; $sQuery = "SELECT e1.*, c1.category"; $sQuery .= " FROM event_list e1 left join event_cats c1 on e1.categoryid = c1.categoryid "; $sQuery .= " WHERE e1.eventid = ".$id; $objResult = run_snapshot($sQuery, $iRows); $this->DebugQuery = $sQuery; if ($iRows > 0) { $line = mysql_fetch_assoc($objResult); $this->ID = $line['eventid']; $this->SignUpID = num_is_null($line['signupid']); $this->SignUpMax = num_is_null($line['maxtickets']); $this->SignUpSold = num_is_null($line['ticketsold']); $this->Location = stripslashes($line['location']); $this->Address = stripslashes($line['address']); $this->City = stripslashes($line['city']); $this->URL = stripslashes($line['url']); $this->ShortDesc = stripslashes($line['shortdesc']); $this->Description = stripslashes($line['description']); $this->CancelNotes = stripslashes($line['cancelnotes']); $this->Title = stripslashes($line['name']); $this->Latitude = stripslashes($line['latitude']); $this->Longitude = stripslashes($line['longitude']); $this->ContactName = stripslashes($line['contactname']); $this->ContactEmail = stripslashes($line['contactemail']); $this->ContactPhone = stripslashes($line['contactphone']); $this->StartDate = strtotime($line['startdate']); $this->EndDate = strtotime($line['enddate']); $this->StartTime = $line['starttime']; $this->EndTime = $line['endtime']; $this->CancelDate = strtotime($line['canceldate']); $this->DateAdded = strtotime($line['dateadded']); $this->DateUpdated = strtotime($line['dateupdated']); $this->GroupType = $line['grouptype']; $this->GroupID = $line['groupid']; $this->StatusID = $line['statusid']; $this->OneDay = $line['oneday']; $this->NoEndTime = $line['noendtime']; $this->NoTimes = $line['notimes']; $this->Weight = $line['weight']; $this->FeatureType = $line['featuretype']; $this->CategoryID = $line['categoryid']; $this->Category = stripslashes($line['category']); $this->getStatusName(); if ($this->StartDate == $this->EndDate) { $this->Oneday = 1; } return 1; } else { $this->ErrorCode = 1; $this->ErrorMessage = "Event not found!"; return 0; } } // end getRecord //========================================= // Function to Save Event Record //========================================= function saveRecord() { global $objDB; $this->ErrorCode = 0; $this->ErrorMessage = "Saving..."; $this->DebugQuery = ""; // if a one day event, make sure end date is same as start date if ($this->OneDay != 0) { $this->EndDate = $this->StartDate; } if ($this->NoEndTime != 0) { $this->EndTime = 0; } if ($this->NoTimes != 0) { $this->StartTime = ""; $this->EndTime = ""; } if (date("d-M-Y",$this->EndDate) == "31-Dec-1969") { $this->EndDate = $this->StartDate; } if ($this->ID == 0) { // new record if ($gEventSavePending == 1) { $this->StatusID = 0; $this->Status = "Pending"; } else { $this->StatusID = 2; $this->Status = "Active"; } if ($this->Description == "") { $this->Description = "

".$this->ShortDesc."

"; } // insert new record $sQuery = "INSERT INTO event_list(name, startdate, dateadded, dateupdated, statusid)"; $sQuery .= " VALUES ('%s', '%s', current_timestamp()+0, current_timestamp()+0, %d)"; $sQuery = sprintf($sQuery, mysql_real_escape_string($this->Title, $objDB), date("Y-m-d",$this->StartDate), $this->StatusID); run_update($sQuery); $this->DebugQuery = $sQuery; // retrieve unique event id for new record $sQuery = "SELECT max(eventid) as maxevent FROM event_list "; $sQuery .= " WHERE name='%s'"; $sQuery = sprintf($sQuery, mysql_real_escape_string($this->Title, $objDB)); $objResult = run_snapshot($sQuery, $iRows); $this->DebugQuery .= "
".$sQuery; if ($iRows > 0) { $line = mysql_fetch_assoc($objResult); $this->ID = $line['maxevent']; } else { $this->ErrorCode = 2; $this->ErrorMessage = "A problem occured saving the new Event."; } } if ($this->ID > 0) { // existing record $sQuery = "UPDATE event_list SET "; $sQuery .= " name='%s' "; $sQuery .= ", location='%s' "; //$sQuery .= ", address = '%s' "; //$sQuery .= ", city = '%s' "; //$sQuery .= ", url = '%s' "; $sQuery .= ", categoryid = %d"; $sQuery .= ", shortdesc = '%s' "; $sQuery .= ", description = '%s' "; $sQuery .= ", cancelnotes = '%s' "; //$sQuery .= ", latitude = '%s' "; //$sQuery .= ", longitude = '%s'"; $sQuery .= ", contactname = '%s'"; $sQuery .= ", contactphone = '%s'"; $sQuery .= ", contactemail = '%s'"; $sQuery .= ", startdate = '%s'"; $sQuery .= ", enddate = '%s'"; $sQuery .= ", starttime = '%s'"; $sQuery .= ", endtime = '%s'"; $sQuery .= ", statusid = %d "; $sQuery .= ", oneday = %d "; $sQuery .= ", notimes = %d"; $sQuery .= ", noendtime = %d"; //$sQuery .= ", groupid = %d"; //$sQuery .= ", grouptype = %d"; //$sQuery .= ", weight = %d"; $sQuery .= ", canceldate = '%s'"; $sQuery .= ", dateupdated = current_timestamp()+0"; $sQuery .= " WHERE eventid = %d"; $sQuery = sprintf($sQuery, mysql_real_escape_string($this->Title, $objDB), mysql_real_escape_string($this->Location, $objDB), //mysql_real_escape_string($this->Address, $objDB), //mysql_real_escape_string($this->City, $objDB), //mysql_real_escape_string($this->URL, $objDB), $this->CategoryID, mysql_real_escape_string($this->ShortDesc, $objDB), mysql_real_escape_string($this->Description, $objDB), mysql_real_escape_string($this->CancelNotes, $objDB), //mysql_real_escape_string($this->Latitude, $objDB), //mysql_real_escape_string($this->Longitude, $objDB), mysql_real_escape_string($this->ContactName, $objDB), mysql_real_escape_string($this->ContactPhone, $objDB), mysql_real_escape_string($this->ContactEmail, $objDB), date("Y-m-d",$this->StartDate), date("Y-m-d",$this->EndDate), mysql_real_escape_string($this->StartTime, $objDB), mysql_real_escape_string($this->EndTime, $objDB), $this->StatusID, $this->OneDay, $this->NoTimes, $this->NoEndTime, //$this->GroupID, //$this->GroupType, //$this->Weight, date("Y-m-d",$this->CancelDate), $this->ID); run_update($sQuery); //echo $sQuery; $this->DebugQuery .= "
".$sQuery; } } // end saveRecord function saveFeatureType() { if ($this->ID > 0) { $sQuery = "UPDATE event_list set featuretype = ".$this->FeatureType; $sQuery .= " WHERE eventid = ".$this->ID; run_update($sQuery); } } //========================================== // Other Verification Functions //========================================== function isEditable() { $editok = 1; if ($this->StatusID < 4) { //if ($this->StartDate <= strtotime(date("d-M-Y"))) { // if the start date is less than today if ($this->NoTimes == 0) { if ($this->StartDate == "") { $this->StartDate = strtotime(date("d-M-Y")); } if ($this->StartTime == "") { $this->StartTime = "0"; } //strtotime(date("d-M-Y h:i")); } //echo $this->StartTime; $starttime = strtotime(date("d-M-Y",$this->StartDate)." ".date("h:i",$this->StartTime)); $today = strtotime(date("d-M-Y h:i")." -24 hours"); //if ($starttime < $today) { $editok = 0; } //} else { // $editok = 0; } //} } else { $editok = 0; } return $editok; } function getStatusName() { if ($this->StatusID == 0) { $this->Status = 'Pending'; } elseif ($this->StatusID == 1) { $this->Status = 'Waiting Auth'; } elseif ($this->StatusID == 2) { $this->Status = 'Active'; } elseif ($this->StatusID == 3) { $this->Status = 'Cancelled'; } elseif ($this->StatusID == 4) { $this->Status = 'Deleted'; } return $this->Status; } function getEventTimes($size) { $retDate = ""; $dateformat = "D M j"; if ($size == "Large") { $dateformat = "l F j"; } if ($size != "XSmall") { $retDate = date($dateformat,$this->StartDate); } if ($this->OneDay == 0) { if($this->NoTimes == 0) { $retDate .= " - ".date("g:i a",strtotime($this->StartTime)); } if ($size != "Medium") $retDate .= "
"; $retDate .= " to ".date($dateformat,$this->EndDate); if($this->NoTimes == 0 and $this->NoEndTime == 0) { $retDate .= " - ".date("g:i a",strtotime($this->EndTime)); } } else { if($this->NoTimes == 0) { $retDate .= " - ".date("g:i a",strtotime($this->StartTime)); } if($this->NoTimes == 0 and $this->NoEndTime == 0) { $retDate .= " to ".date("g:i a",strtotime($this->EndTime)); } } return $retDate; } } // end class BEvent ?> Fungi Festival
Fungi Festival

Fungi Festival The Best EdiblesThe first annual Sicamous & Shuswap Lake Wild Mushroom & Food Festival was held in beautiful Sicamous, B.C. in 2005.

Participants enjoyed identifying and picking wild mushrooms, watching evening presentations, and attending workshops.

There will be a 2016 Fungi Festival, September 23-25th, 2016. 

 

This year’s festival is dedicated to Peter Steiner.  His dedication and passion for the festival carried it through 10 years of comradery, learning and fun. 

We hope the festival continues to grow and thrive as a legacy to his contribution to mushrooming and the community of Sicamous.

 

There will be a 2016 Fungi Festival September 23-25, 2016.  Check out the events page for all the details.

 

 

Joe Schmuck
Moose Mulligans
Sicamous BC   V0E 2V0
debheap@hotmail.com
Ph: 403-970-0114
Fungi Festival
Created By Erica Lahoda Web Girl
 
Home  •   Location  •   Personalities  •   Photo Gallery  •   Events  •   Tours  •   Contact Us / Register