'; $error = true; } else { $_POST['name'] = substr($_POST['name'],0,80); $_POST['message'] = substr($_POST['message'],0,2000); } if (email_validate($_POST['email']) == false) { $error_msg .= 'Please enter valid email address
'; $error = true; } // Send the email if no errors if (!$error_msg) { $headers = out_mailheader($_POST['name'],$_POST['email'],$_POST['name'],$_POST['email'],1,0); $message = 'This message is from the Nese Gallery Website Contact Us Page' . "\n\n" . '=====================================' . "\n" . 'From : ' . $_POST['name'] . "\n" . 'Email : ' . $_POST['email'] . "\n" . '=====================================' . "\n\n" . $_POST['message']; $subject = 'Message from Nese Gallery Contact Us Page'; mail($athena['contactus']['location']['email_addr'], $subject, $message, $headers); $success_msg = 'Your message has been sent'; } } // ================================================================================================ // Page Title $hologram[6610] = page_header2($athena['contactus']['location']['title']); // ------------------------------------------------------------------------------------------------ // The outer box $hologram[6620] = v_spacer(20) . '' . tabler('c',0,0,'','',0,''); // Info pane in left column $hologram[6620] .= '' . tabler('c',350,0,'','',0,''); // Google map goes on the right $hologram[6650] = '' . ''; // Close the container $hologram[6690] = ''; // ================================================================================================ // The info pane goes into constructed table as 2-column rows - first, info; then, contact form $hologram[6625] = '' . scriber('Location','item_hdrtext1',0,0,0,0) . '' . v_spacer(20); $hologram[6625] .= '' . scriber_td('Phone:','form_name2',1,0,0,0,0,0,0,'','l') . scriber_td($athena['contactus']['location']['phone'],'item_text2', 0,0,0,0,0,0,0,'','l') . '' . v_spacer(20); $hologram[6625] .= '' . scriber_td('Address:','form_name2',1,0,0,0,0,0,0,'','l') . scriber_td($athena['contactus']['location']['address'],'item_text2', 0,0,0,0,0,0,0,'','l') . '' . v_spacer(40); $hologram[6625] .= '' . scriber('Contact','item_hdrtext1',0,0,0,0) . '' . v_spacer(20); // ------------------------------------------------------------------------------------------------ // Contact Form if (is($error_msg,1)) { $hologram[6640] .= scriber_trtd($error_msg,'error_msg3',0,0,0,0,2,0,0,'','c') . v_spacer(10); } if (is($success_msg,1)) { $hologram[6640] .= scriber_trtd($success_msg,'success_msg3',0,0,0,0,2,0,0,'','c') . v_spacer(10); } $hologram[6645] = '
' . '' . scriber_td('Your Name:','form_name2',0,0,0,0,0,'20%','','','l') . fielder_td('name', 'textbox2', 40, 1, 80, $_POST['name'], 0,0,0, '', 'l') . '' . v_spacer(5); $hologram[6645] .= '' . scriber_td('Your Email:','form_name2',0,0,0,0,0,'','','','l') . fielder_td('email', 'textbox2', 40, 1, 80, $_POST['email'], 0,0,0, '', 'l') . '' . v_spacer(5); $hologram[6645] .= '' . scriber_td('Message:','form_name2',0,0,0,0,0,'','','','l') . fielder_td('message', 'textbox2', 38, 5, 250, $_POST['message'], 0,0,0, '', 'l') . '' . v_spacer(5); $hologram[6645] .= '
'; // ------------------------------------------------------------------------------------------------ // Google Map if ($athena['contactus']['location']['use_googlemap'] == 'Y') { $hologram[6675] = '
' . 'View Larger Map'; } // ================================================================================================ // Update metatags $tags['title'] = 'Nese Gallery - Worldwide Fine Art Source in Mission Viejo, California'; $tags['description'] = 'Nese Gallery has been supplying Southern Californians with Fine Art ' . 'for over 30 years. You may now buy our fine art online at our website as well.'; $tags['keywords'] = 'Nese Gallery, Nese Galleries, buy fine art, Mission Viejo, California'; // ------------------------------------------------------------------------------------------------ require (PF_HOLOGRAPH_PAGE); require (PF_HOLOGRAPH); ?>