require ("config.php");
require ("header.php");
$wdt1 = date("Y-m-d");
// fetch_meta_tag() defined in /header.php.somesh
$meta_tag = fetch_meta_tag("/company-listing.htm");
// page_header() defined in /header.php.somesh
echo page_header ($meta_tag[0], $meta_tag[1], $meta_tag[2]);
if ($id == "listingform") {
$chkbaseurl = str_replace("www.", "", $baseurl);
$chkbaseurl = str_replace("http://", "", $chkbaseurl);
if (!strlen($HTTP_REFERER) and !strstr($HTTP_REFERER, $chkbaseurl)) {
// left_panel() defined in /header.php.somesh
echo left_panel($catgID);
?>
// chk_http_referer() defined in /header.php.somesh
echo chk_http_referer();
?>
// page_footer() defined in /header.php.somesh
echo page_footer();
mysql_close();
exit;
}
$msg1 = "";
if (!strlen(trim($comp_name))) {
$msg1 .="Enter Company Name.
";
}
if ($turnover=="") {
$msg1 .="Select Turnover of the Company.
";
}
if ($busType=="") {
$msg1 .="Select Nature of Business.
";
}
if (strlen($product_desc)<10) {
$msg1 .= "Enter your product(s) details [ minimum 10 characters ].
";
}
elseif (strlen($product_desc)>1000) {
$msg1 .= "Enter your product(s) details [ maximum 1000 characters ].
";
}
if (!strlen(trim($your_name))) {
$msg1 .="Enter Your Name.
";
}
elseif (strlen($your_name)>50) {
$msg1 .="Enter Your Name [ maximum 70 characters ].
";
}
elseif (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $email) or !strlen($email) ) {
$msg1 .= "Incorrect Email ID.
\n";
}
elseif (strlen($email)>70) {
$msg1 .= "Enter your Email address [ maximum 70 characters ].
";
}
if (!strlen(trim($address))) {
$msg1 .="Enter Postal Address.
";
}
if ($country=="") {
$msg1 .="Select Your Country.
";
}
if (!strlen(trim($ph_number))) {
$msg1 .="Enter your Telephone Number.
";
}
if (strlen($msg1)) {
$msg1 = "
The Following fields are missing :
$msg1
Go Back... and correct it.
";
}
else {
if (strlen($ph_number)) {
$phone = "$ph_ccode^$ph_acode^$ph_number";
}
else {
$phone="";
}
if (strlen($fax_number)) {
$fax = "$fax_ccode^$fax_acode^$fax_number";
}
else {
$fax="";
}
$Msg="";
reset($HTTP_POST_VARS);
while (list($key, $val) = each ($HTTP_POST_VARS)) {
$$key = addslashes($val);
if ($key!="id") {
$Msg .= strtotitle(str_replace("_", " ", $key)) ." : $val\n\n";
}
}
mail_sent($emailArr['listing'], $email, $Msg, "company listing details form submitted at beads-suppliers.com", "text");
if (strstr($baseurl, "192.168")) {
require("/home/jewelindia/jewellersindia.com/htdocs/config-lib.php");
}
else {
require("/home/jeweller/jewellersindia.com/htdocs/config-lib.php");
}
mysql_query("insert into members_listing (comp_name, your_name, turnover, busType, product_desc, email, designation, address, city, state, pin_code, country, phone, fax, web_address, recv_date, siteTy) values ('".addslashes($comp_name)."', '$gender_type^".addslashes($your_name)."' ,'$turnover' , '$busType' , '".addslashes($product_desc)."' , '$email' , '".addslashes($designation)."' , '".addslashes($address)."' , '".addslashes($city)."' , '".addslashes($state)."' , '$pin_code' , '$country' , '$phone','$fax', '$web_address', '$wdt1', 'GB')");
echo mysql_error();
require("config.php");
$msg1 = "
Your company listing details has been submitted sucessfully!!!!!!!!!!.
";
}
?>
// left_panel() defined in /header.php.somesh
echo left_panel($catgID);
echo $msg1;
// page_footer() defined in /header.php.somesh
echo page_footer();
mysql_close();
exit;
}
?>
Company Listing
Glass beads are a fascinating, beautiful creation. They have functioned as currency, gifts, works of art, and symbols of high status. Glass
beads are recorded as being created, traded, and worn by the earliest civilized societies, from Egyptians to Romans, Vikings to Indians. There are nearly as many types of glass beads as there are beads, Czech druk beads, cat's e
// left_panel() defined in /header.php.somesh
echo left_panel($catgID);
?>
// page_footer() defined in /header.php.somesh
echo page_footer();
mysql_close();
exit;
?>