$module = "offers";
$sagmenu = "1";
$title = "Treading Area - Offers";
include "../header.php";
$id = $_GET['id'];
$sql = mysql_query("select * from talep, categories, country where talep.SektorKodu = categories.CatId and country.CountryId = talep.ulkeid and talep.No = '".$id."' ");
$x=mysql_fetch_array($sql);
if ($_GET['type'] == 1) {
$tip = "SELLING LEADS";
} else if ($_GET['type'] == 2) {
$tip = "BUYING LEADS";
} else if ($_GET['type'] == 3) {
$tip = "COOPERATION OFFER";
}
list($tarih, $saat) = explode(" ", $x['Tarih']);
list($yil, $ay, $gun) = explode("-", $tarih);
$tarih = "$gun/$ay/$yil";
?>
|
DATE |
|
BUSINESS CATEGORY |
|
CONTACT PERSON |
|
ADDRESS |
|
TELEPHONE |
|
FAX |
|
E-MAIL |
|
COUNTRY |
|
SOURCE |
|
SUBJECT |
|
// uye girişi yapılmışsa çıksın
if ($_SESSION['UserId'] != "") {
$varmi = mysql_query("select * from members where id = '".$x['mid']."' limit 1");
$uyemi = mysql_num_rows($varmi);
if ($uyemi > 0 || $x['Mail'] <> "") {
$uyebilgi = mysql_fetch_array($varmi);
if ($_GET['islem'] <> "gonder") {
?>
//işlem kontrol
} else {
if ($_POST['sendtype'] == "mesaj") {
$temptime = time();
$tempmtime = microtime();
$tempid = $temptime + $tempmtime;
$tempid=ereg_replace("\.", "", $tempid);
$zaman_id=$tempid;
$msg = "One of our member sent this ".$x['Konu']." titled message.
To contact for related Subject,
User Name : ".$_SESSION['UserName']." and E-Mail Address ".$_SESSION['UserMail'].".
".$_POST['mesaj']."
";
$ekle = mysql_query("insert into msg (id, dizin, kimden, kime, baslik, mesaj, zaman, okundu, silindi) VALUES
('".$zaman_id."', '1', '".$xmember['id']."', '".$uyebilgi['id']."',
'".$_POST['baslik']."', '".$msg."', '".Date("Y/m/d H:i:s")."', '0', '0')");
$ekle_log = mysql_query("insert into msg_log (id, dizin, kimden, kime, baslik, mesaj, zaman, okundu, silindi) VALUES
('".$zaman_id."', '1', '".$xmember['id']."', '".$uyebilgi['id']."',
'".$_POST['baslik']."', '".$msg."', '".Date("Y/m/d H:i:s")."', '0', '0')");
echo "
Your message has been sent.";
} elseif ($_POST['sendtype'] == "mail") {
$msg = "One of our member sent this ".$x['Konu']." titled message.
To contact for related Subject,
User Name : ".$_SESSION['UserName']." and E-Mail Address ".$_SESSION['UserMail'].".
".$_POST['mesaj']."
";
email($x['Mail'], "TurkeyPages.Com - ".$_POST['baslik'], $msg);
echo "
Your E-Mail has been sent succesfully.";
} //type sonu
} // işlem sonu
} //uyemi sonu
}
?>
include "../footer.php";
?>