| Current Path : /home/zqegovsj/www/us3web.haibo.com.cn/newfinehome/ |
| Current File : /home/zqegovsj/www/us3web.haibo.com.cn/newfinehome/contact.php |
<?php
include("function.php");ob_end_clean();
$aa='contact.html';
$aaa=$lang['words'][4];
$pagekeyword=$lang['words'][4].', '.$company['2'];
$pagekeyword2=$lang['words'][4].', '.$company['2'].', '.$company['1'].','.$company['12'];
$pagekeyword3=$lang['words'][4].', '.$company['2'].', '.$company['1'].','.$company['12'];
$site=$_GET['url'];
$company2=$db->selectone("select main_prod,address,province_code_id,city_code_id,zipcode,link_man,telcode,telzone,tel,faxcode,faxzone,fax,email,site_url,link_man_gender,country_id,more,mobile from ".$noe_version."_companies where member_id=".$id);
$feedback_site_url = $db->selectone("select site_url from members where id=".$id);
if (!empty($_POST['service'])) {
if( $_POST['HI_vc_value']!=$_SESSION['Angus']){echo "<meta http-equiv=refresh content='0; url=message.php?r=2&url=contact.html'>";
exit;
}
$to = $company[13];
$subject = $_POST['subject'];
$content = $_POST['content'];
$company = $_POST['company'];
$name = $_POST['name'];
$email = $_POST['email'];
$tel = $_POST['tel'];
$fax = $_POST['fax'];
$country = $_POST['country'];
$replyDays = $_POST['replyDays'];
$address = $_POST['address'];
$website = $_POST['website'];
$fromSite = $feedback_site_url[0];
// message
$message = "
=== Request for Information =====================<br/>
Message: $content <br/>
=== Message Basics and Contact Details ==========<br/>
Contact: $name <br/>
Tel: $tel <br/>
Country: $country <br/>
Email: $email <br/>
=== Special Remind from $company2[13] =============================<br/>
* This notification service is provided by $company2[13] ";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type:text/html; charset=utf-8' . "\r\n";
$headers .= "From: $name <$email>" . "\r\n";
// Mail it
@mail($to, $subject, $message, $headers);
$vals = array();
$vals['company']=$_POST['company'];
$vals['member_id']=$id;
$vals['title'] = $_POST['subject'];
$vals['content'] = $_POST['content'];
$vals['nick_name'] = $_POST['name'];
$vals['email'] = $_POST['email'];
$vals['website'] = $_POST['website'];
$vals['fromSite'] = $_POST['fromSite'];
$vals['created'] = $time;
$vals['country'] = $_POST['country'];
$vals['replyDays'] = $_POST['replyDays'];
$vals['address'] = $_POST['address'];
$vals['tel'] = $_POST['tel'];
$vals['fax'] = $_POST['fax'];
@array_walk($vals,"uatrim");
$db->save($vals,$noe_version."_services");
echo "<meta http-equiv=refresh content='0; url=message.php?r=1&url=contact.html'>";
exit;
}
include("head.php");
echo '
<SCRIPT src="'.$js_path.'inquiryForm.js"
type=text/javascript></SCRIPT>';?>
<section class="section-70 section-md-114">
<div class="shell">
<div class="range text-left">
<div class="cell-md-6">
<h4 class="offset-8"><?=$company[1]?></h4>
<?=$company2[1]?>, <?=$company2[3]?>, <?=$company2[2]?>, <?=$company2[15]?>, <?=$company2[4]?><br/>
<br />
<br /><br />
<strong><?=$lang['words'][11]?>:</strong> <?=$company2[6]?>-<?=$company2[7]?>-<?=$company2[8]?><br />
<strong><?=$lang['words'][12]?>:</strong> <?=$company2[9]?>-<?=$company2[10]?>-<?=$company2[11]?><br />
<strong><?=$lang['words'][13]?>:</strong> <a href="mailto:<?=$company2[12]?>"><?=$company2[12]?></a><br />
<strong><?=$lang['words'][14]?>:</strong> <a href="http://<?=$company2[13]?>" class="link2"><?=$company2[13]?></a><br />
<br />
<?=str_replace('src="/userfiles/','src="/userfiles/',html_entity_decode($company2[16]))?>
</div>
<div class="cell-md-6">
<form name="InquiryForm" class='rd-mailform' onSubmit="return validateInquiryForm(this);" action="contact.html" method=post encType=multipart/form-data>
<input type="hidden" name="service" value="1" id="service" />
<input type="hidden" name="s" id="s" />
<input type="hidden" name="subject" id="subject" value="Feedback from <?=preg_replace('/(http:\/\/)|(https:\/\/)/i', '', $company[7])?>"/>
<input type="hidden" name="company" id="company" value="/"/>
<input type="hidden" name="fax" id="fax" value="/"/>
<input type="hidden" name="replyDays" id="replyDays" value="/"/>
<input type="hidden" name="address" id="address" value="/"/>
<input type="hidden" name="website" id="website" value="/"/><input type="hidden" name="country" id="country" value="/"/>
<INPUT type=hidden value="<?=preg_replace('/(http:\/\/)|(https:\/\/)/i', '', $company[7])?>" name=fromSite>
<INPUT type=hidden name=HI_vc_key>
<input type="hidden" name="form-type" value="contact"/>
<fieldset>
<label data-add-placeholder="">
<input type="text"
name="subject"
<?php if ($prod!='') { ?>value="Feedback:<?=$prod?>"<?php } ?> placeholder="Subject"
/>
</label>
<label data-add-placeholder="">
<input type="text"
name="name"
placeholder="Name"
/>
</label>
<label data-add-placeholder="">
<input type="text"
name="email"
placeholder="E-mail"
/>
</label>
<label data-add-placeholder="">
<input type="text"
name="tel"
placeholder="Phone"
/>
</label>
</fieldset>
<fieldset>
<label class="textarea" data-add-placeholder="">
<TEXTAREA onMouseUp="textLimitCheck(this, messageCount,3000)" onMouseDown="textLimitCheck(this, messageCount,3000)" onKeyDown="textLimitCheck(this, messageCount,3000)" onKeyUp="textLimitCheck(this, messageCount,3000)" style="HEIGHT: 150px" name="content" placeholder="Comment*:" work-break:all data-constraints='@Required @Length(min=20,max=999999)'></TEXTAREA>
<INPUT id=messageCount style="WIDTH: 80px" readOnly name=messageCount >
</label>
<div class="vcode">
<INPUT maxLength=4 style="WIDTH: 80px; float: left;" name=HI_vc_value class="HI_vc_value" ><img src="auth_image.php" class="en-img">
</div>
<div class="mfControls text-center text-lg-left">
<INPUT class="btn btn-ellipse btn-primary btn-icon btn-icon-left" type=submit value=<?=$lang['words'][58]?> name=submit>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</section>
<?php include("foot.php");
?>