error_reporting(E_ALL);
require_once(getenv('DOCUMENT_ROOT')."/eng/connect.php");
require_once(getenv('DOCUMENT_ROOT')."/eng/config.inc.php");
require_once(getenv('DOCUMENT_ROOT')."/eng/admin/suppliers/table.inc.php");
define('EMAIL','tropina@nhk.ru');
$error='';
virtual("/eng/ssi/top.html");
virtual("/eng/ssi/head.html");
if(getenv('REQUEST_METHOD')=='POST') {
array_walk($_POST,'_clear_tags',array());
if(!empty($_POST['name']) and !empty($_POST['address']) and !empty($_POST['tel']) and !empty($_POST['fax']) and !empty($_POST['contact']) and !empty($_POST['email']) and !empty($_POST['realm']) and !empty($_POST['info']) and !empty($_POST['type']) and !empty($_POST['conditions']) and !empty($_POST['min'])) {
$types=array('','российский производитель','иностранный производитель','импортёр','продавец');
$message="
Название организации: ".$_POST['name']."
Адрес: ".$_POST['address']."
Телефон: ".$_POST['tel']."
Факс: ".$_POST['fax']."
Адрес в интернет: ".$_POST['url']."
Контактное лицо: ".$_POST['tel']."
Email: ".$_POST['email']."
Область деятельности: ".$_POST['realm']."
Краткая информация о Компании: ".$_POST['info']."
Вид деятельности: ".$types[$_POST['type']]."
Условия поставки: ".$_POST['conditions']."
Минимальная партия: ".$_POST['min']."
";
$q="INSERT INTO ".TABLE."(name,request_text) VALUES('".$_POST['name']."','".$message."')";
mysql_query($q);
mail(EMAIL,'Коммерческое предложение поставщика с сайта www.nhk.ru',$message,"From: info@nhk.ru\r\nContent-type: text/html;charset=windows-1251");
?>
Suppliers
Dear Sirs,
We are interested in raw material suppliers of household products. You can send your commercial offer using the following form. Please fill in all the columns so that we could have an idea about your enquiry.
We hope to have fruitful and profitable cooperation.
=($error?"
| Address | > |
| Telephone | > |
| Fax | > |
| Homepage | > |
| Contact person | > |
| > | |
| Activity area | > |
| Brief information about your company | |
| Kind of activity | |
| Delivery conditions | |
| Minimal order quantity | > |