query("select * from tbl_bustype where id='$business_type_id'"); $type_info=$db->fetch_array($result_type); $business_type=$type_info[busname]; $result_country=$db->query("select * from tbl_area where id='$business_country_id'"); $country_info=$db->fetch_array($result_country); $business_country=$country_info[areaname]; $realname=$contact_detail_title.' '.$last_name.'.'.$first_name; $phone_str=""; if (trim($tel_country_code)<>"") $phone_str.=$tel_country_code; if (trim($tel_area_code)<>"") $phone_str.=".".$tel_area_code; if (trim($tel_number)<>"") $phone_str.=".".$tel_number; if (trim($tel_ext_number)<>"") $phone_str.=".".$tel_ext_number; $fax_str=""; if (trim($fax_country_code)<>"") $fax_str.=$fax_country_code; if (trim($fax_area_code)<>"") $fax_str.=".".$fax_area_code; if (trim($fax_number)<>"") $fax_str.=".".$fax_number; $our_contact="Company Name: ".$T_company_name."
"; $our_contact.="Website URL: ".$T_website."
"; $our_contact.="Website Name: ".$net_name."
"; $our_contact.="E-mail: ".$net_email."
"; $our_contact.="Address: ".$T_add."
"; $our_contact.="Zip Code: ".$T_zipcode."
"; $our_contact.="Phone Number: ".$T_tel."
"; $our_contact.="Fax Number: ".$T_fax; $cartbody=""; $k=count($sId); $inquiry_remarks= str_replace("

","",$inquiry_remarks); $inquiry_remarks= str_replace("

","
",$inquiry_remarks); $cart="
".$T_company_name."
"; if (trim($phone_str)<>""){ $cart.=""; } if (trim($fax_str)<>""){ $cart.=""; } $cart.="
Subject: 
 ".$mail_subject."
Message: 
 ".$inquiry_remarks."
RealName: 
 ".$realname."
Company Name: 
 ".$company_name."
Business Email: 
 ".$business_email."
Business Type: 
 ".$business_type."
Company Website URL: 
 ".$website_url."
Country/Territory: 
 ".$business_country."
Phone Number: 
 ".$phone_str."
Fax Number: 
 ".$fax_str."
"; for ($i=0;$i<$k;$i++){ $query_pro=mysql_query("select * from product{$TB_suffix} where id='$sId[$i]'"); $pro=mysql_fetch_array($query_pro); $psell=strip_tags(StripSlashes($pro[pro_sell])); $cart.="
".$pro[product_model]."
Num:".$sCount[$i]."
Product Sell:
    ".$psell."
"; $cartbody.="
".$pro[product_model]."
Num:".$sCount[$i]."
Product Sell:
    ".$psell."
"; } $cart.="
Our Contact Detail
".$our_contact."
"; $body=$cart; $topic=$mail_subject; $mailto=explode(",",$email); foreach($mailto as $m){ sendemail($m,$topic,$body,1); } if ($mail_ccyou==1){ sendemail($business_email,$topic,$body,1); } sendemail($smtp_mailbox,$topic,$body,1); if ($mail_ccyou==1) sendemail($business_email,$topic,$body,1); $add_content=AddSlashes($inquiry_remarks."
".$cartbody); $post_date=date("Y-m-d H:i:s"); $queryxx =$db->query("insert into guestbook (class_name,mail_ccyou, mail_subject,contact_detail_title, first_name,last_name, company_name,business_email, business_type_id,website_url, business_country_id,tel_country_code, tel_area_code,tel_number, tel_ext_number, fax_country_code, fax_area_code,fax_number, inquiry_remarks,post_date,address,zip,mobile,status) values( 'orderform','$mail_ccyou', '$mail_subject','$contact_detail_title', '$first_name','$last_name', '$company_name','$business_email', '$business_type_id','$website_url', '$business_country_id','$tel_country_code', '$tel_area_code','$tel_number', '$tel_ext_number','$fax_country_code', '$fax_area_code','$fax_number', '$add_content','$post_date','$address','$zip','$mobile',1)"); if($queryxx) { ?>
您正在浏览: 首页 > 在线订购
Tcart(); if($action) { if($selects) { if($action=="add"){foreach ($selects as $id)$cart->Addone($id);} if($action=="delete"){foreach ($selects as $id)$cart->EmptyOne($id);} if($action=="clear"){$cart->EmptyAll();} if($action=="update") { for($i=0;$iModifyCount($j,$new); } } } } $cart->showcart(); ?>
至:   
抄送我的e - mail地址:    抄送一份询盘给我
主题:    *
内容:    *
名字:        *        *
公司名称:    *
邮箱:    *
业务类型:   
公司网址:   
国家/区域:    *
联系号码:   
国家代码
地区号
电话号码
分机号.
传真号:   
国家代码
地区号
传真号码
地址:    *
邮政编码:    *
手机:    *
验证码: