Fishing Events

"; echo "




"; } function deleteItem($id) { $myFile = "upcomingevents/".$id; unlink($myFile); echo ""; } function updateItem($id) { $named_array = array('event' => array($_POST)); $myFile = "upcomingevents/".$id; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = json_encode($named_array); fwrite($fh, $stringData); fclose($fh); echo ""; } function insertItem() { $named_array = array('event' => array($_POST)); $myFile = "upcomingevents/".date('U').".txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = json_encode($named_array); fwrite($fh, $stringData); fclose($fh); echo ""; } function addEditItem($id) { $json = file_get_contents('link_list.js'); $json = str_replace('var tinyMCELinkList = new Array(','' ,str_replace(');','',$json)); $json = str_replace("],[",":::::",$json); $json = str_replace('", "','|',$json); $json = str_replace('"','',$json); $json = str_replace('[','',$json); $json = str_replace(']','',$json); $json = explode(":::::",$json); $fh = fopen('upcomingeventstypes.html', 'r'); $theData = fread($fh, filesize('upcomingeventstypes.html')); $typeoftraining = explode("

",str_replace("

","",$theData)); fclose($fh); if ($id != "" ) { $fh = fopen("upcomingevents/".$id, 'r'); $theData = fread($fh, filesize("upcomingevents/".$id)); fclose($fh); $eventvariables = json_decode($theData,true); echo "

Update Event

"; echo "
"; } else { echo "

Add Event

"; echo ""; } echo '
'; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ($id != "" ) { echo ""; } else { echo ""; } echo "
Title
Type of Event Add/Edit"; echo ""; echo "
 
URL (if event is not
associated with NCFG)
ex. http://www.google.com
"; echo "
"; echo ""; echo "
 
Description
Date: (01/10/13)
Entire Month:
Location:
Address:
"; } ?>
Home Nor Cal Fly Guides
Sacramento, CA
530-354-3740
norcalflyguides@gmail.com

All Rights Reserved

Site Design By
Lupien Internet Services