<?php
  /* 
  REVISED 9/20/14 to match Claier's suggestions about matcching variables
  STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home1/artisul0/public_html/artistsofpalmbeachcounty/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  list($contactRecords, $contactMetaData) = getRecords(array(
    'tableName'   => 'contact',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $contactRecord = @$contactRecords[0]; // get first record

list($common_informationRecords, $common_informationMetaData) = getRecords(array(
    'tableName'   => 'common_information',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $common_informationRecord = @$common_informationRecords[0]; // get first record
  
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		
		<title>Welcome to the Artists of Palm Beach County - Board Of Directors Contact Form</title>
		<link href="css/apbc900.css" type="text/css" rel="stylesheet" media="all" />
         <!-- This style makes the menu item for the current page white and bold --> 
		<style type="text/css">
a.contact:link { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none;}
a.contact:visited { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none;}
a.contact:hover { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none; }
a.contact:active { font-family:Verdana; color: #ffffff; font-size: 0.68em; font-weight: bold; text-decoration: none;}
</style> 
        <link rel="stylesheet" type="text/css" href="css/anylinkcssmenu.css" />
<script type="text/javascript" src="Scripts/anylinkcssmenu.js">

/***********************************************
* AnyLink CSS Menu script v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Project Page at http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm for full source code
***********************************************/

</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

	
    

	<body bgcolor="#9b97ad">
	   <?php
    function mobile_detection ()
{
	if (isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE']))
		return true;
 if (isset ($_SERVER['HTTP_ACCEPT']))
	{
		$accept = strtolower($_SERVER['HTTP_ACCEPT']);
		if (strpos($accept, 'wap') !== false)
			return true;
	}

	if (isset ($_SERVER['HTTP_USER_AGENT']))
	{
			if (strpos ($_SERVER['HTTP_USER_AGENT'], 'Android') !== false)
			return true;
			
			if (strpos ($_SERVER['HTTP_USER_AGENT'], 'Mobile') !== false)
			return true;
			
			if (strpos ($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false)
			return true;
			if (strpos ($_SERVER['HTTP_USER_AGENT'], 'ipad') !== false)
			return true;
			if (strpos ($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false)
			return true;


		if (strpos ($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') !== false)
			return true;
	}

	return false;
}
    ?> 	
    
		<table bgcolor="#7C7164" align="center" width="1085" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="left">
	<?php if (mobile_detection()) : ?>
<img src="images/APBC-LOGO.png" width="800" height="183" />
<?PHP else: ?>
<script type='text/javascript'>
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','height','180','width','100%','pluginspage','http://www.macromedia.com/go/getflashplayer','src','images/masthead','wmode','transparent','quality','best','play','true','movie','images/masthead' );
</script>
 
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="180" width="100%">
								<param name="movie" value="images/masthead.swf" />
								<param name="quality" value="best" />
								<param name="play" value="true" />
								<param name="wmode" value="transparent" />
								<embed height="188" pluginspage="http://www.macromedia.com/go/getflashplayer" src="images/masthead.swf" type="application/x-shockwave-flash" width="100%" wmode="transparent" quality="best" play="true"></embed> 
	  </object></noscript>
                            
<?PHP endif ?>   
			</td>
  </tr>
</table>

<table align="center" width="1085" border="0" cellspacing="0" cellpadding="20">
<tr>
					<td valign="top" rowspan="3" width="107" bgcolor="#66594b" ><!-- #BeginLibraryItem "/Library/LeftNav.lbi" -->
<table  width="107"  border="0" cellspacing="0"  cellpadding="4" height="600" >
  <tr>
    <td align="left" valign="top"><p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p class="special-non-link">
        <?php if (mobile_detection()) : ?>
        Tap To<br />Expand<br />Menus
        <?PHP else: ?>
        Rollover<br />To Expand<br />Menus
        <?PHP endif ?>
      </p>
      <p><a href="http://www.artistsofpalmbeachcounty.org/index.php">Home </a></p>
      <p><a href="#" class="anchorclass" rel="submenu1<?php if (mobile_detection()) : ?>[click]<?PHP endif ?>" rev="lr">About&nbsp;&nbsp;&nbsp;<img src="http://www.artistsofpalmbeachcounty.org/images/pointer2.gif" style="border-width:0;  position:relative; left: 0px; top:2px" /><br />
        APBC</a></p>
      <div id="submenu1" class="anylinkcss">
        <ul>
          <li><a href="http://www.artistsofpalmbeachcounty.org/whoweare.php">Who We Are</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/boardofdirectors.php">Board of<br />
            &nbsp;Directors</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/committees.php">Committees</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/bylaws.php">By-Laws</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/pdf/2007-bylaws.pdf">By-Laws (PDF)</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/ourmission.php">Mission<br />
            &nbsp;Statement</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/history.php">History</a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/webterms.php">Terms of<br />
            &nbsp;Service</a></li>
        </ul>
      </div>
      <p> <a  href="http://www.artistsofpalmbeachcounty.org/artists.php">APBC Artists</a></p>
      <p><a href="#" class="anchorclass" rel="submenu2<?php if (mobile_detection()) : ?>[click]<?PHP endif ?>" rev="lr">Meetings&nbsp;&nbsp;&nbsp;<img src="http://www.artistsofpalmbeachcounty.org/images/pointer2.gif" style="border-width:0;  position:relative; left: 0px; top:2px" /></a></p>
      <div id="submenu2" class="anylinkcss">
        <ul>
          <li><a href="http://www.artistsofpalmbeachcounty.org/meetings.php"><?php echo $common_informationRecord['member_meetings'] ?></a></li>
          <li><a href="http://www.artistsofpalmbeachcounty.org/boardmeetings.php">Board Meetings</a></li>
        </ul>
      </div>
      <p><a href="http://www.artistsofpalmbeachcounty.org/events-apbc.php">APBC Exhibitions</a></p>
      <?php if ($common_informationRecord['lake_park_ledger']==1):?><p><a href="http://www.artistsofpalmbeachcounty.org/lakepark.php">Lake Park Ledger</a></p><?PHP endif ?> 
      <p><a href="http://www.artistsofpalmbeachcounty.org/events-members.php"  >Member's Events</a></p>
      <p><a href="http://www.artistsofpalmbeachcounty.org/photographerscorner.php" >Photographer's Corner</a></p>
      <p><a href="http://www.artistsofpalmbeachcounty.org/writerscorner.php"  >Writer's Corner</a></p>
    
        <p><a href="http://www.artistsofpalmbeachcounty.org/becomeamember.php"  >Become a<br />
          member</a></p>
        <p><a href="#" class="anchorclass" rel="submenu3<?php if (mobile_detection()) : ?>[click]<?PHP endif ?>" rev="lr">Members&nbsp;&nbsp;&nbsp;<img src="http://www.artistsofpalmbeachcounty.org/images/pointer2.gif" style="border-width:0;  position:relative; left: 0px; top:2px" /><br />
          Only</a></p>
        <div id="submenu3" class="anylinkcss">
          <ul>
            <li><a href="http://www.artistsofpalmbeachcounty.org/access_menu.php">Access to Members Only Pages</a></li>
            <li><a href="http://www.artistsofpalmbeachcounty.org/member_reminder.php">Forget Your Login Info?</a></li>
            <li><a href="http://www.artistsofpalmbeachcounty.org/specialwebpage.php">Get a Personal<br />
              &nbsp;Web Page</a></li>
          </ul>
        </div>
        <p><a href="http://www.artistsofpalmbeachcounty.org/membersblogs.php"  >Member's<br />
          Blogs</a></p>
        <p><a href="http://www.artistsofpalmbeachcounty.org/pastevents.php">Past Event<br />
          Image Galleries</a></p>
        <p><a href="http://www.artistsofpalmbeachcounty.org/artavox.php">Artavox 2009<br />
          &nbsp;Presentation</a></p>
        <p><a href="http://www.artistsofpalmbeachcounty.org/contributors.php"  >Supporters</a></p>
        <p><a href="http://www.artistsofpalmbeachcounty.org/resources.php"  >Resources</a></p>
        <p><a href="http://www.artistsofpalmbeachcounty.org/contact.php"  >Contact Us</a></p>
        <p><a href="http://www.artistsofpalmbeachcounty.org/faq.php"  >FAQ</a></p>
        <p><a href="http://www.facebook.com/pages/Artists-of-Palm-Beach-County/124543357559891" target="_blank" > <img src="http://www.artistsofpalmbeachcounty.org/images/facebook.gif" width="92"  alt="Facebook" /></a></p>
      </td>
  </tr>
</table>
<table width="107"  border="0" cellspacing="0"  cellpadding="4" >
  <tr>
    <td valign="bottom"><br />
      <div align="left" >&nbsp;</div></td>
  </tr>
</table>
<!-- #EndLibraryItem --><br /><br /> </td>
					
					<td valign="top" align="left" bgcolor="#7C7164"  >
					  
                          <div align="left">
					
					            <div align="center"><img src="images/png-headlines/CONTACT US.png" width="284" height="22" /><br /><br /></div>

			             
			            
	                       <br />
			                <div align="left"><span class="body-text-bold">USE THIS FORM TO SEND A MESSAGE DIRECTLY TO THE PEOPLE WHO CAN ANSWER YOUR QUESTION:</span><br />
                            
                            <div class="error-text-yellow-italic" align="left"><br /><!--VALIDATIONERROR--></div>
		
        <form method="post" action="http://www.artistsofpalmbeachcounty.org/apbc_master_form_BOD13_php.php">

<table width="80%" border="0" cellpadding="15">
  <tr >
    <td width="40%" align="left" valign="middle"><label class="body-text-bold">Who would you like to contact?</label></td>
    <td  style="text-align:left" width="60%" align="left" valign="middle"><select name="reason">
<OPTION SELECTED VALUE="">...Select...</OPTION>

<option value="President">President</option>
<option value="Vice-President">Vice-President</option>
<option value="Secretary">Secretary</option>
<option value="Treasurer">Treasurer</option>
<option value="Communications and Marketing Committee">Communications and Marketing Committee</option>
<option value="Development Committee" >Development Committee</option>
<option value="Benefits and Services Committee" >Benefits and Services Committee</option>
<option value="Gallery Management Committee">Gallery Management Committee</option>
<option value="Membership Committee">Membership Committee</option>
<option value="Structure and Governance Committee">Structure and Governance Committee</option>
</select></td>
  </tr>
  <tr>
    <td width="40%" align="left" valign="middle" class="body-text-bold">What's your<br />First Name</td>
    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="first_name" id="first_name" value="" /></td>
  </tr>
  <tr>
    <td width="40%" align="left" valign="middle" class="body-text-bold">Your Last Name</td>
    <td style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="last_name" id="last_name" value="" /></td>
  </tr>
  <tr>
    <td width="40%" align="left" valign="middle" class="body-text-bold">Your e-mail</td>
    <td  style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="email" id="email" value="" /></td>
  </tr>
  <tr>
    <td width="40%" align="left" valign="middle" class="body-text-bold">Re-enter your e-mail</td>
    <td  style="text-align:left" align="left" valign="middle"><input class="text" type="text" name="email2" id="email2" value="" /></td>
  </tr>
  <tr>
    <td width="460%" align="left" valign="middle" class="body-text-bold">What's your message</td>
    <td  style="text-align:left" align="left" valign="middle"><textarea class="textarea" name="message" cols="60" rows="6" id="message"></textarea></td>
  </tr>
  <tr>
  <td width="40%">
  <span class="body-text">To help prove that you're a human, 
  please enter the characters into the blank box</span><br />
  </td>
  <td  style="text-align:left" align="left" valign="middle"><img src="http://www.artistsofpalmbeachcounty.org/apbc_master_form_BOD13_php.php?formstogoimgflt=yes" height="40" width="160"/>&nbsp; &nbsp;
    <input type="text" name="verify" id="verify" width="200" value="" /></td></tr>
  <tr>
  <td colspan="2" align="left" valign="middle"><input type="submit" name="form_submitted" value="Submit Your Message" /></td>
  </tr>
</table>
</form>
</div><br />
<p align="left"><span class="body-text-bold">OR SEND A NOTE TO THEM AT OUR MAILING ADDRESS</span><br />
                                  <span class="body-text"><?php echo $contactRecord['mailing_address'] ?></span></p>
 <?php if ($contactRecord['phone']): ?><p align="left"><span class="body-text-bold">OR CALL US AT</span><br />
                                <span class="body-text"><?php echo $contactRecord['phone'] ?></span></p><?php endif ?>
                               
                         
                       
					  
		              	
</td>
  </tr>
			</table>
	
<p></p><script type="text/javascript">

//anylinkcssmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkcssmenu.init("anchorclass")

</script></body>

</html>