'Name', 'email' => 'Email', 'Church' => 'Church', 'Phone' => 'Phone', 'Fax' => 'Fax', 'Address' => 'Address', 'City' => 'City', 'State' => 'State', 'Zip' => 'Zip', 'VISIONS_newsletter' => 'I would like to sign-up for VISIONS newsletter', 'CBF_of_GA_brochure' => 'I would like to receive a CBF of GA brochure', 'CBF_of_GA_history' => 'I would like to learn more about CBF of GA history', 'offering_envelopes' => 'I would like to receive offering envelopes'); for ($i=0; $i 0) $body .= "".$fields_caption[$fields[$i]]."
".$_POST[$fields[$i]]."

"; } if (substr($_SERVER["HTTP_REFERER"],0,20)=="http://www.cbfga.org"){ if ( mail_html(CONTACT_EMAIL, $_POST['email'], $subject, $body ) ) $content_center .= "An email has been sent.
Thank you."; else $content_center .= "There was an error sending the email.
We apologize for the inconvenience."; } else $content_center .= "Invalid refferer page. Email was not sent."; } else { // show the form $content_center .= '
Name
E-mail Address
Church
Phone
Fax
Address
City
State
Zip
 

 I would like to sign-up for VISIONS newsletter
 I would like to receive a CBF of GA brochure
 I would like to learn more about CBF of GA history
 I would like to receive offering envelopes

Submit

'; } $content_right = ""; // Upcoming Events $sql_str = "SELECT * FROM `cbf_calendar` WHERE ". "(TO_DAYS(`date_end`)>=TO_DAYS(NOW()) OR ". " TO_DAYS(`date_beg`)>=TO_DAYS(NOW())) AND `active`='Yes' ORDER BY `date_beg` LIMIT 3"; $result = query($sql_str); if (mysql_num_rows($result) > 0) $content_right .= '

Upcoming Events

'. '
'; $content_right .= ""; for ($i=0; $i0)?($row['label_date']): ( (!$row['date_end']) ? (format_sql_date($row['date_beg'])) : (format_sql_date($row['date_beg'])." - ".format_sql_date($row['date_end'])) ) ). '
'.$row['title'].'
'. "".nl2br($row['location']).'
'. ($html?($row['descr']):(nl2br($row['descr']))).'

'; $content_right .= '
More...


'; $content_right .= ""; } $content_right .= "
"; $content = array($content_center, $content_right); // if needed you can change this // $widths = array($left_width, $center_width, $right_width); $tmp=(int)DEFAULT_WIDTH_LEFT + (int)DEFAULT_WIDTH_CENTER; if(!is_numeric(DEFAULT_WIDTH_LEFT)) $tmp.='%'; $widths = array($tmp, DEFAULT_WIDTH_RIGHT); // end content // OUTPUT THE PAGE - DO NOT CHANGE THIS print_header($title, $sub_menu_image); print_content($nr_of_columns, $content, $widths); print_footer(); // END OUTPUT PAGE ?>