<?
include_once "includes/define.php";
require_once "../member/includes/CH/contactus.php";
require_once "../member/includes/CH/general.php";
require_once "../includes/formvalidator.php";
require_once "../admin/include/function.php";

$COUNTRY_PATH="../member/includes/CH/country.php";

if($btnAdd){
    $validator = new FormValidator();
	$validator->addValidation("name","req",REQUIRED_NAME);	
    $validator->addValidation("contact","req",REQUIRED_CONTACT);		
    $validator->addValidation("email","req",REQUIRED_EMAIL);	
    $validator->addValidation("subject","req",REQUIRED_SUBJECT);	
    $validator->addValidation("msg","req",REQUIRED_MSG);	

	if($validator->ValidateForm())
    {
											
		mail(EMAIL,$subject,$msg,'From: '.$email);		
		
		$ainfo=SUBMIT_SUCCESS;

		
	}else {
	    $action_msg= "<br><B>Validation Errors:</B><br>";

        $error_hash = $validator->GetErrors();
        foreach($error_hash as $inpname => $inp_err)
        {
           $action_msg.= "$inp_err<br>";
        }        
    }


}



if(!$country)$country="my";

?>
<!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><?=TITLE?></title>
<!-- SmartMenus 6 config and script core files -->
<script type="text/javascript" src="c_config.js"></script>
<script type="text/javascript" src="c_smartmenus.js"></script>
<!-- SmartMenus 6 config and script core files -->

<link rel="stylesheet" type="text/css" href="styles.css" >
<? require_once "includes/scroller.php"; ?>
<link rel="stylesheet" href="../css/li-scroller.css" type="text/css" media="screen" />    

</head>

<body>
<table width="1000" height="600" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td height="82" background="images/iconic_01.jpg" ><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="91%" height="30" align="right"><? include_once "includes/topmenu.php"; ?></td>
        <td width="9%" rowspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td height="4"></td>
      </tr>
      <tr>
        <td height="14" align="right">
          <? include_once "includes/menu.php"; ?>
</td>
        <td height="29" rowspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td height="3" align="right"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="500" valign="top" background="../images/contactus_bg.jpg" style="background-repeat:no-repeat">
  
      <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="340" valign="bottom" class="title1">&nbsp; 联系我们 </td>
      </tr>
      <tr>
        <td width="789">
          <form name="form" method="post" action="<?=$PHP_SELF ?>" >
	   <table width="820" height="250" border="0" align="center" cellpadding="0" cellspacing="0">
      
      <tr>
        
        <td valign="top"><table width="800" height="250" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
         
                <tr>
                  <td class="require"><? echo "<div class='Msg'>$action_msg</div>" ?></td>
                </tr>
              </table>
              <table width="820" height="250" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><table width="800" height="250" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td class="require"><? echo "<div class='Msg'>$action_msg</div>" ?></td>
                        </tr>
                      </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="53%" valign="top" class="text4"><table border="0" cellpadding="0" width="100%" cellspacing="0" class="small">
                              <? 
					if($ainfo)echo "<br>$ainfo"; ?>
                              <tr>
                                <td width="417" valign="top" class="TextH1"><p><span class="text3">
                                  <?=CONTACT_HEADER; ?>
                                  </span></p>
                                  <table width="100%" border="0" cellspacing="2" cellpadding="2">
                                    <tr>
                                      <td class="text1"><div><strong>Iconic Vacation Club Bhd (HQ)</strong><strong><br />
                                        </strong>30 Jalan Pekedai U1/36<br />
                                        Hicom Glenmarie Industrial Park<br />
                                        40150 Shah Alam Selangor, Malaysia<br />
                                        T +6 03-5569 0800   /   F +6 03-5569 0900</div>
                                        <p><strong>Sales &amp; Information Center (Resort)</strong><strong><br />
                                          </strong>67 Jalan Pantai Bagan Lalang<br />
                                          Kg. Bagan Lalang 43950 Sungai Pelek<br />
                                          Selangor, Malaysia<br />
                                          T +6 03-3182 3636   /   F +6 03-3141 4788</p>
                                        <p><strong>Iconic Vacation Club (JB Branch)<br />
                                          </strong>New York Hotel Johor Bahru (Ground Floor)<br />
                                          22 Jalan Dato’ Abudullah Tahir<br />
                                          80300 Johor Bahru, Malaysia<br />
                                          T +6 07-288 1211   /   F +6 07-331 2595</p>
                                        <p><strong>Iconic Vacation Club (Penang Branch)<br />
                                          </strong>1833-F2 Jalan Perusahaan, Auto-City  <br />
                                          North-South Highway Juru Interchange<br />
                                          13600 Prai Penang, Malaysia<br />
                                          M +6 012-206 6678</p>
                                        <p><strong>Iconic Vacation Club (East Coast)<br />
                                          </strong>M +6 012-638 3808</p>
                                        <p><strong>Iconic Vacation Club (China Branch)</strong><strong><br />
马来西亚雪邦黄金海岸办事处<br />
                                        </strong>中国·北京市朝阳区建国门外大街甲24号<strong><br />
Website：</strong><a href="http://www.sepanggoldcoast.com.cn/" target="_blank"><strong>http://www.sepanggoldcoast.com.cn/</strong></a></p>
                                        <strong>Iconic Vacation Club (China Agent)<br />
悠游休闲度假（上海）有限公司  <br />
                                        </strong>上海市徐汇区漕宝路509号华美达新园酒店C1栋<strong><br />
Website：</strong><a href="http://www.clubyouyou.com/" target="_blank"><strong>http://www.clubyouyou.com/</strong></a></td>
                                      </tr>
                                    </table></td>
                                <td width="372" valign="top" class="TextH1"><p>&nbsp;</p>
                                  <table width="100%" border="0" cellspacing="1" cellpadding="1">
                                    <tr>
                                      <td width="26%" class="text1"><?=ENAME ?>
                                        : <span class="require">*</span></td>
                                      <td width="74%" class="text1"><input name="name" type="text" class="small" id="name"   value="<? echo $name ?>" maxlength="50" /></td>
                                      </tr>
                                    <tr>
                                      <td class="text1"><?=EEMAIL; ?>
                                        : <span class="require">*</span></td>
                                      <td class="text1"><input name="email" type="text" class="small" id="email"   value="<? echo $email ?>" maxlength="50" /></td>
                                      </tr>
                                    <tr>
                                      <td class="text1"><?=ECONTACT; ?>
                                        : <span class="require">*</span></td>
                                      <td class="text1"><input name="contact" type="text" class="small" id="contact"   value="<? echo $contact ?>" maxlength="50" /></td>
                                      </tr>
                                    <tr>
                                      <td class="text1"><?=ECOUNTRY; ?>
                                        : <span class="require">*</span></td>
                                      <td class="text1"><select name="country" id="country">
                                        <? 	
            if($COUNTRY_PATH)require ($COUNTRY_PATH);
            else require ("includes/$lang/country.php"); ?>
                                        </select>
                                        <? stayfocus("form","country",$country) ?></td>
                                      </tr>
                                    <tr>
                                      <td class="text1"><?=ESUBJECT; ?>
                                        : <span class="require">*</span></td>
                                      <td class="text1"><input name="subject" type="text" class="small" id="subject"   value="<? echo $subject ?>" maxlength="50" /></td>
                                      </tr>
                                    <tr>
                                      <td colspan="2" class="text1"><p>
                                        <textarea name="msg" cols="40" rows="6" class="small" id="msg"><? echo $msg ?></textarea>
                                        </p>
                                        <p>&nbsp; </p></td>
                                      </tr>
                                    <tr>
                                      <td height="30" colspan="2" class="text1"><span class="require">
                                        <?=FORM_REQUIRED_INFORMATION?>
                                        </span></td>
                                      </tr>
                                    <tr>
                                      <td colspan="2" class="text1"><span class="text12">
                                        <input name="btnAdd" type="submit" class="btn" id="btnAdd" value="<?=BUTTON_SUBMIT; ?>" />
                                        <input name="btnReset" type="reset" class="btn" id="btnReset" value="<?=BUTTON_RESET; ?>" />
                                        </span></td>
                                      </tr>
                                    </table></td>
                              </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
                </tr>
              </table>
              <table border="0" cellpadding="2" width="100%" cellspacing="1" class="small">
                  <tr>
                    <td width="627" class="text12">&nbsp;</td>
                  </tr>
              </table></td>
          </tr>
        </table>
</td>
      </tr>
    </table>
		</form>	
        </td>
      </tr>
      <tr>
        <td >&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><? include_once "includes/bottom.php" ?></td>
  </tr>
</table>
</body>
</html>
